Fix a server with the proxy
If an MCP server breaks your app (gemini-cli, Claude Desktop, Cursor, VS Code) and you cannot modify either side, put mcp-schema-bridge proxy in front of the server command.
Example: examples/end-user/. Verified with real gemini-cli, which failed every request with 400 INVALID_ARGUMENT: schema at properties.from.items must be a boolean or an object until the server was placed behind the proxy.
Configure your MCP client
Section titled “Configure your MCP client”The proxy starts the real MCP server, rewrites its tools/list schemas for your target, and runs denormalize_args on every tools/call. In your client’s MCP config, wrap the existing server command:
// before"geo": { "command": "npx", "args": ["-y", "some-mcp-server"] }
// after"geo": { "command": "uvx", "args": [ "--from", "mcp-schema-bridge[cli]", "mcp-schema-bridge", "proxy", "--target", "gemini-json", "--", "npx", "-y", "some-mcp-server" ]}This works identically in gemini-cli (.gemini/settings.json), Claude Desktop (claude_desktop_config.json), Cursor, VS Code, and any client that launches stdio MCP servers.
Which --target should I pick?
Section titled “Which --target should I pick?”| Your MCP client uses… | --target |
|---|---|
Gemini (gemini-cli, Google AI Studio, Vertex) |
gemini-json |
OpenAI with Structured Outputs (strict: true) |
openai-strict |
OpenAI standard (strict: false) |
openai |
Claude with strict: true |
anthropic-strict |
| Claude (standard) | anthropic |
Useful flags
Section titled “Useful flags”| Flag | What it does |
|---|---|
--report bridge-report.json |
Writes everything the proxy changed to a JSON file (clients usually hide the proxy’s stderr). |
--strict-fallback |
For strict targets, serve unfixable tools non-strict instead of hiding them. |
--no-hints |
Do not append dropped constraints to tool descriptions. |
Troubleshooting
Section titled “Troubleshooting”- “I don’t have that tool” in headless
gemini-cli(gemini -p …): Headless mode only offers tools it can run without asking. Set"trust": trueon that server, or use the interactive UI. - A tool disappeared behind the proxy: It cannot be expressed for your target. Run with
--report bridge-report.jsonand inspectrejected, or add--strict-fallback. - Resources or prompts missing: The proxy currently forwards tools only.