Bug Description
CodePilot's Extensions page shows "No MCP servers configured" even when MCP servers are properly configured and connected via .
Environment: Windows 11
Steps to Reproduce
Configure MCP servers via Claude Code CLI:
Verify servers are connected in CLI:
Open CodePilot, navigate to Extensions page
Expected: See reactbits and shadcn servers listed
Actual: Shows "No MCP servers configured"
Root Cause
Claude Code CLI (newer versions) stores MCP server configurations in an internal location that is not the mcpServers field in ~/.claude/settings.json. CodePilot's MCP API route (/api/plugins/mcp) only reads from settings.json, so it cannot find any CLI-configured servers.
Evidence:
claude mcp list → shows 2 servers, both Connectedclaude mcp get reactbits → Scope: User config~/.claude/settings.json → no mcpServers field present- Searching entire
~/.claude/ directory → no file contains mcpServers
Impact
- Extensions page always shows empty
- MCP tools are not available during chat sessions
- Users who configure MCP servers via the recommended CLI workflow cannot use them in CodePilot
Proposed Fix
- Add CLI discovery: Call
claude mcp list to discover configured servers, parse the output, and cache results (60s TTL) - Merge sources: Combine CLI-discovered servers with
settings.json and .mcp.json configs (project > user > CLI priority) - Pass to chat: Forward merged MCP config to
streamClaude() so tools are available in conversations - Protect settings: Change settings PUT handler to merge instead of overwrite, preventing CLI configs from being lost
Bug Description
CodePilot's Extensions page shows "No MCP servers configured" even when MCP servers are properly configured and connected via .
Environment: Windows 11
Steps to Reproduce
Configure MCP servers via Claude Code CLI:
Verify servers are connected in CLI:
Open CodePilot, navigate to Extensions page
Expected: See reactbits and shadcn servers listed
Actual: Shows "No MCP servers configured"
Root Cause
Claude Code CLI (newer versions) stores MCP server configurations in an internal location that is not the
mcpServersfield in~/.claude/settings.json. CodePilot's MCP API route (/api/plugins/mcp) only reads fromsettings.json, so it cannot find any CLI-configured servers.Evidence:
claude mcp list→ shows 2 servers, both Connectedclaude mcp get reactbits→ Scope: User config~/.claude/settings.json→ nomcpServersfield present~/.claude/directory → no file containsmcpServersImpact
Proposed Fix
claude mcp listto discover configured servers, parse the output, and cache results (60s TTL)settings.jsonand.mcp.jsonconfigs (project > user > CLI priority)streamClaude()so tools are available in conversations