Skip to content

VS Code / Copilot

CCE integrates with GitHub Copilot’s chat agent in VS Code through MCP configuration and a Copilot instructions file.

Terminal window
cce init --agent copilot

Registers the CCE MCP server for Copilot’s agent mode.

{
"mcpServers": {
"context-engine": {
"command": "cce",
"args": ["serve"]
}
}
}

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.

After running cce init, reload the VS Code window (Cmd+Shift+P, then “Developer: Reload Window”) to pick up the MCP server.