claude-code - 💡(How to fix) Fix [Bug] MCP server configuration file not found: mcp.json missing [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#55926Fetched 2026-05-05 06:02:45
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n at <parse> (:0)\n at parse (unknown)\n at i9q (/$bunfs/root/src/entrypoints/cli.js:171:10030)\n at O (/$bunfs/root/src/entrypoints/cli.js:131:19234)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:173:1422)\n at MUH (/$bunfs/root/src/entrypoints/cli.js:2769:37239)\n at EP (/$bunfs/root/src/entrypoints/cli.js:2769:32682)\n at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34305)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18816:1304)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.400Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/aiko/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.420Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.451Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n at async V (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"}]

Code Example

[{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n    at <parse> (:0)\n    at parse (unknown)\n    at i9q (/$bunfs/root/src/entrypoints/cli.js:171:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:131:19234)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:173:1422)\n    at MUH (/$bunfs/root/src/entrypoints/cli.js:2769:37239)\n    at EP (/$bunfs/root/src/entrypoints/cli.js:2769:32682)\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34305)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18816:1304)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.400Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/aiko/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n    at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.420Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.451Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at async V (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description no mcp.json

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.126
  • Feedback ID: 587ca9c8-bd44-4ca8-934e-4509f244e4b9

Errors

[{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n    at <parse> (:0)\n    at parse (unknown)\n    at i9q (/$bunfs/root/src/entrypoints/cli.js:171:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:131:19234)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:173:1422)\n    at MUH (/$bunfs/root/src/entrypoints/cli.js:2769:37239)\n    at EP (/$bunfs/root/src/entrypoints/cli.js:2769:32682)\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34305)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18816:1304)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.400Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/aiko/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n    at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.420Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:49.451Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server unifi-network invalid: Missing environment variables: UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, UNIFI_NETWORK_PASSWORD\n    at JGH (/$bunfs/root/src/entrypoints/cli.js:2769:34881)\n    at async V (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-04T03:44:50.414Z"}]

extent analysis

TL;DR

The issue is likely due to a missing mcp.json file and unresolved environment variables for Unifi Network, which can be fixed by creating the necessary configuration file and setting the required environment variables.

Guidance

  • Check if the mcp.json file exists in the expected location and create it if necessary.
  • Set the environment variables UNIFI_NETWORK_HOST, UNIFI_NETWORK_USERNAME, and UNIFI_NETWORK_PASSWORD to resolve the Unifi Network configuration issue.
  • Verify that the mcp.json file is correctly formatted and contains the necessary configuration for the Unifi Network plugin.
  • Review the error messages to ensure that all required environment variables are set and the configuration file is accurate.

Example

No code snippet is provided as the issue is related to configuration and environment variables.

Notes

The issue seems to be related to a missing configuration file and unresolved environment variables. Resolving these issues should fix the problem, but further investigation may be required if the issue persists.

Recommendation

Apply workaround by creating the mcp.json file and setting the required environment variables, as this should resolve the immediate issue and allow for further troubleshooting if necessary.

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 server configuration file not found: mcp.json missing [1 comments, 2 participants]