Protocol types for 2026-07-28: superset monolith, committed per-version packages, and wire-method maps (#2849)
This commit is contained in:
parent
2693fb95ae
commit
65be5a7147
4 changed files with 19076 additions and 371 deletions
4057
schema/2025-11-25.json
Normal file
4057
schema/2025-11-25.json
Normal file
File diff suppressed because it is too large
Load diff
3873
schema/2026-07-28.json
Normal file
3873
schema/2026-07-28.json
Normal file
File diff suppressed because it is too large
Load diff
14
schema/PINNED.json
Normal file
14
schema/PINNED.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
{
|
||||
"protocol_version": "2025-11-25",
|
||||
"source_path_in_spec_repo": "schema/2025-11-25/schema.json",
|
||||
"spec_commit": "6d441518de8a9d5adbab0b10a76a667a63f90665",
|
||||
"sha256": "4e01628360a2149892eab8f298ceee626d24a58862184eb8ec85d95b8f353e31"
|
||||
},
|
||||
{
|
||||
"protocol_version": "2026-07-28",
|
||||
"source_path_in_spec_repo": "schema/draft/schema.json",
|
||||
"spec_commit": "6d441518de8a9d5adbab0b10a76a667a63f90665",
|
||||
"sha256": "bce2e7c9622bb0b449475ba6d8d80228c71190a09250e75dabd502b280ecf3cb"
|
||||
}
|
||||
]
|
||||
12
schema/README.md
Normal file
12
schema/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Vendored protocol schemas
|
||||
|
||||
JSON Schema files for each protocol version the SDK has a wire-shape surface
|
||||
package for, vendored from the [spec repository] at the commit recorded in
|
||||
`PINNED.json`. `scripts/gen_surface_types.py` reads these to regenerate
|
||||
`src/mcp/types/v<version>/__init__.py`; CI runs the generator with `--check`.
|
||||
|
||||
To bump: drop the new `schema.json` here as `<protocol-version>.json`, update
|
||||
the matching entry in `PINNED.json` (commit + sha256), and run
|
||||
`uv run --frozen --group codegen python scripts/gen_surface_types.py`.
|
||||
|
||||
[spec repository]: https://github.com/modelcontextprotocol/modelcontextprotocol
|
||||
Loading…
Reference in a new issue