open-brain-web-gateway
Open Brain Web ゲートウェイ
Tony の Gemini Spark および Perplexity Web クライアント向けの、OAuth で保護されたリモート MCP ゲートウェイです。承認された呼び出しを既存の素の Open Brain に転送し、別のブレインを作成することはありません。
境界
Open Brain は運用メモリであり、Continuity、COTA、Current-State Tracker、またはオーナー承認権限ではありません。
チャットの自動キャプチャは行いません。キャプチャツールは明示的なリクエスト専用です。
素の Open Brain リポジトリと Edge Function は変更されません。
ブラウザクライアントは短期間有効な OAuth トークンを受け取り、長期間有効な Open Brain アクセスキーを受け取ることはありません。
OAuth トークンはこのゲートウェイで検証された後、終端されます。アップストリームの Open Brain には渡されません。
コンポーネント
open-brain-web-gateway: クライアント/ユーザー許可リスト、完全一致エイリアスと要約エイリアス、正規の書き込み後レシートを備えた、OAuth で保護された Streamable HTTP MCP リレー。docs/: GitHub Pages のメールリンクサインインと OAuth 同意 UI、およびプライバシーページと利用規約ページ。open-brain-oauth-ui: 将来のカスタム Supabase ドメイン用のフォールバックとして保持されるデプロイ可能なソース。デフォルトの Supabase Functions ドメインは意図的に HTML をプレーンテキストに書き換えます。
ライブ環境で必要な設定
Supabase OAuth 2.1 Server が有効で、認可パスが
/oauth/consentであること。Auth Site URL:
https://derivedbetter.github.io/open-brain-oauth-ui。Authorization path:
/oauth/consent/とし、リダイレクト許可リストにhttps://derivedbetter.github.io/open-brain-oauth-ui/**が含まれていること。事前登録済みの機密クライアントが 2 つ: Gemini Spark と Perplexity。
Edge シークレット:
OPEN_BRAIN_ALLOWED_EMAILS=<approved-email>OPEN_BRAIN_OAUTH_CLIENT_IDS=<gemini-client-id>,<perplexity-client-id>オプション:
OPEN_BRAIN_OAUTH_AUDIENCES=authenticated,<gateway-url>既存の
MCP_ACCESS_KEYはサーバー側に残ります。
パイロット期間中は、動的クライアント登録は無効のままです。
検証
npm test
npx -y supabase@latest functions deploy open-brain-oauth-ui --project-ref zoptbgumxukgpkgbtnpz --no-verify-jwt
npx -y supabase@latest functions deploy open-brain-web-gateway --project-ref zoptbgumxukgpkgbtnpz --no-verify-jwtクライアントを接続する前に、ディスカバリと未認証時の失敗をテストします:
GET /functions/v1/open-brain-web-gateway/.well-known/oauth-protected-resourceが protected-resource メタデータを返すこと。未認証の
POST /functions/v1/open-brain-web-gatewayが401と OAuth のWWW-Authenticateチャレンジを返すこと。無効なユーザー、クライアント、発行者、オーディエンス、および期限切れトークンは、アップストリーム呼び出しなしでフェイルクローズすること。
ロールバック
影響を受けた OAuth クライアントを失効させ、Gemini または Perplexity のコネクタを無効にし、クライアントが残っていない場合は Supabase OAuth Server を無効にし、2 つのゲートウェイ Edge Functions のみを削除します。既存の Open Brain データと ChatGPT、Codex、agy の統合は変更されません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Google-OAuth-gated LLM gateway: verify a Google ID token, then run a Gemini (Vertex AI) completion f
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Access Kernel's cloud-based browsers and app actions via MCP (remote HTTP + OAuth).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Derivedbetter/open-brain-oauth-ui'
If you have feedback or need assistance with the MCP directory API, please join our Discord server