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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_mcp_proxy-3.2.2.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.2.2.tar.gz
Algorithm Hash digest
SHA256 c5fd3fca756f5d4c2c79a3d5dd5c923b04ec88d8ee1f71556e3694a0742eec39
MD5 04c64b58da3b07a44586b46d19366af8
BLAKE2b-256 083f292ba3c9359eb44627df8232ef78ee0939eb457763dacee89056362ead31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_mcp_proxy-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03754c0bd1eac4f53733f9070073d68e157e86b6ab9c7aedf730ebcfd47df962
MD5 5fb851807498d3a128f86ac27a8b6329
BLAKE2b-256 5b549b5b1904173af4e1b9e2cf016523e1775d5d31b14a8b922971c9d9f74a93

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