claude-code - 💡(How to fix) Fix [Bug] MCP config parsing fails with invalid JSON in .mcp.json [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#55966Fetched 2026-05-05 06:01:41
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

└ [Error] MCP config is not a valid JSON

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description

[Failed to parse] Project config (shared via .mcp.json)
Location: /home/rona/Downloads/programming/figma-mcp-trail/.mcp.json └ [Error] MCP config is not a valid JSON

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.126
  • Feedback ID: 0b270fa9-9dc7-44b9-ab1b-ac2d3fa946b6

Errors

[]

extent analysis

TL;DR

The issue is likely due to an invalid JSON format in the .mcp.json file, and fixing the JSON syntax may resolve the problem.

Guidance

  • Verify that the .mcp.json file is properly formatted as JSON, checking for any syntax errors such as missing or mismatched brackets, quotes, or commas.
  • Open the .mcp.json file in a text editor or a JSON validator to identify and correct any formatting issues.
  • Check for any invisible characters or encoding issues that might be causing the JSON parsing to fail.

Example

No specific code example can be provided without the actual contents of the .mcp.json file, but a simple JSON validation tool or a text editor with JSON syntax highlighting can help identify formatting issues.

Notes

The exact solution depends on the specific contents and formatting of the .mcp.json file, which is not provided in the issue description.

Recommendation

Apply workaround: Manually inspect and correct the JSON formatting in the .mcp.json file, as this is the most direct approach to resolving the parsing error described.

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

claude-code - 💡(How to fix) Fix [Bug] MCP config parsing fails with invalid JSON in .mcp.json [1 comments, 2 participants]