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.6.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.6.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_mcp_proxy-3.6.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.6.0.tar.gz
Algorithm Hash digest
SHA256 d3c32922d494b1708a32a71ed5826641c669d6c34e252e3a14f7b3d09086f8ba
MD5 07d50de77bd1ddf7db57fd3db70808f8
BLAKE2b-256 8c1b35ec587da3469c826f9949740770af54fd943842dc7f219fb5097c1f023f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_mcp_proxy-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 561117b50a885fee68924bfa692d38f64bf8805d44e676fbd34dfcb13bdbd4ac
MD5 63f247906b7e43f5b6ab78ea660be7e2
BLAKE2b-256 fd186c0e43f0e2ff051468002c25f72c5aea82028a5edbd41f02aa37a36395c2

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