|
13 | 13 |
|
14 | 14 | </div> |
15 | 15 |
|
16 | | -> **This documents v1.x, the stable release line of the MCP Python SDK. v2 is in alpha.** |
| 16 | +> **This documents v1.x, the maintenance line of the MCP Python SDK.** v2 is the current stable release: `pip install mcp` now installs 2.x. See the [v2 documentation](https://py.sdk.modelcontextprotocol.io/) and the [migration guide](https://py.sdk.modelcontextprotocol.io/migration/) for what changed and how to upgrade. |
17 | 17 | > |
18 | | -> v2 pre-releases are published to PyPI as `2.0.0aN`. Installers never select a pre-release unless you opt in (for example `pip install mcp==2.0.0a1`), so v1.x users are unaffected. **If your package depends on `mcp`, add a `<2` upper bound to your version constraint (for example `mcp>=1.27,<2`) before the stable v2 release lands.** See the [v2 documentation](https://github.com/modelcontextprotocol/python-sdk/blob/main/README.v2.md) and the [migration guide](https://github.com/modelcontextprotocol/python-sdk/blob/main/docs/migration.md) for what's changing. |
19 | | -> |
20 | | -> v1.x remains recommended for production use. It is in maintenance mode and continues to receive critical bug fixes and security patches. |
| 18 | +> **Staying on v1.x?** Keep a `<2` upper bound on your requirement (for example `mcp>=1.28,<2`) so an unpinned resolve stays on the 1.x line. v1.x remains supported for existing deployments and continues to receive critical bug fixes and security patches; its documentation is at <https://py.sdk.modelcontextprotocol.io/v1/>. |
21 | 19 |
|
22 | 20 | <!-- omit in toc --> |
23 | 21 | ## Table of Contents |
|
38 | 36 | [python-badge]: https://img.shields.io/pypi/pyversions/mcp.svg |
39 | 37 | [python-url]: https://www.python.org/downloads/ |
40 | 38 | [docs-badge]: https://img.shields.io/badge/docs-python--sdk-blue.svg |
41 | | -[docs-url]: https://modelcontextprotocol.github.io/python-sdk/ |
| 39 | +[docs-url]: https://py.sdk.modelcontextprotocol.io/v1/ |
42 | 40 | [protocol-badge]: https://img.shields.io/badge/protocol-modelcontextprotocol.io-blue.svg |
43 | 41 | [protocol-url]: https://modelcontextprotocol.io |
44 | 42 | [spec-badge]: https://img.shields.io/badge/spec-spec.modelcontextprotocol.io-blue.svg |
@@ -69,13 +67,13 @@ If you haven't created a uv-managed project yet, create one: |
69 | 67 | Then add MCP to your project dependencies: |
70 | 68 |
|
71 | 69 | ```bash |
72 | | - uv add "mcp[cli]" |
| 70 | + uv add "mcp[cli]<2" |
73 | 71 | ``` |
74 | 72 |
|
75 | 73 | Alternatively, for projects using pip for dependencies: |
76 | 74 |
|
77 | 75 | ```bash |
78 | | -pip install "mcp[cli]" |
| 76 | +pip install "mcp[cli]<2" |
79 | 77 | ``` |
80 | 78 |
|
81 | 79 | ### Running the standalone MCP development tools |
@@ -143,7 +141,7 @@ _Full example: [examples/snippets/servers/fastmcp_quickstart.py](https://github. |
143 | 141 | You can install this server in [Claude Code](https://docs.claude.com/en/docs/claude-code/mcp) and interact with it right away. First, run the server: |
144 | 142 |
|
145 | 143 | ```bash |
146 | | -uv run --with mcp examples/snippets/servers/fastmcp_quickstart.py |
| 144 | +uv run --with "mcp<2" examples/snippets/servers/fastmcp_quickstart.py |
147 | 145 | ``` |
148 | 146 |
|
149 | 147 | Then add it to Claude Code: |
@@ -177,8 +175,8 @@ The [Model Context Protocol (MCP)](https://modelcontextprotocol.io) lets you bui |
177 | 175 | - [Low-Level Server](docs/low-level-server.md) -- direct handler registration for advanced use cases |
178 | 176 | - [Protocol Features](docs/protocol.md) -- MCP primitives, server capabilities |
179 | 177 | - [Testing](docs/testing.md) -- in-memory transport testing with pytest |
180 | | -- [API Reference](https://modelcontextprotocol.github.io/python-sdk/api/) |
181 | | -- [Experimental Features (Tasks)](https://modelcontextprotocol.github.io/python-sdk/experimental/tasks/) |
| 178 | +- [API Reference](https://py.sdk.modelcontextprotocol.io/v1/api/) |
| 179 | +- [Experimental Features (Tasks)](https://py.sdk.modelcontextprotocol.io/v1/experimental/tasks/) |
182 | 180 | - [Model Context Protocol documentation](https://modelcontextprotocol.io) |
183 | 181 | - [Model Context Protocol specification](https://modelcontextprotocol.io/specification/latest) |
184 | 182 | - [Officially supported servers](https://github.com/modelcontextprotocol/servers) |
|
0 commit comments