claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] input_schema does not support oneOf, allOf, or anyOf at the top level

Open jason-riddle opened this issue 4 months ago • 5 comments

Bug Description

I'm getting this 400 error message. It happens immediately after sending the first prompt.

$ claude 
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code!                         │
│                                                   │
│   /help for help, /status for your current setup  │
│                                                   │
│   cwd: /Users/jason/dotfiles                      │
╰───────────────────────────────────────────────────╯

> commit changes
API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
    "message":"tools.36.custom.input_schema: input_schema does not support 
    oneOf, allOf, or anyOf at the top level"}}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.65
  • Feedback ID:

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at t7 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:867:5184)\n    at file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48379\n    at Q (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n    at cJ (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45817)\n    at jz (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:44684)\n    at W9 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51005)","timestamp":"2025-07-31T23:39:03.955Z"},{"error":"SyntaxError: Unexpected token '/', \"/usr/local\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:771:9932\n    at Q (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n    at xR0.<anonymous> (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3065:120)\n    at xR0.B [as _actionHandler] (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:664:528)\n    at file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:668:3127\n    at xR0._chainOrCall (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:668:1694)\n    at xR0._parseCommand (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:668:3103)\n    at xR0.parseAsync (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:665:4195)\n    at uw8 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3088:1224)","timestamp":"2025-07-31T23:39:03.998Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.36.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n    at t4.generate (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1319:12486)\n    at TP.makeStatusError (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1336:2101)\n    at TP.makeRequest (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1336:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async KfB.qF1.showErrors (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2981:14401)\n    at async qF1 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2463:5642)\n    at async KfB (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2981:14252)\n    at async file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2981:9308\n    at async sM0 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2981:1689)\n    at async O11 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2981:9278)","timestamp":"2025-07-31T23:39:12.754Z"},{"error":"AxiosError: Request failed with status code 403\n    at AN (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:676:1077)\n    at Unzip.i1 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:9955)\n    at Unzip.emit (node:events:519:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at VB1.request (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:679:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async X88 (file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1627:470)\n    at async Promise.all (index 0)\n    at async file:///Users/jason/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1613:6358","timestamp":"2025-07-31T23:39:42.940Z"}]

jason-riddle avatar Jul 31 '25 23:07 jason-riddle


Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3383
  2. https://github.com/anthropics/claude-code/issues/4753
  3. https://github.com/anthropics/claude-code/issues/3940

If your issue is a duplicate, please close it and 👍 the existing issue instead.

🤖 Generated with Claude Code


github-actions[bot] avatar Jul 31 '25 23:07 github-actions[bot]

Similar to https://github.com/anthropics/claude-code/issues/3383, the mcp-pandoc server is causing an issue, removing this line fixed the issue.

{
  "mcpServers": {
    "pandoc": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {}
    }
  }
}

It could be related to https://github.com/vivekVells/mcp-pandoc/issues/22, because I don't have pandoc installed, but it's not clear why this one specific mcp server is causing the original error message.

Also, rather than removing the whole config, I would prefer to just disable this until it gets fixed either in claude code or in mcp-pandoc. It will be easy to disable without having to remove once https://github.com/anthropics/claude-code/issues/1774 is addressed.

jason-riddle avatar Aug 01 '25 00:08 jason-riddle

Have the same issue on 2.0.29:

> use cloud install command to downgrade version 2.0.28
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.44.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top
     level"},"request_id":"req_011CUcu99U6muTxbcrKzWX1c"}

jumski avatar Oct 30 '25 06:10 jumski

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 09 '25 10:12 github-actions[bot]

  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.38.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top
     level"},"request_id":"req_011CW2kxLh72t9zyzqUGdobX"}
 ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.40.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top
     level"},"request_id":"req_011CW2mMxqP4X4jzJVFLr7mS"}

noga-dev avatar Dec 12 '25 12:12 noga-dev