You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: [...]}.
mbleigh
changed the title
[server-google-maps] Does not work with 1.0.0 SDK
[server-google-maps][server-github] Does not work with 1.0.0 SDK
Nov 27, 2024
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 );
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.
The text was updated successfully, but these errors were encountered: