New in version: 2.14
The MCP task protocol lets you request operations to run asynchronously. This returns a Task object immediately, letting you track progress, cancel operations, or await results.
See Server Background Tasks for how to enable this on the server side.
Requesting Background Execution
Passtask=True to run an operation as a background task:
Task Objects
All task types share a common interface:Getting Results
Checking Status
Waiting for Completion
Cancelling Tasks
Status Notifications
Register callbacks to receive real-time status updates:Graceful Degradation
You can always passtask=True regardless of whether the server supports background tasks. Per the MCP specification, servers that don’t support tasks will execute the operation immediately and return the result inline. Your code works either way:

