claude-code - 💡(How to fix) Fix [BUG] Design issue: confusing responsibilities of .mcp.json in claude plugin projects [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46133Fetched 2026-04-11 06:28:12
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×5unlabeled ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

For a claude plugin project, the .mcp.json file in the root directory of the project have confusions.

  • MCP servers used for development work of the plugin project being shared at project level
  • MCP servers bundled together with the claude plugin, will be automatically installed on the plugin consumer side.

What Should Happen?

I would suggest for MCP servers used for development being shared at project level, the .mcp.json file should be put in .claude directory under the project. Then .mcp.json file in root directory of a claude plugin will only be for bundled MCP servers.

Error Messages/Logs

Steps to Reproduce

  1. Create a claude plugin project
  2. Create .mcp.json in the root dir of the project and configure one mcp server in it.
  3. Install this plugin to a new project
  4. You will see the new project with the plugin installed will have a mcp server under the plugin domain.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.100

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Move the .mcp.json file for development MCP servers to the .claude directory under the project to avoid conflicts with bundled MCP servers.

Guidance

  • Verify that moving the .mcp.json file to the .claude directory resolves the issue of MCP servers being incorrectly installed on the plugin consumer side.
  • Check the documentation for Claude Code to see if there are any specific guidelines for configuring MCP servers for development and bundled plugins.
  • Test the plugin installation process after moving the .mcp.json file to ensure that the correct MCP servers are being used.
  • Consider adding a check in the plugin installation process to handle cases where the .mcp.json file is located in the root directory of the project.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a configuration change.

Notes

The solution assumes that moving the .mcp.json file to the .claude directory is a valid configuration change for Claude Code. If this change does not resolve the issue, further investigation may be needed to determine the correct configuration.

Recommendation

Apply workaround: Move the .mcp.json file for development MCP servers to the .claude directory under the project. This change should help to avoid conflicts with bundled MCP servers and ensure that the correct MCP servers are being used.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING