Pydantic v2 & Zod to MCP & Claude converter

Parse Python BaseModel classes or TypeScript z.object() definitions without executing code, and emit cross-client MCP inputSchema or Claude input_schema.

Presets
Detected: PYDANTIC
{
  "name": "search_issues_tool",
  "description": "Search repository issues with severity and pagination filters.",
  "inputSchema": {
    "type": "object",
    "title": "SearchIssuesTool",
    "properties": {
      "target": {
        "$ref": "#/$defs/RepoFilter"
      },
      "query": {
        "type": "string",
        "minLength": 3,
        "maxLength": 200,
        "description": "Search query"
      },
      "severity": {
        "$ref": "#/$defs/Severity",
        "default": "Severity.HIGH"
      },
      "limit": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100,
        "description": "Max results to return",
        "default": 20
      },
      "assignee": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null
      }
    },
    "description": "Search repository issues with severity and pagination filters.",
    "required": [
      "target",
      "query"
    ],
    "$defs": {
      "RepoFilter": {
        "type": "object",
        "title": "RepoFilter",
        "properties": {
          "owner": {
            "type": "string",
            "minLength": 1,
            "description": "GitHub organization or user"
          },
          "repo": {
            "type": "string",
            "description": "Repository name"
          }
        },
        "required": [
          "owner",
          "repo"
        ],
        "additionalProperties": false
      },
      "Severity": {
        "type": "string",
        "enum": [
          "low",
          "high",
          "critical"
        ]
      }
    },
    "additionalProperties": false
  }
}

Cross-client MCP & Claude tool schema traps

MCP servers are consumed by Claude Desktop, OpenAI Agents, GitHub Copilot, Gemini CLI, and Azure Foundry simultaneously. Small JSON Schema differences cause tool registration to fail in one client while passing in another.

Trap Affected clients SchemaGate fix
Zero-arg tool without properties: OpenAI, Copilot, and Promptfoo MCP bridges throw object schema missing properties. Always injects explicit properties: and additionalProperties: false.
Nullable type arrays ["string", "null"] Gemini and Azure Foundry MCP clients fail to parse array-valued type. Converts type arrays to anyOf: [{ "type": "string" }, { "type": "null" }].
Numeric/string bounds in Claude strict mode Claude strict grammar ignores or rejects ge/le/minLength/minItems > 1. Relocates bounds into description matching Anthropic SDK behavior.
Multi-class Pydantic / Zod references Nested models and enums need clean $defs + $ref resolution. Parses multi-class models and multi-statement Zod schemas safely via static AST.