Skip to content

Bug: Incompatibility with Anthropic API due to input_schema structure #224

@RMStankiewicz

Description

@RMStankiewicz

Client Information

  • LLM Client: Anthropic Claude Code
  • Client Config: Standard configuration in the .claude.json project file.
  • Using MCP Remote?: No (the server is run locally via stdio)
  • MCP Server: @cloudflare/mcp-server-cloudflare
  • Prompt: N/A (the error occurs on application startup during tool registration)

Describe the bug
When using the @cloudflare/mcp-server-cloudflare with Anthropic's Claude Code, the server fails to load correctly due to an API validation error from the Anthropic backend.

The error log indicates that the input_schema for one of the tools uses an unsupported structure (oneOf, allOf, or anyOf) at the top level, which causes the API to reject the tool definition.

Error Log:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions