Connecting Cursor to Aegis routes every MCP tool call, pushing commits, creating branches, merging pull requests, through Aegis for policy evaluation and logging. The integration uses the MCP SSE transport. You add a single config entry, restart Cursor, and governance begins.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 Cursor, 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
Cursor reads MCP configuration from one of two locations:| Scope | Path | When to use |
|---|---|---|
| User-level | ~/.cursor/mcp.json | Apply Aegis to all Cursor sessions on this machine |
| Workspace-level | .cursor/mcp.json | Apply Aegis to a single project |
Setup
Open or create your MCP config file
For user-level scope, open
~/.cursor/mcp.json. For workspace-level scope, create a .cursor/ folder in your project root and open .cursor/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:
~/.cursor/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 |