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
{{ message }}
Repository navigation
McpStatelessSyncServer should preemptively register a no-op handler for resources/subscribe #776
Bug description
Certain non-compliant MCP clients try to subscribe for resource updates even if the MCP server reports no support for subscription.
I have seen this behaviour with Cursor 2.4.27 and 2.4.28.
This leads to the MCP server not intialising in Cursor due to internal errors: Failed to handle request: Missing handler for request type: resources/subscribe" .
When connecting to the server from Cursor the connection fails
2026-02-06 15:15:15.122 [error] Client error for command Streamable HTTP error: Error POSTing to endpoint: (...) "message":"Failed to handle request: Missing handler for request type: resources/subscribe","suppressed":[],"localizedMessage":"Failed to handle request: Missing handler for request type: resources/subscribe"}
Expected behavior
I would expect the server to gracefully handle non-compliant clients that try to subscribe to updates. Failing that, I should be able to register a handler myself.
However, the API does not allow that.
I had to resort to reflectiont to access HttpServletStatelessServerTransport → mcpHandler → requestHandlers and then register a no-op handler
Activity
Add resource subscribe/unsubscribe support to McpAsyncServer
Support resource subscriptions (#839)
chemicL commentedon Mar 2, 2026
This should be resolved via #839
rombert commentedon Mar 3, 2026
Thanks! I'll keep an eye open for the next release and will test it then.