Mcp Gateway

io.github.titus-civic由 GitHub 帳號 titus-civic 發布v1.0.0更新於 Oct 24, 2026

Identity, authorization, audit trails, and revocable permissions for AI agents accessing MCP tools.

發布方自己的服務:Nexus

已驗證Streamable HTTP可網頁執行開發者工具安全與監控

概覽

AI 產生的概覽

遠端 MCP 閘道,為 AI 工具呼叫提供代理身分、限定範圍的工具權限、稽核記錄與可撤銷的存取。

可以做什麼
  • 讓助理透過位於代理之外的權限層連接 MCP 工具
  • 以 Civic 簽發的 bearer token 或 OAuth 驗證代理身分,並限定其可用的工具
  • 記錄每次工具呼叫及其代理身分與時間戳,形成稽核軌跡
  • 撤銷 token 後代理立即失去存取權
  • 透過設定器套用速率限制、審核流程與拒絕清單等防護機制
  • 將端點鎖定到指定 profile,以限定為某一組設定
適用情境
當助理需要呼叫郵件、行事曆或資料庫等敏感工具,而你需要限制它能存取哪些工具、保留其操作紀錄並能快速切斷存取時適用。也適合無法完成互動式 OAuth 流程、需要以 token 驗證的非互動式代理。
執行需求
使用 app.civic.com 上的遠端 Streamable HTTP 端點,不需在本機安裝套件。需要 Civic 帳號登入並產生 bearer token,或由用戶端在首次連線時完成 OAuth。使用 bearer token 的用戶端透過 Authorization 標頭傳遞。需要能連線至該閘道的網路。
安裝前請注意
此閘道持有控制代理存取的憑證:bearer token 會授予其被限定的全部權限,應妥善保管並在不再需要時撤銷。防護機制與稽核記錄僅涵蓋經由此閘道的呼叫,工具呼叫及其中介資料會傳送至 Civic 的託管服務。依賴前請先檢查所設定的拒絕清單與審核規則。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Gateway,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.titus-civic%2Fmcp-gateway/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "gateway": {
      "type": "http",
      "url": "https://app.civic.com/hub/mcp"
    }
  }
}

README

Civic MCP Gateway

Connecting AI Agents to tools and data via the Civic MCP Gateway gives builders access to guardrails, scoped permissions, audit trails, and revocable access when calling MCP tools. Civic separates the permission layer from the AI agent so they can't get around restrictions.

This repository contains integration metadata, configuration files, and client examples. The gateway itself runs at app.civic.com.


What it does

Without an identity layer, any AI agent can call any MCP tool with no record of who authorized it, what it accessed, or how to revoke its access. Civic fixes that:

  • Agent identity — agents authenticate with a Civic-issued bearer token
  • Scoped permissions — grant agents access to specific tools only
  • Audit trail — every tool call is logged with agent identity and timestamp
  • Revocable access — revoke a token and the agent loses access immediately
  • Guardrails — rate limits, approval workflows, and deny lists via the configurator

MCP Endpoint

https://app.civic.com/hub/mcp

Transport: Streamable HTTP Auth: Bearer token (generated at app.civic.com)


Quickstart

1. Get a token

Sign in at app.civic.com and generate a bearer token from the onboarding flow.

2. Configure your MCP client

Claude Desktop — native Streamable HTTP:

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "civic": {      "url": "https://app.civic.com/hub/mcp"    }  }}

Claude Code — native HTTP transport (no bridge needed):

bash
claude mcp add --transport http civic https://app.civic.com/hub/mcp

Or for stdio via Hub Bridge:

bash
claude mcp add civic "npx @civic/hub-bridge"

Cursor — native Streamable HTTP:

Add to your Cursor MCP config:

json
{  "mcpServers": {    "civic": {      "url": "https://app.civic.com/hub/mcp"    }  }}

Cline (VS Code) — add to cline_mcp_settings.json:

json
{  "mcpServers": {    "civic": {      "url": "https://app.civic.com/hub/mcp",      "headers": {        "Authorization": "Bearer YOUR_CIVIC_TOKEN"      }    }  }}

Windsurf — native Streamable HTTP, no bridge required:

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "civic": {      "serverUrl": "https://app.civic.com/hub/mcp"    }  }}

Windsurf handles OAuth automatically on first connection.

3. Optional: lock to a profile

Append ?profile=your-toolkit to scope the gateway to a specific configuration:

https://app.civic.com/hub/mcp?profile=your-toolkit

Automated agents (token-based auth)

For non-interactive agents that can't complete an OAuth flow, generate a bearer token at app.civic.com and pass it directly:

bash
curl -X POST https://app.civic.com/hub/mcp \  -H "Authorization: Bearer $CIVIC_TOKEN" \  -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Install from a registry

Example use cases

Use caseWhat Civic adds
Gmail guardrails & auditBlock outbound sends with secrets, redact PII from email content, log every send
Google Calendar guardrails & auditPrevent event deletion, restrict to business hours, block external attendees
PostgreSQL guardrails & auditBlock destructive queries, enforce read-only access, redact sensitive columns

Documentation

Full documentation at docs.civic.com


Working example

See civicteam/nexus-demo for a full client integration using Next.js, federated auth, and MCP tool visualization.


License

MIT

來源:README.md,提交 2ec8eef

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Civic 整合