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
- Remove invalid 'roots' field from ServerCapabilities per MCP spec 2025-06-18
Server capabilities should only include: prompts, resources, tools, logging,
completions, and experimental. roots is a client capability, not server.
- Add missing handlers to streamablehttp transport for feature parity with SSE/RPC:
* list_resource_templates: Enables resources/templates/list via streamablehttp
* set_logging_level: Adds logging/setLevel support
* completion: Provides argument completion suggestions
This ensures both transports advertise the same capabilities.
- Fix resources/read in streamablehttp to return proper content:
* Return blob content for binary resources
* Return text content for text resources
* Return empty string (not empty list) on errors for correct type signature
* Fixes empty contents issue reported via MCP inspector
- Update tests to match corrected return type (str/bytes instead of list)
Closes issues found during MCP inspector testing:
1. Missing elicitation in capabilities (not needed - client capability)
2. Different capabilities between streamablehttp and SSE (now fixed)
3. resources/templates/list not working in streamablehttp (now fixed)
4. resources/read returning empty contents (now fixed)
Signed-off-by: Mihai Criveti <[email protected]>
0 commit comments