I build MCP servers
Check that your tools work in Gemini, OpenAI, and Claude in CI before you ship.
MCP servers emit arbitrary JSON Schema (draft-07 tuples, optional properties, oneOf, minLength, $ref siblings). Every model API accepts a different, moving subset:
400 INVALID_ARGUMENT on draft-07 tuple arrays; OpenAI strict rejects schemas without additionalProperties: false and all-required properties.const, pattern, minLength, exclusiveMinimum, multipleOf, uniqueItems, and not.required + nullable, so models send {"limit": null} instead of omitting the key—breaking Pydantic and Zod servers.Pass your tools/list schemas through mcp-schema-bridge before calling the model, and run denormalizeArgs on the model’s arguments before calling your MCP server:
{ "name": "search", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "minLength": 1 }, "limit": { "type": "integer", "minimum": 1, "maximum": 50 } }, "required": ["query"] }}{ "type": "object", "properties": { "query": { "type": "string", "description": "[Constraint: minLength 1]" }, "limit": { "type": ["integer", "null"], "minimum": 1, "maximum": 50 } }, "required": ["query", "limit"], "additionalProperties": false}// Model omits `limit` by sending null (required by strict mode):const modelArgs = { query: "lamps", limit: null };
// denormalizeArgs restores the original MCP contract:const serverArgs = denormalizeArgs(tool, modelArgs).args;// -> { query: "lamps" }Stripping $schema and adding additionalProperties: false is easy—until you hit silent keyword ignoring, T | None = None vs. ambiguous T | None, draft-07 tuples, percent-encoded $refs, per-request strict budgets, and cross-language caching.
Read the 7 traps of DIY normalizers →
I build MCP servers
Check that your tools work in Gemini, OpenAI, and Claude in CI before you ship.
I build agents or MCP clients
Normalize tools/list and round-trip arguments in your Python or TypeScript tool loop.
I use MCP servers (no code)
Fix a third-party server that breaks gemini-cli, Claude Desktop, or Cursor with the proxy.
I want to test a schema now
Paste an MCP tool or JSON Schema and inspect the normalized output, report, and round-trip in your browser.
pip install mcp-schema-bridgeuv add mcp-schema-bridgenpm install mcp-schema-bridgepnpm add mcp-schema-bridgePython 3.11+ (zero runtime dependencies; extras: [sdks], [cli]) and TypeScript/Node 22+ produce byte-identical schemas, reports, and fingerprints. See the Quickstart or API & CLI reference.