[Client] Implement Dynamic Client Registration (RFC 7591) + pre-registered client support
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- php
- 领域
- api, authentication
调研方向
先从 #318 中的 AS 元数据工作开始,然后检查 Mcp\Client\Auth\DynamicClientRegistrar、Client\Builder 和 TokenStorageInterface。运行 auth/pre-registration 一致性场景,并为注册请求的结构和绕过预注册添加所请求的单元测试。完成标准是该场景通过且返回的凭据已持久化。
由索引模型根据 Issue 内容生成。
描述
Context
When no client credentials are pre-configured and AS metadata advertises registration_endpoint, the client must POST client_metadata to register itself dynamically. When credentials are pre-provided via Builder, skip registration.
Scope
Mcp\Client\Auth\DynamicClientRegistrar:- POST
client_metadata(client_name, redirect_uris, grant_types, token_endpoint_auth_method, software_id, software_version) toregistration_endpoint. - Persist returned
client_id/client_secret/client_secret_expires_atviaTokenStorageInterface.
- POST
Client\Builder::setOAuthClient(string $clientId, ?string $clientSecret = null)for pre-registration.
Conformance scenarios unblocked
auth/pre-registration (and unblocks every other auth scenario by providing a client_id).
Dependencies
Blocked by: #318 (AS metadata gives registration_endpoint).
Acceptance
- Unit tests for registration request shape + pre-registration bypass.
- Conformance:
auth/pre-registrationpasses.
cc @soyuka
- 主要语言
- PHP
- 星标
- 1.6k
- 派生
- 177
- 平均合并
- 7 天 20 小时
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/php-sdk 的其他 Issue
-
[Server] JwtTokenValidator only fetches the keys of the first configured issuer可能已有人在做 @chr-hertel 于 1 天前认领。 未关闭Server
难度 2/5 1-3 小时 新手友好度 70/100
modelcontextprotocol/php-sdk#530 ·
维护者通常 2 天内回复
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStan未关闭Server
难度 1/5 1 小时以内 新手友好度 78/100
modelcontextprotocol/php-sdk#468 · 2 条评论 ·
维护者通常 2 天内回复
-
Builder::build() silently skips configured file-based discovery when symfony/finder is missing — should fail loudly可能已有人在做 @ousamabenyounes 于 50 天前认领。 未关闭needs confirmation needs maintainer action Server
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/php-sdk#398 · 1 个 reaction ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/php-sdk#370 ·
维护者通常 2 天内回复
-
[Server] Mcp-Param header is accepted when the body omits its argument可能已有人在做 @chr-hertel 于 1 天前认领。 未关闭Server
难度 3/5 半天 新手友好度 68/100
modelcontextprotocol/php-sdk#533 ·
维护者通常 2 天内回复
查看 modelcontextprotocol/php-sdk 的全部 Issue
相似的 Issue
-
product / databases
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
VilnaCRM-Org/user-service#525 ·
维护者通常 21 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
shukiv/jabali-panel#2029 ·
维护者通常 1 天内回复
-
area:pool-types good first issue priority:low type:bug
难度 2/5 1-3 小时 新手友好度 76/100
crazy-goat/php-fpm-ng#822 ·
维护者通常 1 天内回复
-
agentic bug
难度 2/5 1-3 小时 新手友好度 78/100
MagnaCapax/PMSS#1023 · 1 条评论 ·
维护者通常 5 天内回复