Skip to main content

MCP proxy that wraps any MCP tool with AgentMesh trust verification

Project description

MCP Trust Proxy

MCP proxy server that wraps any MCP tool with AgentMesh trust verification.

Agents must present a valid identity (DID) and meet trust thresholds before accessing tools.

Features

  • TrustProxy: Intercepts MCP tool calls and verifies agent identity
  • ToolPolicy: Per-tool trust score thresholds and capability requirements
  • AuditLog: Full audit trail of all tool access attempts

Quick Start

from mcp_trust_proxy import TrustProxy, ToolPolicy

proxy = TrustProxy(
    default_min_trust=300,
    tool_policies={
        "file_write": ToolPolicy(min_trust=800, required_capabilities=["fs_write"]),
        "shell_exec": ToolPolicy(min_trust=900, blocked=True),
    },
)

# Agent requests tool access
result = proxy.authorize(
    agent_did="did:mesh:agent-1",
    agent_trust_score=600,
    agent_capabilities=["fs_read", "search"],
    tool_name="file_read",
)
assert result.allowed

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

agentmesh_mcp_proxy-3.5.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_mcp_proxy-3.5.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_mcp_proxy-3.5.0.tar.gz.

File metadata

  • Download URL: agentmesh_mcp_proxy-3.5.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for agentmesh_mcp_proxy-3.5.0.tar.gz
Algorithm Hash digest
SHA256 7800ad027a193d89cefe58eb6782e3761afe8bacd3cdc0b399eeb9813744e759
MD5 92b0b772fdd8867c1514ab69b68d3a6f
BLAKE2b-256 a66134cc397a3f395679b26e2e325faa6ce8630f995ecf01c07889e00122da31

See more details on using hashes here.

File details

Details for the file agentmesh_mcp_proxy-3.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_mcp_proxy-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6eac69b2d95e1fb8fcf0315ac9cf1f5dc34474cf1dc2d6b447ebcada40265fd
MD5 d6e0db3eeee83ed735648dce9828cbf8
BLAKE2b-256 3e0648fea0b0fd8b6240133fe893d1999f63348e45e38dc9d90a15ddb8106d5f

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