New PolicyLayer is now the system of record for AI agent authority. Never answer your agent twice
Home / Integrations / Continue

Continue MCP setup: the complete config reference

Where Continue’s MCP config lives, the config.yaml format that replaced config.json, and how to fix the common failures — plus how to put a policy gate in front of every tool call.

QUICK ANSWERQuick answer: global config in ~/.continue/config.yaml, with workspace block files under .continue/mcpServers/. The mcpServers key is a YAML array, not a map.

Where Continue keeps its MCP config.

ScopePathNotes
Global ~/.continue/config.yaml Used by the IDE extensions and the CLI. Replaced the deprecated config.json.
Workspace .continue/mcpServers/<name>.yaml One standalone YAML file per server, with name, version and schema: v1 metadata.
Hub Continue Hub assistant MCP blocks can also be attached to a hub-managed assistant.

The config format, key by key.

MCP servers live under a top-level mcpServers key — an array of server objects, unlike the JSON map most clients use. Each entry declares its transport with type.

KeyWhat it does
name Display name for the server (required).
type stdio, sse, or streamable-http.
command Executable for a stdio server.
args List of arguments passed to the command.
env Environment variables for the server process.
cwd Working directory — relative paths in args resolve against it.
url Endpoint for an sse or streamable-http server.
connectionTimeout Initial-connection timeout for slow-starting servers.
~/.continue/config.yaml
mcpServers:
  - name: SQLite
    type: stdio
    command: uvx
    args:
      - mcp-server-sqlite
      - --db-path
      - ./database.db
    cwd: /Users/you/project

REMOTE SERVER (HTTP):

~/.continue/config.yaml
mcpServers:
  - name: My HTTP Server
    type: streamable-http
    url: https://example.com/mcp

A workspace block file looks the same but carries metadata: name, version: 0.0.1, schema: v1, then the mcpServers array.

What Continue speaks.

TransportStatusHow to declare it
stdio Supported type: stdio with command + args.
Streamable HTTP Supported type: streamable-http with url.
SSE Supported type: sse with url.

Adding a server, three ways.

01 Edit config.yaml

Add an entry to the mcpServers array in ~/.continue/config.yaml. Still on config.json? Migrate first — the YAML format is the current standard and the JSON schema differs.

02 Workspace block file

Drop a YAML file in .continue/mcpServers/ at the workspace root — handy for committing project-specific servers.

.continue/mcpServers/playwright.yaml
name: Playwright MCP
version: 0.0.1
schema: v1
mcpServers:
  - name: Browser automation
    command: npx
    args:
      - "@playwright/mcp@latest"
03 Continue Hub

Attach MCP blocks to a hub assistant to share servers across a team without local config.

Check it's actually connected.

  1. Switch to agent mode — MCP tools only work there.
  2. Type @ in the chat input and select MCP from the context-providers dropdown to see the server’s tools and resources.
  3. Ask the agent to use one of the tools to confirm the round trip.

When it doesn't work.

MCP tools simply not available

Check the mode first — Continue only exposes MCP tools in agent mode, not in chat or edit modes.

Command fails to spawn on macOS

Use the full absolute path to the command instead of relying on PATH resolution — the classic fix for spawn ENOENT errors from GUI-launched IDEs.

Server hangs during startup

Set or raise connectionTimeout on the server entry; slow npx/uvx cold starts are the usual culprit.

Config seems ignored after upgrading

If you still have a legacy config.json, migrate to config.yaml — the old JSON mcpServers schema differs and is deprecated.

Relative paths resolving to the wrong place

Relative paths in args resolve against cwd — set it explicitly for stdio servers.

Put a policy gate in front of it.

A standard filesystem MCP wired into Continue. Every read and write hits the upstream directly, with no policy gate.

~/.continue/config.yaml
mcpServers:
  - name: Filesystem
    type: stdio
    command: npx
    args:
      - -y
      - "@modelcontextprotocol/server-filesystem"
      - /Users/you/projects

Register the filesystem MCP in PolicyLayer, mint a grant, point Continue at the proxy URL over streamable HTTP. PolicyLayer evaluates every call against the grant’s policy before it reaches the upstream.

~/.continue/config.yaml
mcpServers:
  - name: Filesystem
    type: streamable-http
    url: https://proxy.policylayer.com/mcp/<server-uuid>/
    requestOptions:
      headers:
        Authorization: Bearer <grant-token>

The <server-uuid> appears on each server's detail page. The <grant-token> shows once at mint time. See the Quick start for the full setup walk-through — and if you operate under SOC 2, HIPAA, GDPR or similar, the compliance hub maps how gateway-mediated MCP traffic evidences each framework.

What the gateway adds.

Rate limits
Cap tool calls per minute, hour, or day, per grant or shared across the team.
Access controls
Allow, deny, or conditionally gate any tool against the call's arguments.
Spend caps
Increment a counter by the call's amount; deny when the daily total exceeds your budget.
Audit logs
Every call records the grant, tool, argument keys, and the rule that decided.

A policy in practice.

Allow reads and directory listings. Allow writes, but deny any write into common credential paths.

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "read_file": {},
    "list_directory": {},
    "write_file": {
      "deny_if": [
        {
          "conditions": [
            { "path": "args.path", "op": "regex", "value": "^/Users/[^/]+/(\\.ssh|\\.aws|secrets)" }
          ]
        }
      ]
    }
  }
}

See Writing policies for the policy format, operators, and quota shapes.

Continue MCP questions.

Where is the Continue MCP config?+

In ~/.continue/config.yaml under the mcpServers key, or as standalone YAML block files in .continue/mcpServers/ at the workspace root. The legacy config.json is deprecated.

Did Continue replace config.json with config.yaml?+

Yes — config.yaml is the current standard for all Continue configuration, including MCP servers. The old JSON schema differs, so configs need migrating rather than renaming.

Why are my MCP tools not showing in Continue?+

MCP only works in agent mode. Switch modes, then type @ and pick MCP from the dropdown to confirm the server’s tools are discovered.

Is mcpServers a map or a list in Continue?+

A list. Unlike most MCP clients, Continue’s mcpServers key is a YAML array of server objects, each with its own name field — copying a JSON-style map across will not parse.

Does Continue support remote MCP servers?+

Yes — set type to streamable-http (or sse) with a url. That is also how you route a server through a policy gateway like PolicyLayer for argument-level rules and audit logs.

Take your agents live. Without losing control.

Route your MCP traffic through PolicyLayer. Every tool call is checked against your policy before it runs: allow, deny, or require approval. Per-identity grants. Full audit log. Live in minutes.

Instant setup, no code required.

46,500+ MCP servers and 515,000+ tools scanned and risk-classified.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.