modelcontextprotocol / modelcontextprotocol/python-sdk

Capabilities API + server/discover handler

Đang mở
#2,896 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@maxisbey đang làm issue này rồi.

Từ ngày 18/6/2026.

enhancement P2 spec-2026-07-28 v2
Ngôn ngữ chính
Python
Star
24.3k
Fork
4k
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
31

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.