modelcontextprotocol / modelcontextprotocol/python-sdk

Capabilities API + server/discover handler

オープン
#2,896 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@maxisbey がすでに取り組んでいます。

2026年6月18日 から。

enhancement P2 spec-2026-07-28 v2
主要言語
Python
スター
24.3k
フォーク
4k
平均マージ
1日 1時間
マージ済み PR(30日)
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() / InitializationOptions so capabilities are configurable, not pre-computed.
  • The extensions capability map surfaced on both client and server.
  • Default server/discover handler: 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。