[Feature Request] Pin MCP OAuth clients with client ID metadata documents
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- authentication, cli
Hướng nghiên cứu
The proposal names HTTP and SSE MCP server configuration, /mcp-config login, OAuth provider lookup, and cached-provider handling; the prepared branch is linked for reference. Start by reviewing the configuration and OAuth service tests mentioned in the validation. Done means the optional clientMetadataUrl selects pinned client identity, omission preserves dynamic registration, and the documented behavior is covered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
HTTP and SSE MCP servers that require a reviewed OAuth client ID metadata document (CIMD) cannot currently use a stable client identity in Kimi Code. They must use dynamic client registration, which is incompatible with authorization servers that intentionally accept only pinned/reviewed clients.
One concrete use case is Pascal's hosted MCP server: Pascal wants Kimi users to authorize through a reviewed Kimi client identity without enabling open dynamic registration.
Proposal
Add an optional clientMetadataUrl URL field to HTTP and SSE MCP server configuration. When present, its URL becomes the OAuth client_id and dynamic registration is skipped for that server. When omitted, existing dynamic-registration behavior remains unchanged.
The proposed implementation also:
- propagates the field through interactive
/mcp-config loginand token/provider lookup; - recreates cached providers when the configured identity changes;
- invalidates mismatched CIMD or dynamic registrations without disturbing a matching registration;
- supports explicitly returning to dynamic registration when the field is removed;
- documents the field in English and Chinese and publishes a Kimi client metadata document with the CLI documentation site.
A prepared branch is available at https://github.com/Aymericr/kimi-code/tree/feat/pinned-mcp-oauth-clients.
Validation
- OAuth service tests: 50 passed, including CIMD without registration and return to dynamic registration.
- MCP management tests: 61 passed.
- Connection-manager tests: 47 passed.
- Package typecheck and repository lint passed.
The documentation build was attempted but timed out locally; the metadata source file and both documentation pages are included in the branch.
If this direction is acceptable, please /approve this issue so I can open the external feature PR under the repository's contribution policy.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.3k
- Fork
- 1.4k
- Merge trung bình
- 12 giờ 6 phút
- Pull request đã merge (30 ngày)
- 596
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MoonshotAI/kimi-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MoonshotAI/kimi-code#5539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesCó thể đã có người làm @markankamaransheogarat-sys đã nhận 2 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MoonshotAI/kimi-code#5296 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MoonshotAI/kimi-code#5256 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MoonshotAI/kimi-code#5062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MoonshotAI/kimi-code#5057 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MoonshotAI/kimi-code
Issue tương tự
-
Add Alice&BotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
midnightntwrk/midnight-faucet-api#215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[功能] 手机端命令执行显示 AI 动作描述Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NanmiCoder/cc-haha#2034 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mobile prio:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày