Cursor
Connect Pharaoh to Cursor so it sees your codebase architecture when you use AI features.
Prerequisite: Install the GitHub App first.
Setup
Option A: Cursor settings UI
Open Cursor
Go to Settings > MCP
Click Add Server
Enter the URL:
https://mcp.pharaoh.so/sseComplete the GitHub OAuth flow in the browser window that opens
Option B: Config file
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"pharaoh": {
"url": "https://mcp.pharaoh.so/sse"
}
}
}Restart Cursor after saving. The OAuth flow runs on first connection.
Verify
Open Cursor's AI chat and ask:
Cursor should call get_codebase_map and return a module breakdown with file counts, function counts, and dependency relationships.
What happens automatically
Cursor's AI calls Pharaoh tools before making architectural decisions - checking for duplicate functions, understanding callers, mapping module boundaries
Every push to your default branch refreshes the graph within minutes
No config files or per-repo setup needed after the initial install
Pharaoh tools return structured data in minimal tokens so the AI has room to reason
Troubleshooting
"MCP not available" or no MCP option in settings: Update Cursor to the latest version. MCP support requires a recent release.
Auth fails or OAuth window doesn't open: Authorize with the same GitHub account that has the Pharaoh app installed. If you have multiple GitHub accounts, check which one is signed in to your browser.
Tools not showing in AI chat: Restart Cursor after adding the MCP server. If using the config file approach, verify the JSON is valid and the file is in .cursor/mcp.json at the project root.
"No repos found" or empty results: The GitHub App must be installed on the correct org or account. Go to github.com/apps/pharaoh-so/installations/new and verify the installation.
Last updated