> ## 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.

# GitHub Copilot

> Connect Migma MCP to GitHub Copilot in VS Code or Copilot CLI.

Use Migma MCP with GitHub Copilot when Copilot Agent mode needs to prepare emails, inspect contacts, create campaigns, or wire email sends while editing code.

## VS Code

Add Migma to `mcp.json` in your user profile or 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}"
      }
    }
  }
}
```

Reload MCP tools from VS Code, then use Copilot Agent mode.

## Copilot CLI

If your Copilot CLI setup reads `mcpServers`, use Local MCP:

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

## Verify

Ask Copilot:

```text theme={null}
Use Migma to list my brands and call migma_get_capabilities.
```

## Next

<CardGroup cols={2}>
  <Card title="VS Code" icon="code-bracket-square" href="/agents/mcp-vscode">
    Editor-level MCP setup.
  </Card>

  <Card title="Setup Workflow" icon="plug" href="/setup">
    Agent-guided app wiring.
  </Card>
</CardGroup>
