Armadillo Governor MCP Wrapper
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Armadillo Governor MCP Wrapper
Governance wrapper for Model Context Protocol (MCP) tool execution.
This project now has two clear paths:
run_mcp.sh: production entrypoint for the governance control plane (API + dashboard process management).backend/mcp_server.py: production MCP wrapper binary that sits in front of an existing upstream MCP server and enforces policy before forwarding tool calls.run.sh: hackathon/demo launcher (local simulation + optional frontend-only ngrok sharing).
What This Is
A policy-enforcing MCP proxy that:
connects to an upstream MCP server,
mirrors upstream tools to the client,
evaluates each tool call against local policy,
blocks/reviews/allows calls,
forwards allowed calls upstream,
records decisions in the governance audit DB.
Related MCP server: agent-security-gateway
Production Architecture
graph TD
Client[Claude / Cursor / MCP Client] -->|MCP stdio| Wrapper[backend/mcp_server.py]
Wrapper -->|Policy Check| Engine[Policy Engine]
Engine -->|Read/Write| Policy[(policy.yaml)]
Wrapper -->|Audit| DB[(governor.db)]
DB --> API[backend/main.py FastAPI]
API --> UI[React Dashboard]
Wrapper -->|Allowed Tool Call| Upstream[Existing MCP Server]
Upstream --> Wrapper
Wrapper --> ClientEnterprise Readiness Assessment
Implemented in this repo now
Real upstream MCP proxy behavior in
backend/mcp_server.py(no longer only mock local tools).Default-deny IAM-style policy evaluation (
ALLOW/DENY/REVIEW).Human-in-the-loop workflow for
REVIEWdecisions with timeout.Audit logging with execution lifecycle states (
PENDING,APPROVED,COMPLETED,FAILED, etc.).Safer
run_mcp.shprocess lifecycle:start|stop|restart|status|logs, PID files, health checks, no blindkill -9on ports.Configurable CORS and optional admin API key for mutating governance endpoints.
Still recommended before regulated enterprise rollout
External DB (Postgres/MySQL) and migrations instead of SQLite for HA and durability requirements.
Strong identity propagation from client to wrapper (today agent identity is provided via configured default or special tool arg).
AuthN/AuthZ in front of dashboard/API (OIDC, mTLS, reverse proxy, WAF).
Policy change controls (versioning, approvals, immutable audit stream, rollback workflow).
Centralized observability (metrics, tracing, SIEM export).
Installation
Clone and enter repository.
git clone <repo-url>
cd armadillo-mcp-wrapperInstall Python dependencies.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtInstall frontend dependencies.
cd frontend-react
npm install
cd ..Run Governance Control Plane (run_mcp.sh)
run_mcp.sh manages backend API and dashboard UI process lifecycle.
./run_mcp.sh start
./run_mcp.sh status
./run_mcp.sh logs backend
./run_mcp.sh stopDefault behavior:
Backend:
http://127.0.0.1:8000UI (preview mode):
http://127.0.0.1:5173
Useful environment variables:
GOVERNOR_BACKEND_PORT(default8000)GOVERNOR_BACKEND_WORKERS(default1)GOVERNOR_UI_MODE(preview|dev|none, defaultpreview)GOVERNOR_UI_PORT(default5173)GOVERNOR_ADMIN_API_KEY(optional; secures write endpoints)GOVERNOR_CORS_ORIGINS(comma-separated origins)
Run Wrapper in MCP Clients (backend/mcp_server.py)
Required wrapper configuration
The wrapper must know how to start upstream MCP:
UPSTREAM_MCP_COMMANDoptional
UPSTREAM_MCP_ARGS(JSON list or shell-style string)optional
UPSTREAM_MCP_CWDoptional
UPSTREAM_MCP_ENV_JSON(JSON object)
Claude Desktop example
{
"mcpServers": {
"governor-wrapper": {
"command": "python",
"args": [
"/absolute/path/armadillo-mcp-wrapper/backend/mcp_server.py"
],
"env": {
"UPSTREAM_MCP_COMMAND": "npx",
"UPSTREAM_MCP_ARGS": "[\"-y\",\"@modelcontextprotocol/server-filesystem\",\"/Users/you\"]",
"GOVERNOR_POLICY_PATH": "/absolute/path/armadillo-mcp-wrapper/policy.yaml",
"GOVERNOR_AGENT_ID": "claude-desktop"
}
}
}
}Cursor example
Command:
python /absolute/path/armadillo-mcp-wrapper/backend/mcp_server.pyEnvironment:
UPSTREAM_MCP_COMMAND=npxUPSTREAM_MCP_ARGS=["-y","@modelcontextprotocol/server-filesystem","/Users/you"]GOVERNOR_POLICY_PATH=/absolute/path/armadillo-mcp-wrapper/policy.yamlGOVERNOR_AGENT_ID=cursor
Policy Model (policy.yaml)
The wrapper supports:
IAM-style
access_controlschema (preferred)legacy
rulesschema (auto-converted)
Decision precedence:
DENYwinsthen
REVIEWthen
ALLOWotherwise default deny
Agent Identity
For now, agent identity is sourced from:
tool argument
__governor_agent_id(if provided), elseGOVERNOR_AGENT_IDenv var, elseUnknown
Example tool argument override:
{
"query": "SELECT 1",
"__governor_agent_id": "payments-prod-agent"
}Dashboard / API Endpoints
GET /healthzGET /readyzGET /api/requestsGET /api/statsGET /api/access-controlPOST /api/access-control/policiesDELETE /api/access-control/policies/{policy_id}POST /api/access-control/statementsDELETE /api/access-control/policies/{policy_id}/statements/{statement_id}POST /api/access-control/agents/attach-policyPOST /api/access-control/agents/detach-policyPOST /api/access-control/agents/removePOST /api/approve/{request_id}POST /api/deny/{request_id}POST /api/reset
If GOVERNOR_ADMIN_API_KEY is set, write endpoints require header X-API-Key.
Universal Wrapper Status (Implemented)
The universal governance wrapper is now implemented in this repository.
Production wrapper binary:
backend/mcp_server.pyProduction control-plane launcher:
run_mcp.sh
This means the project already supports the intended flow of wrapping an existing MCP server, enforcing policy, and forwarding approved calls.
Hackathon Demo Path (run.sh)
run.sh is the hackathon/demo launcher. It starts:
backend API locally (default
:8000)frontend dev server locally (default
:5173)optional frontend-only ngrok tunnel (enabled by default)
optional local simulation runner (enabled by default)
Quick start
./run.shIf ngrok is installed and authenticated, output includes:
Frontend public: https://...
Share that frontend URL for demo access. Backend and simulation remain local.
Environment flags
GOVERNOR_ENABLE_NGROK(1|0, default1)GOVERNOR_RUN_SIMULATION(1|0, default1)GOVERNOR_BACKEND_PORT(default8000)GOVERNOR_UI_PORT(default5173)GOVERNOR_PYTHON_BIN(default/opt/anaconda3/envs/deepseek-ocr/bin/python)GOVERNOR_UVICORN_BIN(default/opt/anaconda3/envs/deepseek-ocr/bin/uvicorn)
Examples:
# Frontend tunnel on, simulation on (default behavior)
./run.sh
# Local only (no ngrok)
GOVERNOR_ENABLE_NGROK=0 ./run.sh
# Share frontend, but skip simulation
GOVERNOR_RUN_SIMULATION=0 ./run.shImplementation note: frontend API requests are proxied by Vite to the local backend (VITE_DEV_PROXY_TARGET), so only one ngrok tunnel is required for demos.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA policy-enforcing MCP gateway that intercepts all tool calls to downstream MCP servers, applying allow/deny/ask rules with human approval and audit logging for safe access to dangerous tools.8 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.-
- AlicenseAqualityCmaintenanceAn MCP proxy that enforces policy on every tool call, blocking or flagging actions before they reach downstream MCP servers.147 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides a governance layer for MCP servers, enforcing policy-based allow/deny/approval rules, requiring human approval for risky calls, and recording an auditable trail of every AI agent tool call.MIT