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.
- Warn $ MCP_ADDITIONAL_PROPERTIES
Root MCP inputSchema should set additionalProperties: false for cross-client strict tool bridges.
Auto-fix: Set root additionalProperties: false.
- Error $.assignee MCP_TYPE_ARRAY_TO_ANYOF
Type array ["string","null"] breaks Gemini and Azure Foundry MCP clients.
Auto-fix: Converted type array to anyOf union.
- Warn $.$defs.RepoFilter MCP_NESTED_ADDITIONAL_PROPERTIES
Nested object missing additionalProperties: false for strict MCP bridges.
Auto-fix: Set additionalProperties: false.
{
"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. |