fix(mcp): remove bundled context7 MCP server (#486)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Trevin Chow
2026-04-01 17:16:07 -07:00
committed by GitHub
parent 577db53a2d
commit afdd9d4465
5 changed files with 9 additions and 65 deletions

View File

@@ -98,8 +98,13 @@ export async function countSkillDirectories(root: string): Promise<number> {
export async function countMcpServers(pluginRoot: string): Promise<number> {
const mcpPath = path.join(pluginRoot, ".mcp.json")
const manifest = await readJson<{ mcpServers?: Record<string, unknown> }>(mcpPath)
return Object.keys(manifest.mcpServers ?? {}).length
try {
const manifest = await readJson<{ mcpServers?: Record<string, unknown> }>(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<CompoundEngineeringCounts> {