MCP Integration¶
Integrate ACGP with the Model Context Protocol (MCP).
Overview¶
The Model Context Protocol (MCP) enables agents to interact with external tools and data sources. ACGP can govern these interactions to ensure safe and appropriate tool usage.
Installation¶
Basic Integration¶
from acgp import GovernanceSteward
from acgp.integrations.mcp import MCPGovernanceAdapter
# Create steward
steward = GovernanceSteward(acl_tier="ACL-2")
# Wrap MCP server
governed_mcp = MCPGovernanceAdapter(
mcp_server=my_mcp_server,
steward=steward
)
Governing Tool Calls¶
# MCP tool call with governance
result = governed_mcp.call_tool(
tool="file_system_write",
parameters={"path": "/data/file.txt", "content": "..."}
)
# ACGP evaluates before executing
# - Is this tool appropriate?
# - Are parameters safe?
# - Does agent have permission?
Configuration¶
Detailed content coming soon