Repository navigation
Done
Done
Copy link
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registry
Description
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
- Add a stdio MCP server to
~/.copilot/mcp-config.jsonthat implements protocol 2026-07-28 and the Tasks extension:server/discoverreturns:{ "resultType": "complete", "supportedVersions": ["2026-07-28"], "capabilities": { "tools": {}, "extensions": { "io.modelcontextprotocol/tasks": {} } }, "ttlMs": 0, "cacheScope": "public" }tools/listreturns one tool,slow_probe, with an empty input schema.tools/callforslow_probe, when the request's_meta["io.modelcontextprotocol/clientCapabilities"].extensionscontainsio.modelcontextprotocol/tasks, returns:{ "resultType": "task", "taskId": "<uuid>", "status": "working", "createdAt": "<now>", "lastUpdatedAt": "<now>", "ttlMs": 600000, "pollIntervalMs": 30000 }tasks/getreturns the task asworkinguntil 90 seconds have passed, thencompletedwith aresultholding aCallToolResult.
- Start
copilot(with or without experimental mode) and ask it to callslow_probe. - The client's
tools/callrequest declares the Tasks extension in_meta; the server returns theCreateTaskResultabove. - The tool call fails with the error above. No
tasks/getrequest reaches the server.
Expected behavior
Either:
- the client polls
tasks/getuntil 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 normalCallToolResult.
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
Metadata
Metadata
Assignees
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registry
Activity
hstaudacher commentedon Nov 23, 2026
Thanks for the clear report and spec reference. This is fixed: the MCP client now accepts a
CreateTaskResultin response totools/calland 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.