mcp-injector for VS Code (Continue)

Configure VS Code with the Continue extension to query mcp-injector and compress local context.

Why use mcp-injector with Continue?

Continue is a popular open-source autopilot for VS Code. Unlike other extensions, it features full-featured configuration files allowing external MCP servers. Running mcp-injector side-by-side with Continue ensures your large codebase references are automatically compressed using AST folding, avoiding context bloat and maximizing response accuracy.

1. Install the daemon

Download and run the setup script:

curl -fsSL https://foldwork.dev/install | sh

2. Configure Continue Extension

Continue configuration is managed via a `config.json` file. To register mcp-injector:

  1. Open VS Code.
  2. Open the Continue config file by clicking the gear icon in the bottom right of the Continue sidebar, or edit ~/.continue/config.json.
  3. Locate or create the "contextProviders" and "mcp" properties.
  4. Register the MCP server command in the configuration list:
{
  "contextProviders": [],
  "slashCommands": [],
  "mcp": {
    "mcp-injector": {
      "command": "/usr/local/bin/mcp-injector"
    }
  }
}

3. Verification

Open your workspace folder. Run the command to talk to mcp-injector. In the chat box, type @mcp-injector or use the slash tool to verify that the tool list loads successfully.