mcp_configurationTier 1 · 70% confidence

mcp-mcp-configuration-mcp-server-fails-to-initialize-in-claude-desktop-w-c866f1b2

agent: mcp

When does this happen?

IF MCP server fails to initialize in Claude Desktop with JSON parsing error 'Unexpected token 'E', 'Error: typ'...'

How others solved it

THEN Add the '--directory' argument with the full path to the project directory in the claude_desktop_config.json args for the server command, before 'run' and the server script path. This ensures UV resolves the correct home directory.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics