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
Address review findings on the pre-release machinery
- comment-on-release: pick the previous release by smallest ahead_by
across all same-major releases instead of trusting list order
(releases published from drafts keep their draft creation date, so
list order can hide the true predecessor); check the major line
before comparing so cross-line candidates cost no API calls; skip
only candidates whose tag no longer resolves and fail loudly on other
compare errors; skip drafts; paginate release and comment listings;
cap the commit range at 250 and skip commenting beyond it; derive
pre-release wording from the tag as well as the release flag
- RELEASE.md: stable releases must target the v1.x branch (the UI
defaults to main, which is the v2 rework); the --target commit must
contain the release tooling and is ignored if the tag already exists;
release notes need absolute links; yanked versions should point at
their replacement; bump the Development Status classifier when the
line changes stage
- README.v2.md: pin install and quickstart commands while v2 is in
pre-release; point the docs badge and API reference at the v2 docs
site; fix examples against the v2 API (Icon mime_type/sizes,
snake_case CallToolResult fields via a re-synced snippet,
keyword-only max_tokens, elicitation result shape, request context
fields)
- snippets: fix the resource-read isinstance in the stdio client
example (TextResourceContents, not TextContent)
- pyproject: drop the leftover "git" keyword
@@ -116,15 +116,17 @@ If you haven't created a uv-managed project yet, create one:
116
116
Then add MCP to your project dependencies:
117
117
118
118
```bash
119
-
uv add "mcp[cli]"
119
+
uv add "mcp[cli]==2.0.0a1"
120
120
```
121
121
122
122
Alternatively, for projects using pip for dependencies:
123
123
124
124
```bash
125
-
pip install "mcp[cli]"
125
+
pip install "mcp[cli]==2.0.0a1"
126
126
```
127
127
128
+
> While v2 is in pre-release, you must pin the version explicitly: unpinned installs resolve to the latest stable v1.x release, which these docs do not describe. Check the [release history](https://pypi.org/project/mcp/#history) for the newest pre-release. The same applies to ad-hoc commands: use `uv run --with "mcp==2.0.0a1"` rather than `uv run --with mcp`.
# Call a tool (add tool from mcpserver_quickstart)
@@ -2404,6 +2407,7 @@ For a complete working example, see [`examples/clients/simple-auth-client/`](htt
2404
2407
2405
2408
When calling tools through MCP, the `CallToolResult` object contains the tool's response in a structured format. Understanding how to parse this result is essential for properly handling tool outputs.
0 commit comments