---
title: "Connect VS Code"
summary: "Add Taskloader to VS Code in .vscode/mcp.json, then sign in or use an API key."
updated: "2026-11-19"
url: "https://taskloader.com/docs/mcp/clients/vscode"
---

> Documentation index: https://taskloader.com/llms.txt

# Connect VS Code

Add Taskloader to VS Code in .vscode/mcp.json, then sign in or use an API key.

> **Note:** Not yet verified with this client. These steps follow VS Code's published instructions for MCP servers; this page will say so once we have checked them end to end. [Status](https://taskloader.com/docs/status.md) lists every app's state.

VS Code's agent mode uses MCP servers listed in `.vscode/mcp.json` in your workspace. Sign in with your Taskloader account, or give VS Code a personal API key. Taskloader also accepts connections from VS Code in the browser (vscode.dev and insiders.vscode.dev).

## Add Taskloader and sign in

Add Taskloader to `.vscode/mcp.json`:

```json
{
  "servers": {
    "taskloader": {
      "type": "http",
      "url": "https://taskloader.com/mcp"
    }
  }
}
```

Or add it to your VS Code user profile, for every workspace, from a terminal:

```bash
code --add-mcp '{"name":"taskloader","type":"http","url":"https://taskloader.com/mcp"}'
```

1. When VS Code starts the server, it asks you to sign in and your browser opens Taskloader.
2. VS Code registers itself with Taskloader when it first connects, so the consent screen shows **An app calling itself** with VS Code's name and an **Unverified app** badge. That is expected for VS Code. Continue only if you started the connection yourself, and check where the screen says you will be sent back.
3. Choose what VS Code may do and which projects it may use, then select **Allow**. [Default and full access](https://taskloader.com/docs/mcp.md#default-and-full-access) explains the choices.

## With an API key instead

Create a key in Taskloader under **Account settings → API keys**, with only the access you need. VS Code can ask for it once and keep it in its secret storage, so the key never sits in the file:

```json
{
  "inputs": [
    {
      "id": "taskloader-key",
      "type": "promptString",
      "description": "Taskloader API key",
      "password": true
    }
  ],
  "servers": {
    "taskloader": {
      "type": "http",
      "url": "https://taskloader.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:taskloader-key}"
      }
    }
  }
}
```

## Check it works

In the chat view, in agent mode, ask: "What's overdue in _project_?", naming one of your projects. VS Code should call Taskloader's `search_tasks` tool and answer with task references such as `northwind/website-launch/TL-012`.

## Confirmations

VS Code is expected to ask before it runs a tool unless you allow it to run without asking; we will confirm this when VS Code's check is recorded on [Status](https://taskloader.com/docs/status.md). Taskloader also marks deleting, changes to people and roles, creating or accepting invitations, joining a project as an organization admin, organization changes and applying the assistant's changes as needing your confirmation; keep those confirmations on.

## Disconnect

- Signed in: in Taskloader, open **Account settings → Connected apps** and select **Disconnect** next to VS Code.
- With an API key: revoke the key in **Account settings → API keys**.
- Remove the `taskloader` entry from `.vscode/mcp.json` as well, or from your user profile's MCP configuration (Command Palette → **MCP: Open User Configuration**) if you added it from the terminal.

## If something goes wrong

See [Troubleshooting](https://taskloader.com/docs/mcp/troubleshooting.md): sign-in loops, a wrong address, and tools that do not appear are covered there.
