Pi
Pi does not support MCP natively. CCE provides the standard .mcp.json config (consumed by a companion adapter) and writes AGENTS.md (loaded automatically by Pi at startup).
Quick setup
Section titled “Quick setup”cce init # Auto-detects Pi if .pi/ exists in the projectcce init --agent pi # Explicitly configure Picce init --agent all # Includes Pi alongside all other editorsAdapter required
Section titled “Adapter required”Because Pi has no built-in MCP client, you need a companion adapter extension that reads .mcp.json and bridges Pi to the CCE MCP server. One option is pi-mcp-adapter.
Without the adapter, Pi can still read AGENTS.md and follow the CCE usage instructions, but it cannot call context_search as an MCP tool.
Files created
Section titled “Files created”.mcp.json
Section titled “.mcp.json”Registers the CCE MCP server. Shared with Claude Code if both are configured.
{ "mcpServers": { "context-engine": { "command": "cce", "args": ["serve", "--project-dir", "/path/to/your/project"] } }}AGENTS.md
Section titled “AGENTS.md”Contains instructions for Pi to prefer context_search for code retrieval. The CCE block is wrapped in markers so your own content is preserved during upgrades.
Auto-detection
Section titled “Auto-detection”cce init (without --agent) detects Pi when a .pi/ directory exists in the project root.
Verify it’s working
Section titled “Verify it’s working”- Install and activate the MCP adapter for Pi
- Restart Pi after running
cce init - Ask Pi a question about your code
- Run
cce savingsto confirm queries are being tracked
Troubleshooting
Section titled “Troubleshooting”Pi doesn’t call context_search
Section titled “Pi doesn’t call context_search”Pi needs a MCP adapter to forward tool calls. Confirm the adapter is installed and points at the .mcp.json in your project root.
”cce: command not found”
Section titled “”cce: command not found””Ensure cce is on your PATH. Add ~/.local/bin to your shell profile if installed with uv tool install.
Auto-detection doesn’t find Pi
Section titled “Auto-detection doesn’t find Pi”CCE looks for a .pi/ directory in the project root. If it doesn’t exist, use cce init --agent pi to force configuration.