Skip to content

Server fails when used through Claude Code (JSON schema is invalid) #37

Description

@TechNickAI

I really like being able to use this logfire MCP server with Cursor. And it works great there, but when I use it in Claude Code with the identical config, I get the following error from Claude code

  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.29.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://docs.anthropic.com/en/docs/tool-use."}}

Here is the config that I am using:

{
  "mcpServers": {
    "logfire": {
      "command": "uvx",
      "args": ["logfire-mcp@latest"],
      "env": {
        "LOGFIRE_READ_TOKEN": "xxxxxx",
        "LOGFIRE_BASE_URL": "https://api-eu.pydantic.dev"
      }
    }
}

Other MCP servers work fine for me in claude code. When ever I use clade code, I have to comment out the logfire server.

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