Cursor
Cursor has built-in codebase indexing, but CCE adds compressed retrieval, cross-session memory, and token savings tracking on top.
Quick setup
Section titled “Quick setup”cce init # Auto-detects Cursor if .cursor/ existscce init --agent all # Explicitly includes CursorFiles created
Section titled “Files created”.cursor/mcp.json
Section titled “.cursor/mcp.json”Registers the CCE MCP server for Cursor’s agent mode.
{ "mcpServers": { "context-engine": { "command": "cce", "args": ["serve", "--project-dir", "/path/to/your/project"] } }}.cursorrules
Section titled “.cursorrules”Contains instructions for Cursor’s AI to prefer context_search over raw file reads. The CCE block is wrapped in markers so your own rules are preserved.
Working with Cursor’s built-in indexing
Section titled “Working with Cursor’s built-in indexing”Cursor indexes your codebase for its own retrieval. CCE complements this by:
- Compressed context that uses fewer tokens per query (Cursor’s index returns full file content, CCE returns relevant chunks with signature compression)
- Token savings tracking so you can measure the cost difference
- Graph-aware retrieval that follows code relationships (imports, calls)
- Cross-session memory that persists decisions across restarts
Both systems run side by side without conflict. Cursor’s indexing handles in-editor completions, CCE handles chat/agent queries.
Verify it’s working
Section titled “Verify it’s working”- Restart Cursor after running
cce init - Open the Composer or Chat panel
- Ask a code question:
Where is the database connection configured?- Check the tool call output. If Cursor used
context_search, CCE is active - Run
cce savingsin your terminal to see token savings
Troubleshooting
Section titled “Troubleshooting”Cursor ignores CCE and reads files directly
Section titled “Cursor ignores CCE and reads files directly”Cursor may prefer its built-in indexing for some queries. Check that .cursorrules contains the CCE instructions block. The instructions tell Cursor to prefer context_search, but Cursor’s own heuristics may override this for simple lookups.
”cce: command not found”
Section titled “”cce: command not found””Cursor inherits PATH from how it was launched. Ensure ~/.local/bin (or wherever cce is installed) is in your shell profile, then launch Cursor from a terminal with cursor .
MCP tools not showing
Section titled “MCP tools not showing”Restart Cursor completely (not just reload). MCP config is read at startup, not on config file change.
Windows path issues
Section titled “Windows path issues”If your project path contains spaces, ensure the path in .cursor/mcp.json is correctly quoted. cce init handles this automatically, but manual edits can break it.