Skip to main content

Module mcp_json

Module mcp_json 

Source
Expand description

Support for .mcp.json / mcp.json config format.

The .mcp.json format is the standard MCP client config used by Claude Desktop, VS Code, Claude Code, and other MCP clients. This module parses that format and converts entries into BackendConfig values that the proxy can use.

§Format

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_TOKEN": "..." }
    },
    "api": {
      "url": "http://localhost:8080"
    }
  }
}

Structs§

McpJsonConfig
Top-level .mcp.json structure.
McpJsonServer
A single MCP server entry in .mcp.json.