Connecting Claude Code to Aegis lets you govern every tool call the agent makes, pushing code, creating branches, opening pull requests, without changing your agent setup or your repositories. Aegis connects via the Model Context Protocol (MCP) over SSE. Once the config is in place and Claude Code is restarted, governance starts automatically.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.
Prerequisites
Before you connect Claude Code, make sure you have:- An Aegis account at app.runaegis.co
- GitHub connected in Settings → GitHub
- At least one room created in Rooms, you need the room ID and access token from that room
Your user ID is in Settings → Profile. You will need it when filling in the config below.
Config file location
Claude Code reads its MCP configuration from one of two locations depending on how broadly you want Aegis to apply:| Scope | Path | When to use |
|---|---|---|
| User-level | ~/.claude/mcp.json | Apply Aegis to all Claude Code sessions on this machine |
| Project-level | .claude/mcp.json | Apply Aegis to a single repository |
Setup
Open or create your MCP config file
For user-level scope, open
~/.claude/mcp.json. For project-level scope, create a .claude/ folder in your project root and open .claude/mcp.json inside it. If the file does not exist yet, create it.Paste the config
Copy the snippet below, replace the four placeholder values with your actual credentials, and save the file.Replace each placeholder:
~/.claude/mcp.json
| Placeholder | Value |
|---|---|
<USER_ID> | Your Aegis user ID, find it in Settings → Profile |
<ROOM_ID> | The room ID from the room detail page |
<ACCESS_TOKEN> | The access token from the room detail page |
<ROLE> | DEVELOPER, ADMIN, or OWNER |