(file: string)
| 238 | } |
| 239 | |
| 240 | async function readJsonIfExists(file: string): Promise<any | null> { |
| 241 | try { return JSON.parse(await fs.readFile(file, 'utf-8')); } catch { return null; } |
| 242 | } |
| 243 | |
| 244 | /** Discover MCP servers declared by Claude Code plugins (plugin.json mcpServers + .mcp.json). */ |
| 245 | export async function loadClaudeCodePluginMcpServers(cwd: string): Promise<Record<string, MCPServerConfig>> { |
no outgoing calls
no test coverage detected