claude-code - 💡(How to fix) Fix Claude Code doesn't know how to register MCP servers into itself [1 comments, 2 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#48711Fetched 2026-04-16 06:53:07
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Claude confidently made the change and reported success. The server never connected. There is zero feedback that the settings.json approach is wrong — no warning, no error, nothing. It just doesn't work. 2. Warn or error if mcpServers appears in settings.json, since that key is silently ignored and creates a false sense of success

Code Example

claude mcp add <name> -s user -- <command> [args]
claude mcp list  # verify connected
RAW_BUFFERClick to expand / collapse

Problem

When asked to install an MCP server (in this case, an Obsidian MCP), Claude configured it by adding an mcpServers block to ~/.claude/settings.json. This is silently ignored — Claude Code reads MCP servers from a separate registry managed by claude mcp add.

Claude confidently made the change and reported success. The server never connected. There is zero feedback that the settings.json approach is wrong — no warning, no error, nothing. It just doesn't work.

Diagnosing and fixing this took over an hour.

Expected Behavior

Claude Code should know how to register MCP servers into itself. The correct method is:

claude mcp add <name> -s user -- <command> [args]
claude mcp list  # verify connected

This is Claude Code's own CLI. It should know its own configuration mechanisms.

Suggested Fix

Either (or both):

  1. Train Claude to use claude mcp add when asked to install/configure MCP servers — it's the tool's own interface
  2. Warn or error if mcpServers appears in settings.json, since that key is silently ignored and creates a false sense of success

Environment

  • Claude Code CLI (macOS)
  • Claude Opus

extent analysis

TL;DR

To fix the issue, Claude should use the claude mcp add command to register MCP servers instead of modifying the settings.json file.

Guidance

  • When configuring MCP servers, use the claude mcp add command with the required parameters, such as <name>, -s user, and the server command with arguments.
  • Verify the MCP server connection using the claude mcp list command.
  • Avoid modifying the settings.json file to add MCP servers, as this approach is silently ignored.
  • Consider implementing a warning or error message when mcpServers appears in settings.json to prevent false success scenarios.

Example

claude mcp add my-server -s user -- obsidian-mcp-server --port 8080
claude mcp list

Notes

The current implementation of Claude Code ignores the mcpServers block in settings.json, leading to confusion and silent failures. The suggested fix focuses on using the claude mcp add command and providing feedback when the incorrect configuration method is used.

Recommendation

Apply the workaround by using the claude mcp add command to register MCP servers, as this is the supported and documented method for configuring Claude Code.

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