Commit graph ext-tasks/schema/draft
Author SHA1 Message Date
Luca Chang
29f83d5c8b
Write updated docs and port SEP-2663 content (#2)
* Port SEP-2663 content

* Commit package-lock.json

* Add TODOs to import new types from SDK

* Copy InputRequests/InputResponses types from main repo

* Specify error for servers that require tasks

* Allow servers to require tasks

* Move "existing code" note to separate section

* Update 2663-tasks-extension.md

Co-authored-by: Caitie McCaffrey <caitiem20@github.com>

* Update 2663-tasks-extension.md

Co-authored-by: Caitie McCaffrey <caitiem20@github.com>

* Task Update Requests

* Link to MRTR spec for inputRequests

* Add auth check requirement

* Rename notifications/tasks/status

* Move detailed task types into task status section

* Add back explicit polling response requirements

* Disallow progress/logging notifications for now

* Add spec language for client behavior on inputRequests

* Mark Accepted

* Mark Final

* regenerate schema

* Fix check mode in generate-schemas.ts

Check mode previously compared the gitignored intermediate
schema/draft/generated/schema.ts against fresh output, then wrote a
temp file under that same directory to dynamic-import for JSON Schema
generation. On fresh checkouts (every CI run, since schema/**/generated/
is gitignored) the directory does not exist, so the temp-file write
crashed with ENOENT before reporting any real result. Local runs hid
the bug because once a developer runs the generator the directory
sticks around.

Drop the comparison against the gitignored intermediate (it cannot be
stale on CI by definition) and check only the committed schema.json.
The Zod schemas file is now written unconditionally so the dynamic
import resolves.

---------

Co-authored-by: Caitie McCaffrey <caitiem20@github.com>
2026-05-22 12:06:55 -07:00
Caitie McCaffrey
0b65dc6188 Rename folders to draft 2026-05-11 16:04:32 -07:00
Caitie McCaffrey
b8acfa0b6b generate schema with refs 2026-05-11 15:53:04 -07:00
Caitie McCaffrey
5cac9229cf Use SDK imports for TypeScript and remote refs for JSON Schema
- schema.ts: Import core MCP types from @modelcontextprotocol/sdk/types.js
  instead of inline stubs
- schema.json: Use remote \ URIs pointing to core MCP schema at
  https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/
  main/schema/2025-11-25/schema.json
- Add package.json with SDK and TypeScript as devDependencies
- Add .gitignore for node_modules
- Add skipLibCheck to tsconfig.json
- Add index signature to TaskStatusNotificationParams for SDK type compat

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 14:37:49 -07:00
Caitie McCaffrey
8c434efe8d first agentic pass 2026-05-11 14:25:28 -07:00