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 集成