Http mcp server interop with python mcp client
Hi, I built an MCP server with @effect/ai.
MCP Inspector and Claude Code can connect to the server and use the tools—no problem.
Now I want to use this MCP server from Python and I’m running into issues.
Python/pydantic is complaining that the response from the JsonRpc method
I broke the communication down to make it easily reproducible.
Here’s a minimal example:
Here’s the curl call for a request:
And here’s the response, wrapped in an array:
What’s wrong?
MCP Inspector and Claude Code can connect to the server and use the tools—no problem.
Now I want to use this MCP server from Python and I’m running into issues.
Python/pydantic is complaining that the response from the JsonRpc method
initialize is wrapped in an array.I broke the communication down to make it easily reproducible.
Here’s a minimal example:
Here’s the curl call for a request:
And here’s the response, wrapped in an array:
What’s wrong?
