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)