CapForge MCP Adapter
ACM-controlled AI agent tool execution via the Model Context Protocol.
Overview
capforge-mcp is the official Model Context Protocol integration for CapForge. It lets you protect every MCP tool invocation against an Agent Capability Manifest (ACM) — a signed policy document that defines what actions an agent is allowed to perform.
Every tool call passes through ACM.check() before execution. Unauthorized attempts are rejected with a structured MCPPermissionError.
Installation
pip install capforge-mcp
Requires Python 3.12+.
Quick Start
from capforge import ACM
from capforge_mcp import ACMProtectedMCP
# Load your signed capability manifest
acm = ACM.load("manifest.json")
# Create an ACM-protected MCP server
mcp = ACMProtectedMCP("MyServer", acm=acm)
# Register a protected tool
@mcp.tool(resource="email", action="send")
def send_email(to: str, body: str) -> str:
return f"Sent to {to}: {body}"
# Run the server
mcp.run(transport="stdio")
API
| Symbol | Description |
|---|---|
ACMProtectedMCP |
FastMCP wrapper with built-in ACM authorization |
acm_protected |
Decorator for adding ACM checks to any MCP tool |
MCPPermissionError |
Structured error raised on denied tool invocations |
Dependency
capforge-mcp requires the capforge core package (pip install capforge) and the MCP Python SDK (mcp>=1.28,<2). Both are installed automatically as dependencies.
License
Apache 2.0
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 capforge_mcp-0.6.1.tar.gz.
File metadata
- Download URL: capforge_mcp-0.6.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff3690f32c974321cb7f7daa07259e5b3bda93217d3730739b74a5955695cb79
|
|
| MD5 |
588aa2c534bef0628e25eb23dcc839e7
|
|
| BLAKE2b-256 |
7b7de399f138a00ab884648de9f99bb37380ce1a42b94f6567ffb31c32269a4f
|
File details
Details for the file capforge_mcp-0.6.1-py3-none-any.whl.
File metadata
- Download URL: capforge_mcp-0.6.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fec624f9177e095e0d7c913efc0ca016ba9a1a33f6cc3374152c9c81d243d1b
|
|
| MD5 |
e1cac98a0a0b6f3f9cee36497744a99c
|
|
| BLAKE2b-256 |
26164a580ffaad380a0198bf6e72546c5021a36a8ea52f950c9258ecb63a1361
|