claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] mcp server cannot work with project level config in .mcp.json

Open 2019COVID opened this issue 1 year ago • 2 comments

Environment

  • Platform: Anthropic API
  • Claude CLI Version: 1.0.17 (Claude Code)
  • Operating System: Debian 12
  • Terminal: Xterm

Bug Description

When using the -s project flag to add an MCP tool, it does not work as expected.

Steps to Reproduce

debian@debian-04:~/code/neon$ claude mcp add -s project --transport sse Neon https://mcp.neon.tech/sse
Added SSE MCP server Neon with URL: https://mcp.neon.tech/sse to project config

debian@debian-04:~/code/neon$ claude --dangerously-skip-permissions --debug
 ※ Tip: Run /install-github-app to tag @claude right from your Github issues and PRs

> hello
[DEBUG] Stream started - received first chunk

● Hello! I'm Claude Code, ready to help you with your software engineering tasks. What would you like to work on?

Expected Behavior

[DEBUG] MCP server "Neon": <some expected connection or response log>

Actual Behavior

No indication that the MCP server "Neon" is being used. The debug log does not reference it at all.

Additional Context

The claude mcp add command appears to succeed, but the configuration is not actually picked up or shown during debug or execution.


⚠️ Note: The original markdown formatting of this issue was inconsistent. This is a cleaned-up and properly structured version for better readability and compatibility with issue trackers.

2019COVID avatar Jun 09 '25 07:06 2019COVID

Sounds like you were able to resolve this. Apologies for the confusion!

ashwin-ant avatar Jun 09 '25 15:06 ashwin-ant

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]