Add missing TasksCallCapability to enable proper MCP task support by maxisbey · Pull Request #1854 · modelcontextprotocol/python-sdk
The enable_tasks() method was creating TasksToolsCapability without the required nested call capability. This caused VS Code Copilot and other MCP clients to fail their capability detection check (tasks?.requests?.tools?.call !== undefined), silently falling back to synchronous tool calls instead of using the proper asynchronous MCP Tasks protocol. This fix: - Imports TasksCallCapability from mcp.types - Passes call=TasksCallCapability() when creating TasksToolsCapability - Adds unit test to verify the nested capability is properly set Without this fix, long-running tools would timeout after 5 minutes instead of receiving proper asynchronous task handling. Github-Issue: #1853
labels
maxisbey
deleted the
claude/fix-issue-1853-0cjKC
branch
BabyChrist666 pushed a commit to BabyChrist666/python-sdk that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters