Aegis connects to your AI coding agent using the Model Context Protocol (MCP) over Server-Sent Events (SSE). When your agent calls a tool, pushing code, opening a pull request, creating a branch, that request flows through Aegis first. Aegis evaluates it against your policies, logs it, and either allows it, routes it for approval, or blocks it. You do not need to modify your agent or your repositories.Documentation Index
Fetch the complete documentation index at: https://docs.runaegis.co/llms.txt
Use this file to discover all available pages before exploring further.
Supported tools
Claude Code
User-level or project-level config via
~/.claude/mcp.json.Cursor
User-level or workspace-level config via
~/.cursor/mcp.json.VS Code Copilot
Workspace-level config via
.vscode/mcp.json.Coming soon: Windsurf and Codex support is in progress. These tools will appear on the Integrations page in the Aegis dashboard when they are ready.
How the connection works
Every integration uses the same SSE endpoint with query parameters that identify you, the room, and your role:Connection flow
Create a room
In the Aegis dashboard, go to Rooms and create a room for the repository you want to govern. A room ties together a repository, its policies, and the agents allowed to act on it. You must create a room before you can connect an agent.
Copy your credentials
After creating the room, copy the room ID and access token from the room detail page. You will also need your user ID, which you can find in Settings → Profile.
Where to find your credentials
| Credential | Where to find it |
|---|---|
user_id | Settings → Profile in the Aegis dashboard |
room_id | The room detail page under Rooms |
access_token | The room detail page under Rooms |
Choosing a role
Therole parameter controls what actions Aegis permits for this agent connection. Choose the role that matches the trust level you want to grant.
| Role | Use case |
|---|---|
DEVELOPER | Day-to-day coding agents. Use this for most connections. |
ADMIN | CI pipelines or automation that needs elevated permissions. |
OWNER | Full access. Reserve for trusted tooling you fully control. |