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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_mcp_proxy-3.7.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.7.0.tar.gz
Algorithm Hash digest
SHA256 aecfd65ed67ff2fb46f6f68b49affff143363b35edc3c90852245d326c8a7e42
MD5 a9b94b9a4e7106250889c19841ea060d
BLAKE2b-256 693296f41c141b564f760e08416d1b477da845318bfaa6263abc756ca4f796a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_mcp_proxy-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62e0eb1cb273a0b411058eb85623686b911ee0a2d499e13a24031206f0968f2f
MD5 3dc9d181e8fc7d1f73fb966a2b549fc9
BLAKE2b-256 4e55138fed28a8f6ec80d4fb5df538d8c54a66e6057fc2168e19379398673dff

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