Skip to content

[Bug] mcp Unrecognized field \"tools\ #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cookiejoo opened this issue Mar 5, 2025 · 0 comments
Open

[Bug] mcp Unrecognized field \"tools\ #12

cookiejoo opened this issue Mar 5, 2025 · 0 comments

Comments

@cookiejoo
Copy link

i used cursor add mcp,

There is indeed a 'tools' field under 'capabilities'.
However, according to the MCP specification on Capabilities negociation , the client should not have a 'tools' field as 'capabilities', since it is up to the server to set them.

Steps to Reproduce
bom version:1.0.0-M6

Run the example Spring AI MCP WebFlux server here: https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/weather/starter-webflux-server
Launch it
Add the server url under mcpServers (type: sse)
Launch the Cursor MCP Server
Log :
event:endpoint
data:/mcp/message

event:message
data:{"jsonrpc":"2.0","id":0,"error":{"code":-32603,"message":"Unrecognized field "tools" (class io.modelcontextprotocol.spec.McpSchema$ClientCapabilities), not marked as ignorable (3 known properties: "experimental", "roots", "sampling"])\n at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: io.modelcontextprotocol.spec.McpSchema$InitializeRequest["capabilities"]->io.modelcontextprotocol.spec.McpSchema$ClientCapabilities["tools"])"}}

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant