Add a shared multi-tenant MCP connector for preview sandboxes
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ó
- 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
- 45/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ệ
- typescript
- Lĩnh vực
- api, backend-api-design, security
Hướng nghiên cứu
Không có tệp hoặc kiểm thử nào được nêu tên; hãy bắt đầu bằng cách xác định entry point của deployment production và mọi tích hợp MCP hoặc OAuth hiện có. Công việc được xem là hoàn tất khi một deployment phục vụ các tenant theo các phân đoạn đường dẫn, từ chối các upstream production, trả về 404 cho các đường dẫn discovery không hợp lệ, chỉ chuyển tiếp các header MCP được chỉ định và xác minh rằng các tool publish và delete không tồn tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Let someone evaluating a preview sandbox point their own AI tool (Claude, ChatGPT) at that sandbox's CMS by pasting a single URL, with no sign-in, and without standing up a throwaway deployment for every sandbox.
Why a preview deployment cannot serve this itself
Chat applications add a custom connector from their own cloud, and the first thing they do is probe the origin for auth-discovery documents with no query string attached:
/.well-known/oauth-protected-resource/.well-known/oauth-authorization-server/register
On a deployment-protected preview all three answer 302 to the SSO login instead of 404. The client concludes the server has a sign-in service, its dynamic client registration then fails, and the user sees an error along the lines of "couldn't register with the sign-in service".
Two consequences worth stating explicitly, because both cost time to rediscover:
- a protection-bypass query parameter does not help. It works under
curlbecause curl carries the parameter; the discovery probes do not - the connector host must not be behind deployment protection at all
Since production (main) is not protection-protected, it can host the connector, and the connector forwards to the protected preview using the bypass secret server-side.
Proposal
One connector served from the production deployment, multi-tenant rather than one per sandbox:
- endpoint at
/<unguessable-path-segment>, where the segment identifies the tenant - the segment maps to that tenant's upstream sandbox URL and API key, held server-side
- the connector forwards MCP traffic upstream, adding the protection-bypass header itself
- forward only the MCP transport headers (
content-type,accept,mcp-session-id,mcp-protocol-version), never the caller's full header set - an unknown or wrong path segment returns
404, same as any other unknown path
Onboarding a sandbox becomes adding a config entry; retiring one becomes removing it. Nothing is deployed or torn down per sandbox.
Security constraints, please do not skip these
Satisfying dynamic client registration requires answering the OAuth endpoints, but that OAuth layer is protocol compliance, not access control. A working implementation of this pattern auto-approves every authorization request: the tokens it issues carry no identity and grant nothing beyond what the URL already grants. Real cryptography is still worth having (HMAC-signed stateless tokens, PKCE S256 verified, expiry enforced, malformed tokens rejected with a 4xx rather than throwing), but none of it authenticates anybody.
So the actual security boundary is only these two things, and both must hold:
- the unguessable path segment - anyone holding the URL is authorized, so it must be long, random, and kept out of query strings and logs
- a capability-limited tool surface - the exposed tools must not be able to publish or delete. Writes should land as drafts for a human to review
Which leads to the hard requirement:
This connector must only ever target an isolated preview sandbox with its own database. It must never be pointed at production. In front of production it is an open door for anyone who has the link.
A guard that refuses to start, or refuses a tenant entry, when the configured upstream is the production deployment would be worth having rather than relying on configuration discipline.
Note this interacts with the shared media store: until preview media is isolated, a connector that can write media can affect production. Keeping media write and image upload out of the tool surface avoids that until then.
Acceptance criteria
- one deployment serves connectors for many sandboxes, distinguished by path segment
- adding or removing a sandbox is a configuration change, with nothing to deploy or delete
- all auth-discovery paths return
404when probed without a valid path segment - the exposed tool list contains no publish and no delete operation, verified by a test
- pointing a tenant at the production deployment is rejected
- Ngôn ngữ chính
- TypeScript
- Star
- 34
- Fork
- 5
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 focusreactive/payload-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
focusreactive/payload-plugins#279 ·
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 88/100
focusreactive/payload-plugins#263 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comments, seo, analytics, and presets publish ESM that fails to load in Node.js (follow-up to #149)Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
focusreactive/payload-plugins#240 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
released released on @next
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
focusreactive/payload-plugins#210 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[translator] Re-extract the traversal engine into its own packageCó thể làm lại được @SearheiParkhamchuk đã nhận 41 ngày trước và không có pull request nào đang mở. Đang mởchore low priority translator
focusreactive/payload-plugins#203 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của focusreactive/payload-plugins
Issue tương tự
-
verified whatsapp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Feature: use a darkmode logoĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
openidconnect: option to use client_secret_post (client_id with "-" rejected by LemonLDAP::NG 2.21)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Amélioration du résumé regĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MTES-MCT/monitorenv#3257 ·
Maintainer thường phản hồi trong vòng 1 ngày