VS Code / Copilot
CCE integrates with GitHub Copilot’s chat agent in VS Code through MCP configuration and a Copilot instructions file.
Quick setup
Section titled “Quick setup”cce init --agent copilotFiles created
Section titled “Files created”.vscode/mcp.json
Section titled “.vscode/mcp.json”Registers the CCE MCP server for Copilot’s agent mode.
{ "mcpServers": { "context-engine": { "command": "cce", "args": ["serve"] } }}.github/copilot-instructions.md
Section titled “.github/copilot-instructions.md”Contains instructions for Copilot to use context_search for code questions. The CCE block is wrapped in markers:
<!-- CCE:BEGIN -->...instructions...<!-- CCE:END -->Your own Copilot instructions above or below the markers are preserved during upgrades.
Once configured, Copilot’s chat agent will have access to the context_search tool. Ask questions about your codebase in Copilot Chat and it will use CCE’s compressed retrieval instead of sending full files.
Restarting after setup
Section titled “Restarting after setup”After running cce init, reload the VS Code window (Cmd+Shift+P, then “Developer: Reload Window”) to pick up the MCP server.