> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code

> Connect Migma MCP to VS Code.

Use Migma MCP in VS Code when your editor or agent extension supports MCP servers.

## Remote MCP

VS Code stores MCP servers in `mcp.json`, either in your user profile or in `.vscode/mcp.json` for a workspace.

```json theme={null}
{
  "inputs": [
    {
      "type": "promptString",
      "id": "migma-api-key",
      "description": "Migma API key",
      "password": true
    }
  ],
  "servers": {
    "migma": {
      "type": "http",
      "url": "https://migma.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${input:migma-api-key}"
      }
    }
  }
}
```

After editing the file, run **MCP: List Servers** or **MCP: Reset Cached Tools** from the Command Palette.

## Local MCP fallback

```json theme={null}
{
  "servers": {
    "migma": {
      "command": "npx",
      "args": ["-y", "@migma/mcp"],
      "env": {
        "MIGMA_API_KEY": "your_migma_api_key"
      }
    }
  }
}
```

## Verify

Ask your VS Code agent:

```text theme={null}
Use Migma to list my brands. Do not send or export anything.
```

## Next

<CardGroup cols={2}>
  <Card title="MCP Server" icon="server" href="/mcp-server">
    Remote and local MCP details.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Create or scope API keys.
  </Card>
</CardGroup>
