GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — chatd: MCP tool input schemas lose `$schema`, so draft-07 schemas fail Anthropic 2020-12 validation and break every chat request · Issue #31363 · coder/coder DescriptionIs there an existing issue for this?
Current BehaviorWhen an MCP server publishes a tool whose The same MCP server and the same tool list work in Anthropic's Claude Code CLI against the same model on Bedrock. Claude Code forwards the server's The request path is chatd → coder-aibridge → Bedrock so One invalid tool fails the entire request, so every user with that MCP server enabled loses chat completely, not just that one tool. Relevant Log Output[warn] coderd.ai-gateway.pool: interception failed route=/v1/messages provider=bedrock user_agent="coder-agents/v2.38.1+1ab0cd7 (linux/amd64)" streaming=true credential_kind=centralized error="POST \"https://bedrock-runtime.us-gov-west-1.amazonaws.com/v1/messages\": 400 Bad Request {\"message\":\"tools.52.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.\"}" error_type=bad_request - bad request: POST "http://coder-aibridge/v1/messages": 400 Bad Request {"error":{"message":"POST \"https://bedrock-runtime.us-gov-west-1.amazonaws.com/v1/messages\": 400 Bad Request {\"message\":\"tools.52.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). ...\"}","type":"api_error"},"request_id":"","type":"error"} Expected BehaviorA tool schema the MCP server declares as draft-07 reaches the provider in a form it accepts: either with its Steps to Reproduce
The SDK serialises this as draft-07:
Sending the same tool to Claude on Bedrock outside Coder (Anthropic Messages format):
Environment
Additional ContextThe issue occurs consistently Reacted by Matt ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |