Add a shared multi-tenant MCP connector for preview sandboxes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
ファイルやテストは指定されていないため、まず本番デプロイメントのエントリーポイントと、既存の MCP または OAuth 統合を探します。1 つのデプロイメントでパスセグメントに基づくテナントに対応し、本番 upstream を拒否し、無効な discovery パスには 404 を返し、指定された MCP ヘッダーのみを転送し、publish と delete のツールが存在しないことを検証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 34
- フォーク
- 5
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 41
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
focusreactive/payload-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
focusreactive/payload-plugins#279 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
focusreactive/payload-plugins#263 ·
メンテナーはふだん 1 日以内に返信
-
comments, seo, analytics, and presets publish ESM that fails to load in Node.js (follow-up to #149)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
focusreactive/payload-plugins#240 ·
メンテナーはふだん 1 日以内に返信
-
released released on @next
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
focusreactive/payload-plugins#210 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
[translator] Re-extract the traversal engine into its own package再び着手できるかも @SearheiParkhamchuk が 41 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンchore low priority translator
focusreactive/payload-plugins#203 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
focusreactive/payload-plugins の issue をすべて見る
似ている issue
-
verified whatsapp
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
openidconnect: option to use client_secret_post (client_id with "-" rejected by LemonLDAP::NG 2.21)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MTES-MCT/monitorenv#3257 ·
メンテナーはふだん 1 日以内に返信