MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / readJsonIfExists

Function readJsonIfExists

src/integrations/claude-plugins.ts:240–242  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

238}
239
240async 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). */
245export async function loadClaudeCodePluginMcpServers(cwd: string): Promise<Record<string, MCPServerConfig>> {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected