modelcontextprotocol / modelcontextprotocol/python-sdk
Capabilities API + server/discover handler
未关闭
@maxisbey 已经在做这个了。
开始于 2026年6月18日。
enhancement
P2
spec-2026-07-28
v2
- 主要语言
- Python
- 星标
- 24.3k
- 派生
- 4k
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 31
描述
Tracks: #2804 #2793
Let servers/clients actually configure what they advertise (currently pre-computed), surface the extensions map, and provide the default server/discover handler that returns it.
What's in it
- Rework
get_capabilities()/InitializationOptionsso capabilities are configurable, not pre-computed. - The
extensionscapability map surfaced on both client and server. - Default
server/discoverhandler: capabilities, serverInfo, supportedVersions, instructions (cache-hint defaults from #2899).
Conformance
- (the discover checks live inside
server-stateless) - Together with Backwards compatibility & version negotiation, New HTTP serving path (modern + dual-era), subscriptions/listen, Context object (layered, per-request):
server-stateless
Dependencies
- Depends on: #2892
References
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。