Mirror of https://github.com/modelcontextprotocol/ext-tasks — This repository provides a reference for the tasks extensions to the MCP protocol, allowing for long-running operations, such as Agent communication, in MCP.
  • TypeScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JoannaaKL c523f2c21d
Fix Missing Required Client Capability error code (#15)
The spec cites -32003 for "Missing Required Client Capability", but the
canonical code is -32021: SEP-2663 uses -32021 in all four of these
spots, the core 2026-07-28 schema defines MissingRequiredClientCapability
Error as -32021, and the TypeScript SDK exports
MISSING_REQUIRED_CLIENT_CAPABILITY = -32021. -32003 appears in no core
schema version.
2026-08-19 19:21:20 -07:00
.github/workflows Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
.vitepress Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
public Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
schema/draft Write updated docs and port SEP-2663 content (#2) 2026-05-22 12:06:55 -07:00
scripts Write updated docs and port SEP-2663 content (#2) 2026-05-22 12:06:55 -07:00
seps Port #2756 (#5) 2026-05-29 12:08:56 -07:00
specification/draft Fix Missing Required Client Capability error code (#15) 2026-08-19 19:21:20 -07:00
.gitignore Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
CODE_OF_CONDUCT.md first agentic pass 2026-05-11 14:25:28 -07:00
CONTRIBUTING.md Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
index.md Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
LICENSE first agentic pass 2026-05-11 14:25:28 -07:00
MAINTAINERS.md Update MAINTAINERS.md 2026-05-11 15:18:16 -07:00
package-lock.json Bump hono in the npm_and_yarn group across 1 directory (#6) 2026-07-15 13:41:09 -07:00
package.json Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
README.md Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
SECURITY.md first agentic pass 2026-05-11 14:25:28 -07:00
tsconfig.json generate schema with refs 2026-05-11 15:53:04 -07:00

MCP Tasks Extension (Experimental)

This repository is under development and is working towards implementing the changes described in SEP-2663. For the latest status and discussion, see the pull request.

⚠️ Experimental Extension — This repository contains an experimental extension to the Model Context Protocol. It is not an official extension and may change significantly or be discontinued. See the Extensions specification for details on the experimental extension process.

Overview

This extension defines the Tasks primitive for the Model Context Protocol (MCP). Tasks are durable state machines that carry information about the underlying execution state of a request, enabling requestor polling and deferred result retrieval. Each task is uniquely identifiable by a receiver-generated task ID.

Tasks are useful for:

  • Representing expensive computations and batch processing requests
  • Integrating seamlessly with external job/workflow APIs
  • Enabling call-now, fetch-later execution patterns

Extension Identifier: io.modelcontextprotocol/tasks

Development

Schema Generation

The JSON Schema is auto-generated from the TypeScript type definitions using ts-to-zod and Zod's toJSONSchema(). Do not hand-edit schema.json or generated/schema.ts.

# Generate Zod schemas and JSON Schema from schema.ts
npm run generate:schemas

# Verify TypeScript compiles and generated files are up to date
npm run check:schema

Governance

This repository follows the Model Context Protocol Governance process. See MAINTAINERS.md for the list of maintainers specific to this repository.

Policies

This repository follows the Model Context Protocol project policies:

License

This project is licensed under the Apache License 2.0. See LICENSE for details.