Skip to content

Declare the MCP server in plugin.json so a checkout starts no broken project server - #331

Merged
QuintinBotes merged 3 commits into
mainfrom
fix/plugin-mcp-server-declaration
Nov 30, 2026
Merged

QuintinBotes merged 3 commits into
mainfrom
fix/plugin-mcp-server-declaration

Conversation

@QuintinBotes

Copy link
Copy Markdown
Owner

Opening this repository in Claude Code starts the plugin's MCP server as a project server, because Claude Code also reads the root .mcp.json as project MCP config. There ${CLAUDE_PLUGIN_ROOT} is unset, so it runs node /bin/unknot-mcp and the server shows as failed (unknot: CONNECTION_CLOSED). This session started that way.

The fix is the one memory used (QuintinBotes/memory#106): declare the server under mcpServers in .claude-plugin/plugin.json, where only the plugin loader reads it, and delete .mcp.json. claude plugin validate . --strict still lists mcpServers: unknot stdio node ["${CLAUDE_PLUGIN_ROOT}/bin/unknot-mcp"].

🤖 Generated with Claude Code

Quintin Botes and others added 3 commits November 30, 2026 12:23
…project server

Claude Code also reads a root .mcp.json as the project's MCP config, where
${CLAUDE_PLUGIN_ROOT} is unset, so opening this repository ran
node /bin/unknot-mcp and showed unknot as failed (CONNECTION_CLOSED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@QuintinBotes
QuintinBotes merged commit fc6c5c3 into main Nov 30, 2026
13 checks passed
@QuintinBotes
QuintinBotes deleted the fix/plugin-mcp-server-declaration branch November 30, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant