Skip to content

MCP client declares the Tasks extension on tools/call but rejects CreateTaskResult #5555

Done

Description

@yosuakoeswandy

Describe the bug

The MCP client sends io.modelcontextprotocol/tasks in _meta["io.modelcontextprotocol/clientCapabilities"].extensions on every request, tools/call included. When a server answers with a CreateTaskResult (resultType: "task"), the tool call fails and tasks/get is never sent:

MCP request failed: expected CallToolResult from tools/call, got CreateTaskResult(CreateTaskResult { result_type: ResultType("task"), task: Task { task_id: "6c618e1b-c5f1-4b21-81e8-b68d05d39753", status: Working, status_message: Some("Working, 90s left"), created_at: "2026-11-18T02:56:24.271Z", last_updated_at: "2026-11-18T02:56:24.273Z", ttl_ms: Some(600000), poll_interval_ms: Some(30000) }, meta: None })

The Tasks extension spec says: "A client that has negotiated this extension MUST be prepared to handle either CallToolResult or CreateTaskResult in response to any supported request it issues."

Affected version

1.0.113

Steps to reproduce the behavior

  1. Add a stdio MCP server to ~/.copilot/mcp-config.json that implements protocol 2026-07-28 and the Tasks extension:
    • server/discover returns:
      { "resultType": "complete", "supportedVersions": ["2026-07-28"], "capabilities": { "tools": {}, "extensions": { "io.modelcontextprotocol/tasks": {} } }, "ttlMs": 0, "cacheScope": "public" }
    • tools/list returns one tool, slow_probe, with an empty input schema.
    • tools/call for slow_probe, when the request's _meta["io.modelcontextprotocol/clientCapabilities"].extensions contains io.modelcontextprotocol/tasks, returns:
      { "resultType": "task", "taskId": "<uuid>", "status": "working", "createdAt": "<now>", "lastUpdatedAt": "<now>", "ttlMs": 600000, "pollIntervalMs": 30000 }
    • tasks/get returns the task as working until 90 seconds have passed, then completed with a result holding a CallToolResult.
  2. Start copilot (with or without experimental mode) and ask it to call slow_probe.
  3. The client's tools/call request declares the Tasks extension in _meta; the server returns the CreateTaskResult above.
  4. The tool call fails with the error above. No tasks/get request reaches the server.

Expected behavior

Either:

  • the client polls tasks/get until the task completes and returns its result to the model; or
  • if Tasks v2 isn't supported yet, the client stops declaring io.modelcontextprotocol/tasks, so servers return a normal CallToolResult.

Additional context

  • With the same server, Claude Code 2.1.322 (Tasks v2) and VS Code 1.146.0's default Copilot harness (Tasks v1) both complete the task.
  • Same failure with experimental mode on.
  • Related: mcp tasks: add capabilities.tasks negotiation for task-mode tools #2538, which added experimental v1 Tasks support for taskSupport: "required" tools. This report is about the v2 extension, which the client declares but doesn't handle.
  • OS: Windows 11 x64

Activity

  1. added
    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry
    and removed on Nov 23, 2026
  2. hstaudacher commented on Nov 23, 2026

    @hstaudacher
    Collaborator

    Thanks for the clear report and spec reference. This is fixed: the MCP client now accepts a CreateTaskResult in response to tools/call and polls the task to completion. The fix is in the 1.0.115 prereleases and will ship in the 1.0.115 stable release. Please reopen if you still see it on 1.0.115 or newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions