You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix docs/release follow-ups from the mcp-types package split
- gen_ref_pages.py: derive each module identifier from its own package
root, so the API reference emits `mcp_types.*` instead of the
unimportable `mcp-types.mcp_types.*`. Add `src/mcp-types` to the mkdocs
paths/watch lists and to the deploy-docs trigger filter.
- publish-pypi.yml: build the two distributions into separate directories
and publish `mcp-types` before `mcp`, so a failed dependency upload can
never leave `mcp` published with an unsatisfiable exact pin.
`skip-existing` only on the mcp-types step, so a re-run recovers from a
partial publish without muting a duplicate `mcp` upload.
- mcp-types: ship a real LICENSE file instead of the sdist-only
force-include, so the wheel carries License-File in every build mode.
- tests: add a static check that every `mcp_types` module imports only the
standard library and the dependencies `src/mcp-types/pyproject.toml`
declares; move test_version.py to mirror its source module.
- docs: the migration guide taught `from mcp import CallToolResult`, which
raises ImportError (`CallToolResult` is not in `mcp.__all__`) -- use
`Resource`. Name `mcp_types.version` as the home of the protocol-version
constants, link the new API reference, correct the "depends only on
pydantic" wording, and point schema/README.md at the new codegen path.
- AGENTS.md / RELEASE.md: document that the root project's runtime
dependencies are dynamic and live in the uv-dynamic-versioning hook
table, and that a release now publishes both distributions.
`SUPPORTED_PROTOCOL_VERSIONS` is deprecated — it's now the union of `HANDSHAKE_PROTOCOL_VERSIONS` (initialize-handshake versions) and `MODERN_PROTOCOL_VERSIONS` (per-request-envelope versions). If you were using it to mean "versions the initialize handshake accepts", switch to `HANDSHAKE_PROTOCOL_VERSIONS`. Named scalars derived from these tuples are now exported alongside them — `LATEST_HANDSHAKE_VERSION`, `LATEST_MODERN_VERSION`, `OLDEST_SUPPORTED_VERSION` — so prefer those over indexing the tuples directly.
817
+
`SUPPORTED_PROTOCOL_VERSIONS` is deprecated — it's now the union of `HANDSHAKE_PROTOCOL_VERSIONS` (initialize-handshake versions) and `MODERN_PROTOCOL_VERSIONS` (per-request-envelope versions). If you were using it to mean "versions the initialize handshake accepts", switch to `HANDSHAKE_PROTOCOL_VERSIONS`. Named scalars derived from these tuples are now exported alongside them — `LATEST_HANDSHAKE_VERSION`, `LATEST_MODERN_VERSION`, `OLDEST_SUPPORTED_VERSION` — so prefer those over indexing the tuples directly. All of these live in `mcp_types.version` (previously `mcp.shared.version`): `from mcp_types.version import HANDSHAKE_PROTOCOL_VERSIONS`.
817
818
818
819
### `ProgressContext` and `progress()` context manager removed
0 commit comments