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
dependabot[bot] dd47977f4e
Bump qs in the npm_and_yarn group across 1 directory (#3)
Bumps the npm_and_yarn group with 1 update in the / directory: [qs](https://github.com/ljharb/qs).


Updates `qs` from 6.15.1 to 6.15.2
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.15.1...v6.15.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.15.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 14:49:29 -07:00
.github/workflows generate schema with refs 2026-05-11 15:53:04 -07:00
docs Port #2756 (#5) 2026-05-29 12:08:56 -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
.gitignore Write updated docs and port SEP-2663 content (#2) 2026-05-22 12:06:55 -07:00
CODE_OF_CONDUCT.md first agentic pass 2026-05-11 14:25:28 -07:00
CONTRIBUTING.md first agentic pass 2026-05-11 14:25:28 -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 qs in the npm_and_yarn group across 1 directory (#3) 2026-06-03 14:49:29 -07:00
package.json generate schema with refs 2026-05-11 15:53:04 -07:00
README.md update readme 2026-05-11 16:00:35 -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.