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, ordocker 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ΒΆ
- Install "Continue":
Ctrl β§ Xβ search Continue β Install - 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:
- Open Continue Chat (
β₯ Con macOS /Alt Con Windows/Linux) - Click Tools - your gateway's tools should appear
- Chat naturally:
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ΒΆ
- π Continue docs
- π MCP Spec
- π ContextForge GitHub