The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Agent Envelope MCP listing page.
agent-envelope-mcp is the MCP adapter for AgentEnvelope.
Any MCP-capable runtime can check delegated authority before it acts: OpenAI Agents SDK, OpenAI Responses remote MCP, Claude Desktop, Cursor, LangChain, LangGraph, CrewAI, or a custom runtime.
Prompts can request actions; AgentEnvelope decides whether the actor has authority to perform them.
Local stdio:
Streamable HTTP:
The HTTP endpoint is:
Health check:
No API key is needed to start the server or to use sovereign signature/record
verification. Hosted-governance tools require AE_API_KEY or, in HTTP mode, an
Authorization: Bearer <portal-api-key> header.
For verification-only deployments, set AE_TOOLS=readonly. In that mode the
server does not register ae_mint, so MCP clients can only call sovereign
verification and hosted read/query tools.
| Tool | Mode | Credential | Notes |
|---|---|---|---|
ae_verify_sovereign | Sovereign signature check | none | Offline signature-only check |
ae_verify_sovereign_record | Sovereign public-record check | none | Offline record, signature, index, and time-decay check |
ae_get_agent | Hosted governance | AE_API_KEY or bearer | Fetches hosted public agent record |
ae_verify_action | Hosted governance | AE_API_KEY or bearer | Verifies against hosted public record |
ae_authorize_action | Hosted governance | AE_API_KEY or bearer | Normalizes hosted verification into an allowed/denied decision |
ae_get_delegate | Hosted governance | AE_API_KEY or bearer | Fetches one active hosted delegate |
ae_check_legitimacy | Hosted governance | AE_API_KEY or bearer | Normalizes legitimacy state into a decision |
ae_mint | Hosted governance | AE_API_KEY or bearer | Governed mint request; returns receipt, not private material. Omitted when AE_TOOLS=readonly |
Most tools return both readable MCP content and machine-readable
structuredContent.
Call AgentEnvelope before the real action. Execute only if allowed === true.
Do not pass AE_MINT_MATERIAL, vault roots, seeds, or private domain material to
the model or MCP client. Keep those in the bot runtime secret store.
Use Streamable HTTP mode locally, or point OpenAI at your deployed MCP URL after the web/API edge is configured to serve the MCP HTTP endpoint:
For local HTTP testing, start the server:
Then use:
Example attack:
Expected runtime flow:
ae_authorize_action.allowed: false.Denied actions are useful outcomes: they show that authority boundaries held.
| Variable | Required for | Purpose |
|---|---|---|
AE_API_KEY | Hosted tools | Portal-issued API key for hosted governance |
AE_API_BASE_URL | Hosted tools | Optional override for the AgentEnvelope hosted API |
AE_TOOLS | Tool exposure | Set to readonly to omit ae_mint |
AE_MCP_SESSION_IDLE_MS | HTTP mode | Optional idle timeout for Streamable HTTP sessions; defaults to 30 minutes |
PORT | HTTP mode | Default HTTP port when --port is omitted |
HOST | HTTP mode | Default HTTP bind host when --host is omitted |
MCP_PATH | HTTP mode | Default MCP path when --path is omitted |
ae_mint is annotated as a governed, non-idempotent hosted action.Apache-2.0 - see NOTICE for attribution.