Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"aegis": {
"args": [
"--project",
".",
"--role",
"backend"
],
"command": "aegis-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP enforcement layer for the Aegis agent governance specification.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'aegis-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked aegis-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in security
An evil MCP server used for redteam testing
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
Security-first platform for AI agents. 38 specialized agents, 15 AI-powered extensions, zero-knowledge multi-agent orchestration. SENTINEL WAF, Ed25519 auth, 2.6M grounding facts.
MCP Security Weekly
Get CVE alerts and security updates for io.github.cleburn/aegis-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP enforcement layer for the Aegis agent governance specification.
Policy at the root. Enforcement at runtime. Accountability on every action.
aegis-mcp-server is an MCP server that validates every agent action against your .agentpolicy/ files before it happens. Path permissions, content scanning, role boundaries, quality gates — all enforced at runtime with zero token overhead to the agent.
The agent never loads your governance files. The MCP server reads them into its own process memory and validates silently. The agent calls governed tools and gets back either a success or a blocked response with the specific reason.
# Install globally
npm install -g aegis-mcp-server
If you generated your policy with aegis-cli, the .mcp.json connection config is already in your project root. Just install the MCP and open your agent — it connects automatically.
When starting a new agent session in a governed project, use this as your first prompt:
Call aegis_policy_summary now. This is your governance contract — it defines your
role, your boundaries, and which tools to use. Do not take any action until you have
called this tool and received confirmation from the user to proceed.
For initial builds, the Aegis CLI generates a custom handoff prompt tailored to your project — use that instead.
The MCP starts without a pre-assigned role. When the agent calls aegis_policy_summary, it receives the list of available roles — including the built-in construction role and all specialist roles from .agentpolicy/roles/. The agent presents them to the user, the user picks, and the agent calls aegis_select_role to lock in. All enforcement uses the selected role for the rest of the session.
This is the default behavior — no configuration needed beyond the .mcp.json that aegis init creates automatically.
The construction role is always available for initial builds and major restructuring. When selected:
.agentpolicy/ files serve as the blueprint — the agent reads constitution, governance, and role files to understand the project's architecture, conventions, and quality standardsstate/overrides.jsonl with a timestamp and human_confirmed: trueaegis_complete_task to run quality gates and close construction mode — the closing timestamp is logged alongside the opening entryConstruction mode is not a bypass — the agent still follows the governance files as its blueprint. It's a speed optimization for greenfield builds where enforcing write restrictions on every file would be counterproductive.
If you know which role to assign at startup:
{
"mcpServers": {
"aegis": {
"command": "aegis-mcp",
"args": ["--project", ".", "--role", "backend"]
}
}
}
The MCP locks to that role immediately. aegis_policy_summary returns the role's boundaries directly, skipping role selection.