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
Luca Chang 9263312d11
Some checks failed
CI / check-schema (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / deploy (push) Has been cancelled
Bump CI
2026-09-04 10:03:32 -07:00
.github/workflows feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
.vitepress feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
public Set up Vitepress deployment (#7) 2026-06-09 12:18:41 -07:00
schema feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
scripts feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
seps fix: correct MISSING_REQUIRED_CLIENT_CAPABILITY error code to -32021 (#10) 2026-08-19 19:30:36 -07:00
specification feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -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 feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
index.md feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
LICENSE first agentic pass 2026-05-11 14:25:28 -07:00
MAINTAINERS.md Update Tasks extension docs to reflect official MCP status (#13) 2026-08-19 19:21:58 -07:00
package-lock.json fix: make generated schema.json enforce spec constraints (#18) 2026-08-21 13:44:01 -07:00
package.json feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -07:00
README.md feat: lock 2026-07-28 specification and schema (#19) 2026-08-24 12:10:45 -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

This repository contains the official Model Context Protocol Tasks extension (io.modelcontextprotocol/tasks), based on SEP-2663.

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

Schemas

Version Status TypeScript JSON Schema
2026-07-28 Stable schema.ts schema.json
draft Development schema.ts schema.json

Released schema directories are immutable snapshots with version-specific JSON Schema identifiers. Development and schema generation target schema/draft/ only. To create a release snapshot from the current draft:

npm run snapshot:schema -- YYYY-MM-DD

Development

Schema Generation

The draft 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 draft Zod schemas and JSON Schema from schema.ts
npm run generate:schemas

# Verify TypeScript compiles and draft 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.