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 還沒有評估資料。