返回全部动态
MCP Python SDK v2.0.0 稳定版发布
原标题:v2.0.0
AI 摘要
MCP Python SDK 发布 v2.0.0 稳定版,支持 2026-07-28 修订的 Model Context Protocol,并兼容所有早期版本。该版本将 FastMCP 重命名为 MCPServer,引入统一的 Client 对象,支持多轮请求和依赖注入,并内置 OpenTelemetry 追踪。v1.x 进入维护模式,仅接收安全修复。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
# MCP Python SDK v2 Stable Release This is v2.0.0, the stable v2 release of the MCP Python SDK. It supports the 2026-07-28 revision of the Model Context Protocol and serves every earlier revision from the same server. `pip install mcp` now installs 2.x. ```bash pip install "mcp[cli]" # or uv add "mcp[cli]" ``` ### Documentation Rewrite The [documentation](https://py.sdk.modelcontextprotocol.io/) has the full tutorial and API reference. Coming from v1? [What's new in v2](https://p
发布时间:2026-07-28 21:41
抓取时间:2026-08-02 00:22
来源机构:MCP