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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_mcp_proxy-3.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 40fd68c714ee340e01258ee69f276f41517a8e75cacfd1f71205a9322b81dd9b
MD5 3858fcf2be5eb7ac9966f6c14b35abbd
BLAKE2b-256 2c8c0b57d737988de5adf4bee6350765fd51c637a53cd2dd7b63be3684aea6f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_mcp_proxy-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89497f340a7b4248de70d5d5af00bdff03d68c4a31f444b31edf3002f8e8b89e
MD5 46c53e73eba760c1dd33c5417ad14280
BLAKE2b-256 dcb1e0c0bff6a8041fd8dc3ae97e4fb134e1a4c86541fa25d249b3f9ce00923c

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