From afdd9d44651f834b1eed0b20e401ffbef5c8cd41 Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Wed, 1 Apr 2026 17:16:07 -0700 Subject: [PATCH] fix(mcp): remove bundled context7 MCP server (#486) Co-authored-by: Claude Opus 4.6 (1M context) --- .../.claude-plugin/plugin.json | 8 +--- .../.cursor-plugin/plugin.json | 3 +- plugins/compound-engineering/.mcp.json | 11 ----- plugins/compound-engineering/README.md | 43 ------------------- src/release/metadata.ts | 9 +++- 5 files changed, 9 insertions(+), 65 deletions(-) delete mode 100644 plugins/compound-engineering/.mcp.json diff --git a/plugins/compound-engineering/.claude-plugin/plugin.json b/plugins/compound-engineering/.claude-plugin/plugin.json index 31880ba..cb81210 100644 --- a/plugins/compound-engineering/.claude-plugin/plugin.json +++ b/plugins/compound-engineering/.claude-plugin/plugin.json @@ -23,11 +23,5 @@ "image-generation", "agent-browser", "browser-automation" - ], - "mcpServers": { - "context7": { - "type": "http", - "url": "https://mcp.context7.com/mcp" - } - } + ] } diff --git a/plugins/compound-engineering/.cursor-plugin/plugin.json b/plugins/compound-engineering/.cursor-plugin/plugin.json index 6e6034f..61bc38e 100644 --- a/plugins/compound-engineering/.cursor-plugin/plugin.json +++ b/plugins/compound-engineering/.cursor-plugin/plugin.json @@ -26,6 +26,5 @@ "image-generation", "agent-browser", "browser-automation" - ], - "mcpServers": ".mcp.json" + ] } diff --git a/plugins/compound-engineering/.mcp.json b/plugins/compound-engineering/.mcp.json deleted file mode 100644 index 4290fa6..0000000 --- a/plugins/compound-engineering/.mcp.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "mcpServers": { - "context7": { - "type": "http", - "url": "https://mcp.context7.com/mcp", - "headers": { - "x-api-key": "${CONTEXT7_API_KEY:-}" - } - } - } -} diff --git a/plugins/compound-engineering/README.md b/plugins/compound-engineering/README.md index 4e70256..b218bea 100644 --- a/plugins/compound-engineering/README.md +++ b/plugins/compound-engineering/README.md @@ -8,7 +8,6 @@ AI-powered development tools that get smarter with every use. Make each unit of |-----------|-------| | Agents | 35+ | | Skills | 40+ | -| MCP Servers | 1 | ## Skills @@ -175,24 +174,6 @@ Agents are specialized subagents invoked by skills — you typically don't call |-------|-------------| | `ankane-readme-writer` | Create READMEs following Ankane-style template for Ruby gems | -## MCP Servers - -| Server | Description | -|--------|-------------| -| `context7` | Framework documentation lookup via Context7 | - -### Context7 - -**Tools provided:** -- `resolve-library-id` - Find library ID for a framework/package -- `get-library-docs` - Get documentation for a specific library - -Supports 100+ frameworks including Rails, React, Next.js, Vue, Django, Laravel, and more. - -MCP servers start automatically when the plugin is enabled. - -**Authentication:** To avoid anonymous rate limits, set the `CONTEXT7_API_KEY` environment variable with your Context7 API key. The plugin passes this automatically via the `x-api-key` header. Without it, requests go unauthenticated and will quickly hit the anonymous quota limit. - ## Browser Automation This plugin uses **agent-browser CLI** for browser automation tasks. Install it globally: @@ -210,30 +191,6 @@ The `agent-browser` skill provides comprehensive documentation on usage. claude /plugin install compound-engineering ``` -## Known Issues - -### MCP Servers Not Auto-Loading - -**Issue:** The bundled Context7 MCP server may not load automatically when the plugin is installed. - -**Workaround:** Manually add it to your project's `.claude/settings.json`: - -```json -{ - "mcpServers": { - "context7": { - "type": "http", - "url": "https://mcp.context7.com/mcp", - "headers": { - "x-api-key": "${CONTEXT7_API_KEY:-}" - } - } - } -} -``` - -Set `CONTEXT7_API_KEY` in your environment to authenticate. Or add it globally in `~/.claude/settings.json` for all projects. - ## Version History See the repo root [CHANGELOG.md](../../CHANGELOG.md) for canonical release history. diff --git a/src/release/metadata.ts b/src/release/metadata.ts index e574b29..5e5f19a 100644 --- a/src/release/metadata.ts +++ b/src/release/metadata.ts @@ -98,8 +98,13 @@ export async function countSkillDirectories(root: string): Promise { export async function countMcpServers(pluginRoot: string): Promise { const mcpPath = path.join(pluginRoot, ".mcp.json") - const manifest = await readJson<{ mcpServers?: Record }>(mcpPath) - return Object.keys(manifest.mcpServers ?? {}).length + try { + const manifest = await readJson<{ mcpServers?: Record }>(mcpPath) + return Object.keys(manifest.mcpServers ?? {}).length + } catch (err: unknown) { + if ((err as NodeJS.ErrnoException).code === "ENOENT") return 0 + throw err + } } export async function getCompoundEngineeringCounts(root: string): Promise {