# Connect VS Code and Cursor

> Add DECA to the agent in VS Code or Cursor with one click, or with a few lines of MCP config.

Both editors read remote MCP servers from a JSON config. The buttons below write it for you.

Server URL: `https://app.decalabs.ai/mcp`

Claude Code: `claude mcp add --transport http deca https://app.decalabs.ai/mcp`

## VS Code

Press **Add to VS Code** above, or add DECA under `servers` in `.vscode/mcp.json` (this workspace) or in your user MCP config (every workspace):

```json title="No key"
{
  "servers": {
    "deca": { "type": "http", "url": "https://app.decalabs.ai/mcp" }
  }
}
```

```json title="With a key"
{
  "servers": {
    "deca": {
      "type": "http",
      "url": "https://app.decalabs.ai/mcp",
      "headers": { "Authorization": "Bearer ${input:deca-key}" }
    }
  },
  "inputs": [{ "id": "deca-key", "type": "promptString", "description": "DECA API key", "password": true }]
}
```

With the `inputs` entry, VS Code asks for the key once and keeps it out of the file.

## Cursor

Press **Add to Cursor** above, or add DECA under `mcpServers` in `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` (one project):

```json title="No key"
{
  "mcpServers": {
    "deca": { "url": "https://app.decalabs.ai/mcp" }
  }
}
```

```json title="With a key"
{
  "mcpServers": {
    "deca": {
      "url": "https://app.decalabs.ai/mcp",
      "headers": { "Authorization": "Bearer deca_sk_…" }
    }
  }
}
```

## Check that it works

Open the agent chat and ask *"List DECA's tools."* It should name ten, from [`get_signals`](https://app.decalabs.ai/docs/tools/get-signals) to [`cancel_test`](https://app.decalabs.ai/docs/tools/cancel-test). Then ask for ideas in a field you care about.

> **Tip** · Signals and ideas change once a day. Ask the agent to keep what it read in a file in your project instead of calling again for the same day.

Source: https://app.decalabs.ai/docs/connect/vscode
