Skip to main content
Glama
Derivedbetter

open-brain-web-gateway

Open Brain 웹 게이트웨이

Tony의 Gemini Spark 및 Perplexity 웹 클라이언트를 위한 OAuth로 보호되는 원격 MCP 게이트웨이입니다. 승인된 호출을 기존 기본 Open Brain으로 전달하며 다른 브레인을 생성하지 않습니다.

경계

  • Open Brain은 운영 메모리이지, Continuity, COTA, Current-State Tracker 또는 소유자 승인 권한이 아닙니다.

  • 자동 채팅 캡처는 없습니다. 캡처 도구는 명시적 요청에만 사용됩니다.

  • 기본 Open Brain 저장소와 Edge Function은 변경되지 않습니다.

  • 브라우저 클라이언트는 수명이 짧은 OAuth 토큰을 받으며, 장기 수명의 Open Brain 액세스 키는 절대 받지 않습니다.

  • OAuth 토큰은 이 게이트웨이에서 검증된 후 종료됩니다. 업스트림 Open Brain으로 전달되지 않습니다.

Related MCP server: Gulpy

구성 요소

  • open-brain-web-gateway: 클라이언트/사용자 허용 목록, 정확한 별칭 및 요약 별칭, 권위 있는 쓰기 후 영수증을 갖춘 OAuth로 보호되는 Streamable HTTP MCP 릴레이입니다.

  • docs/: GitHub Pages 이메일 링크 로그인 및 OAuth 동의 UI, 그리고 개인정보 보호 및 약관 페이지.

  • open-brain-oauth-ui: 향후 사용자 지정 Supabase 도메인을 위한 대체 수단으로 유지되는 배포 가능한 소스입니다. 기본 Supabase Functions 도메인은 의도적으로 HTML을 일반 텍스트로 다시 작성합니다.

필수 라이브 구성

  1. Supabase OAuth 2.1 서버가 활성화되고 인증 경로가 /oauth/consent입니다.

  2. 인증 사이트 URL: https://derivedbetter.github.io/open-brain-oauth-ui.

  3. 인증 경로: /oauth/consent/ 및 리디렉션 허용 목록에 https://derivedbetter.github.io/open-brain-oauth-ui/**가 포함됩니다.

  4. 사전 등록된 기밀 클라이언트 두 개: Gemini Spark 및 Perplexity.

  5. Edge secrets:

    • OPEN_BRAIN_ALLOWED_EMAILS=<approved-email>

    • OPEN_BRAIN_OAUTH_CLIENT_IDS=<gemini-client-id>,<perplexity-client-id>

    • optional OPEN_BRAIN_OAUTH_AUDIENCES=authenticated,<gateway-url>

    • existing MCP_ACCESS_KEY remains server-side.

동적 클라이언트 등록은 파일럿 동안 비활성화된 상태로 유지됩니다.

검증

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는 보호된 리소스 메타데이터를 반환합니다.

  • 인증되지 않은 POST /functions/v1/open-brain-web-gateway는 401 및 OAuth WWW-Authenticate 챌린지를 반환합니다.

  • 잘못된 사용자, 클라이언트, 발급자, 대상 및 만료된 토큰은 업스트림 호출 없이 폐쇄적으로 실패합니다.

롤백

영향을 받은 OAuth 클라이언트를 취소하고, Gemini 또는 Perplexity에서 커넥터를 비활성화하고, 남은 클라이언트가 없으면 Supabase OAuth 서버를 비활성화하고, 게이트웨이 Edge Function 두 개만 삭제하십시오. 기존 Open Brain 데이터와 ChatGPT, Codex 및 agy 통합은 변경되지 않습니다.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    F
    maintenance
    Enables remote MCP clients to securely access AgentMemory tools like memory_recall, memory_smart_search, and memory_save through OAuth 2.1 and Streamable HTTP, while keeping the AgentMemory backend secret private.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides a single MCP server endpoint that lets AI agents connect to many real third-party services through OAuth, with user approvals, activity logs, scoped read/write grants, and one-tap access removal.
    17 npm
    AGPL 3.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Gives MCP clients a small remote Streamable HTTP tool surface for a Brain memory database, letting agents store facts, retrieve current-truth answers with evidence, delete memories, and check their effective identity. Each call is scoped by a customer identifier for per-customer isolation, and the endpoint can optionally be secured as an OAuth 2.1 resource server.
    138 npm
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables web-based AI clients like Claude, ChatGPT, and Grok to securely operate a local machine through OAuth-gated MCP tools covering files, shell, Git, databases, browser automation, and background tasks.
    MIT