Skip to main content

Runtime governance for MCP tool calls — Arc Gate for the MCP protocol layer

Project description

arc-gate-mcp

Runtime governance for MCP tool calls.

Arc Gate MCP sits between your agent and any MCP server. It intercepts all tool call results and enforces instruction-authority boundaries before the agent processes them.

When a tool result contains injected instructions — a poisoned document, a malicious webpage, a hostile database row — Arc Gate blocks them before they reach the agent.

Install

pip install arc-gate-mcp

Usage

Full proxy (wraps any MCP server)

from arc_gate_mcp import ArcGateMCPProxy

proxy = ArcGateMCPProxy(
    upstream_url="http://localhost:8000/sse",
    policy_mode="rag_assistant",
)
proxy.run()

Per-tool guard

from arc_gate_mcp import ArcGateToolGuard

guard = ArcGateToolGuard(policy_mode="rag_assistant")

@mcp.tool()
async def read_document(path: str) -> str:
    content = read_file(path)
    return guard.check(content, tool_name="read_document")

CLI

arc-gate-mcp --upstream http://localhost:8000/sse --policy rag_assistant

Policy modes

Mode Behavior
balanced Block on detected injection
browser_agent Strip injections, allow safe content
finance_agent Strictest — block everything suspicious
rag_assistant Strip injections, preserve safe data

Related

  • Arc Gate — OpenAI-compatible proxy version
  • arc-sentry — Whitebox detector for self-hosted models

License

AGPL-3.0. Commercial license available — contact 9hannahnine@gmail.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arc_gate_mcp-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arc_gate_mcp-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file arc_gate_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: arc_gate_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for arc_gate_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 01a444bb14489cb9473e06b3ae974070503089e1c08082313c7c61e127ae26b6
MD5 7ec97a1c37ccff75998c4cfff06706aa
BLAKE2b-256 848e7985486a6ad7ee22fd80fee1726aa5a6016104ff90a04aa57dab3834c4c6

See more details on using hashes here.

File details

Details for the file arc_gate_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arc_gate_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for arc_gate_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 027a2404099ad5ed56c95f31fead898038d48b7524ee46ae288195e0505f8d1d
MD5 88de8a4a1569988e60723e205e46ba8b
BLAKE2b-256 c98436a71c70bedee20a0b1a6ac497d47a4854973912cf2c2804d7109a2230bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page