Skip to content

Continue (VS Code Extension)ΒΆ

Continue is an open-source AI code assistant for Visual Studio Code. Because it speaks the Model Context Protocol (MCP), Continue can discover and call the tools you publish through ContextForge - no plug-in code required.

Gateway URL

  • Direct installs (uvx, pip, or docker run): http://localhost:4444
  • Docker Compose (nginx proxy): http://localhost:8080

🧰 Key Features¢

  • ✨ AI-powered completions, edits & chat
  • πŸ”Œ MCP integration - dynamic tool list pulled from your gateway
  • πŸ— Bring-your-own model - local Ollama, OpenAI, Anthropic, etc.
  • 🧠 Context-aware - reads your workspace to craft better replies

πŸ›  InstallationΒΆ

  1. Install "Continue": Ctrl ⇧ X β†’ search Continue β†’ Install
  2. Open config: Ctrl ⇧ P β†’ "Continue: Open Config"

πŸ”— Connecting Continue to ContextForgeΒΆ

Attach Continue to a gateway over Streamable HTTP:

You still need a JWT or Basic auth if the gateway is protected.

Direct Streamable HTTPΒΆ

Add the gateway to mcpServers in ~/.continue/config.yaml:

name: Main Config
version: 1.0.0
schema: v1
mcpServers:
  - name: contextforge
    type: streamable-http
    url: http://localhost:4444/servers/UUID_OF_SERVER_1/mcp/
    requestOptions:
      headers:
        Authorization: Bearer <YOUR_AUTH_TOKEN_HERE>

mcpServers is a list, and auth headers belong under requestOptions.headers β€” Continue does not read a top-level headers key. Reload the window afterwards; the server appears under Tools β–Έ MCP Servers in the Continue sidebar.

Generate a token to paste above:

python3 -m mcpgateway.utils.create_jwt_token -u admin@example.com --secret my-test-key-but-now-longer-than-32-bytes

The --secret value must match the Gateway's JWT_SECRET_KEY, otherwise the Gateway rejects the token.

πŸ§ͺ Using Gateway ToolsΒΆ

Once VS Code restarts:

  1. Open Continue Chat (βŒ₯ C on macOS / Alt C on Windows/Linux)
  2. Click Tools - your gateway's tools should appear
  3. Chat naturally:
Run hello_world with name = "Alice"

The Gateway executes and streams the JSON result back to Continue.


πŸ“ TipsΒΆ

  • Multiple servers - add more blocks under "servers" if you run staging vs prod.
  • Custom instructions - Continue's Custom Instructions pane lets you steer tool use.

πŸ“š ResourcesΒΆ