Skip to content

[Bug] Anthropic API Error: Tool input_schema does not support oneOf/allOf/anyOf at top level #40075

Description

@Sukheil-Ganeev

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.9.custom.input_schema: input_schema does not support oneOf,
allOf, or anyOf at the top level"},"request_id":"req_011CZUdgXdB8YJ1DV85aKywd"} issue

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.86
  • Feedback ID: 3adeee52-073e-4b77-aa9a-b86956139e38

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at vYH (B:/~BUN/root/src/entrypoints/cli.js:1876:37436)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:05:54.248Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at vYH (B:/~BUN/root/src/entrypoints/cli.js:1876:37436)\n    at async Z (B:/~BUN/root/src/entrypoints/cli.js:5883:10286)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:05:55.074Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at vYH (B:/~BUN/root/src/entrypoints/cli.js:1876:37436)\n    at async T (B:/~BUN/root/src/entrypoints/cli.js:5883:11056)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:05:55.076Z"},{"error":"MaxFileReadTokenExceededError: File content (16489 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at J1_ (B:/~BUN/root/src/entrypoints/cli.js:4337:5251)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:06:32.668Z"},{"error":"MaxFileReadTokenExceededError: File content (15333 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at J1_ (B:/~BUN/root/src/entrypoints/cli.js:4337:5251)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:06:51.617Z"},{"error":"MaxFileReadTokenExceededError: File content (10452 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at J1_ (B:/~BUN/root/src/entrypoints/cli.js:4337:5251)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:06:56.089Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.21.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZUbQ3qAVMG2YZhbbpi1u\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:50727)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:15:48.161Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.21.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZUbQPNevpQvU6ucVEj6v\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:50727)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:15:52.576Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.9.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZUdZnZQRs53ATXRyDCBB\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:50727)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:44:13.607Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.9.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZUdgXdB8YJ1DV85aKywd\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:50727)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T01:45:45.045Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions