Open mbleigh opened 2 days ago
Thank you for spotting this!
I created #107 . Some servers depend on old versions of the SDK using an old version of the protocol before the initial release. There is a backwards compatibility layer , but it doesn't auto detect the protocol version, which it should. The following code will work:
const result = await client.callTool({
name: "maps_search_places",
arguments: { query: "bookstores near 94552" },
},CompatibilityCallToolResultSchema );
against old versions.
Describe the bug Trying to call tools in the Google Maps server fail with Zod validation errors when using the MCP 1.0 SDK. It appears that the issue is that an older version of the protocol returned
{toolResponse: {content: [...]}}
instead of just{content: [...]}
.To Reproduce Steps to reproduce the behavior:
Expected behavior The tool is called successfully.
Logs
Additional context Add any other context about the problem here.