Skip to content

Add Tasks support to MCPServer #2201

@maxisbey

Description

@maxisbey

Tasks support (SEP-1686) landed in #1645 for the lowlevel Server API only. MCPServer has no way to return a CreateTaskResult from a @tool()-decorated function, nor does it expose enable_tasks().

This was explicitly deferred during review of #1645 (comment).

Related

Note

The Tasks spec is expected to change significantly in the next spec revision — see the Multi Round-Trip Requests SEP draft, which reworks the Tasks workflow for server-initiated requests (new tasks/input_response method, InputRequests/InputResponses types, new ephemeral/persistent tool split).

AI Disclaimer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature that's not currently supportedv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions