Closed ArsenicBismuth closed 6 days ago
Although we've been heavily inspired by the Anthropic API in the design of MCP, it's not meant to be 1:1 or coupled to it. There are indeed a few things like this that will require translation—it won't be a passthrough.
I discussed this a bit here: https://github.com/modelcontextprotocol/python-sdk/discussions/71
But in short, the
Tool
object obtained from MCP is using camelCaseinputSchema
, while the Claude Python API is expectinginput_schema
. As a result, we can't directly assign the MCP output to Claude message API input:The MCP tool output:
Which causes this error:
My setup:
On getting the response:
Temporary fix: