MCP OAuth: client credentials grant for machine-to-machine access

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
api, authentication

Hướng nghiên cứu

Start by reading the related issues #511, #512, and #513, then inspect the OAuth token endpoint /oauth/token, the MCP endpoint /mcp, and the existing API key flow. The scope first requires a decision about client identity and permission bounds, followed by confidential-client creation and secret handling. Done means a test client can obtain a token and call /mcp, with documentation explaining when to use API keys versus client credentials.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Part of #511. Follows #512 and #513.

Summary

Add the OAuth client_credentials grant (MCP OAuth Client Credentials extension) for machine-to-machine access, e.g. CI jobs and bots that act as a service identity rather than a signed-in user.

This is not on the zero-config path (callers still need a pre-provisioned client ID and secret), so it comes after interactive sign-in.

Scope

  • Decide what identity a client-credentials client acts as (a service user, or the user who created it) and how its permissions are bounded
  • Admin/user UI to create a confidential client and view its secret once
  • client_credentials grant on /oauth/token
  • Compare against plain API keys, which already cover most machine use, and document when to use which

Acceptance criteria

  • A test client obtains a token with client_credentials and calls /mcp successfully.
  • Docs explain API keys vs. client credentials.
Ngôn ngữ chính
JavaScript
Star
10
Fork
6
Merge trung bình
5 ngày 14 giờ
Pull request đã merge (30 ngày)
5

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có 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.

Issue khác của mieweb/opensource-server

Tất cả issue của mieweb/opensource-server

Issue tương tự

Thêm issue về JavaScript

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.