[Client][Server] Ship extension classes for the two authorization extensions

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

Maintainer thường phản hồi trong vòng 1 ngày

@chr-hertel đang làm issue này rồi.

Từ ngày 10/11/2026.

Đánh giá

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

Mô tả

auth Client Server

Currently neither side announces the authorization extensions from #669. The extension guides ask for that, the normative specs in modelcontextprotocol/ext-auth don't:

  • client: io.modelcontextprotocol/oauth-client-credentials and io.modelcontextprotocol/enterprise-managed-authorization in clientCapabilities.extensions ("must" in the guides)
  • server: io.modelcontextprotocol/oauth-client-credentials in the server/discover capabilities (optional, "recommended for discoverability")

Nothing breaks without it - conformance doesn't check it, and the TypeScript and Python SDKs don't announce them either. Users can already do it with their own AbstractExtension, but since the prefix is reserved for official extensions, it's on us to ship the classes, like McpApps:

$client = Client::builder()
    ->enableExtension(new OAuthClientCredentials())
    ->build();

$server = Server::builder()
    ->enableExtension(new OAuthClientCredentials())
    ->build();

OAuth::forServiceAccount() can't enable it on its own, since core must not know concrete extensions - so it stays opt-in and gets documented next to forServiceAccount() and setCrossAppAccess(). Low priority, rather a follow up once the other SDKs move.

Ngôn ngữ chính
PHP
Star
1.7k
Fork
206
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
102

Chuẩn bị môi trường

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.

Issue khác của modelcontextprotocol/php-sdk

Tất cả issue của modelcontextprotocol/php-sdk

Issue tương tự

Thêm issue về PHP

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.