Skip to content

[BUG]: MCP servers with nested params in input_schema crash an Anthropic agent #3938

Open
@AsadiR

Description

@AsadiR

How are you running AnythingLLM?

Docker (local)

What happened?

When I added my MCP server I got en error. My MCP server uses pydantic2 for input parameters like this:

    @server.tool(
        name="GetCryptocurrencies",
        description="Cryptocurrencies list tool calling /cryptocurrencies endpoint"
    )
    async def get_cryptocurrencies(params: GetCryptocurrenciesParams) -> GetCryptocurrenciesResponse:
        return await _call_endpoint("cryptocurrencies", params, GetCryptocurrenciesResponse)

Image

Are there known steps to reproduce?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions