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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmesh_mcp_proxy-3.4.0.tar.gz.
File metadata
- Download URL: agentmesh_mcp_proxy-3.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b8e658c3a24834423bae26ea1d6c6faa27b913c51e3ef53caa7053d5fa76594
|
|
| MD5 |
5b49c40c86eebdb8e0308b55a5d4d5ae
|
|
| BLAKE2b-256 |
b76ab217a0fdf92e2111752e263e5e6fa7de008c0e44b10f44c3549344528f2c
|
File details
Details for the file agentmesh_mcp_proxy-3.4.0-py3-none-any.whl.
File metadata
- Download URL: agentmesh_mcp_proxy-3.4.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12e942c7cc184f2c81296094d310eab5a242480b42ecd39525e9bf4795d17e9
|
|
| MD5 |
5ad90f52110817e5c5ff5d5619b14ff9
|
|
| BLAKE2b-256 |
7c5190c0574812443468b863a7b376af004dd7096c1c74f22bec8cc2f16c1ba0
|