Skip to main content
Glama
getagentomy

Agentomy MCP Gateway

Official
by getagentomy

Agentomy MCP 网关

Agentomy 的一个开源组件,面向受监管企业中 AI 代理的治理层。其他组件见 github.com/getagentomy

License focus

通过坐镇代理与服务器之间,治理任意 stdio MCP 服务器。每一次 tools/call 在到达服务器之前都会依据你的策略接受检查。被拒绝的请求由网关应答, 绝不会被转发,因此副作用不会发生。

上游服务器本身没有任何改变。它不会被修补、不会被分叉,也永远不会 知道自己正被治理。

为什么选择拦截而非观察

一个旁路组件观察 MCP 流量并生成报告,产出的只是它未能阻止的事件的记录。 只有坐在链路上,才能把报告变成拒绝。

Related MCP server: jamjet-policy

安装与运行

# Instead of launching the MCP server directly:
#   my-mcp-server --flag
# launch it through the gateway:
AGENTOMY_ENDPOINT=https://your-agentomy \
AGENTOMY_API_KEY=... \
  agentomy-mcp-gateway, my-mcp-server --flag

在代理的 MCP 配置中,替换服务器的 commandargs

{
  "mcpServers": {
    "dev-tools": {
      "command": "agentomy-mcp-gateway",
      "args": ["--", "the-original-command", "--its", "--flags"],
      "env": { "AGENTOMY_ENDPOINT": "https://your-agentomy", "AGENTOMY_API_KEY": "..." }
    }
  }
}

这就是全部集成工作。由操作员为每个代理做一处配置更改。

变量

必需

含义

AGENTOMY_ENDPOINT

平台基础 URL

AGENTOMY_API_KEY

Bearer 令牌

AGENTOMY_AGENT_ID

决策中的身份,默认 mcp-gateway

AGENTOMY_TIMEOUT_MS

决策超时,默认 5000

它对协议做了什么

消息

行为

tools/call,允许

原样转发

tools/call,拒绝

不转发。 在同一 id 上返回 JSON-RPC 错误 -32000,带 data.governed = true 及原因

tools/call,拒绝,无 id

丢弃。通知绝不能得到应答,因此调用被停止,回复被扣留

其他一切

原样转发

上游到代理

逐字转发。结果不会被改写

请求按到达顺序裁决。并发裁决会让后到的调用先于较早的调用到达服务器, 这是一种只在负载下才会暴露的重排序缺陷。

故障即拒绝,以及它的代价

每一条故障路径都拒绝:

条件

返回的原因

端点不可达

governance_unreachable

决策超时

governance_timeout

非 2xx 响应

governance_http_error

响应体不是 JSON,或没有布尔 authorized 字段

governance_malformed_response

集群已停止

agent_halted

策略拒绝

policy_denied

诚实的权衡:如果平台宕机,受治理的工具就会停止工作。 这对治理组件而言 是正确的行为,同时也是一种真实的可用性耦合。请据此运维平台。

这些原因是刻意区分的。操作员看到 governance_unreachable 意味着一次故障; 看到 policy_denied 则是一个策略问题。把它们合并成"拒绝"会在差异最关键的 时刻让两者无法区分。

缺少 authorized 字段时拒绝,而不是按真值读取,因为真值检查会把任何意外 载荷(包括错误对象)变成放行。

它不做什么

它治理的是动作,而不是发现。tools/list 直接放行。在缩小代理可以看到什么 的同时放任它可以什么不受治理,那是放错了地方的表面文章。

它不改写结果。网关裁决请求;让它编辑响应会把它变成对话的参与者, 而不是对话上的一道闸门。

它不做参数语义检查。策略收到的是工具名和参数,而不是值。参数级策略是 平台层面的关注点,把完整参数值发送到决策端点会把文件内容和 shell 命令 送进第二个系统。

许可证

Apache-2.0。

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Governance proxy for MCP servers. Wraps any MCP server with policy evaluation, human approval workflows, and hash-chain audit trails. Supports stdio and Streamable HTTP transports.
    1
    16
    14
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Drop-in stdio interceptor that gates MCP tools/call requests through a YAML policy (block / require_approval / audit / budget cap) before they reach the real server. The same policy file is reused by @jamjet/claude-code-hook and @jamjet/openai-guardrail, so one rule set covers Claude Desktop, Cursor, OpenAI Agents, and custom clients.
    3
    2
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    Wraps your existing MCP servers and checks each tool call against policy and live state before it runs. Allow, block, or require a refresh, with a reason the agent can act on.
    5
  • A
    license
    Not graded
    quality
    B
    maintenance
    A least-privilege enforcement proxy for MCP servers. It sits between MCP clients and upstream servers, enforcing tool policies, hiding denied tools, requiring human approval for risky actions, and providing a structured audit trail.
    MIT

View all related MCP servers

Related MCP Connectors

  • Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.

  • A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

View all MCP Connectors

Latest Blog Posts

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/getagentomy/mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server