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

# VS Code

> Connect SendKit to VS Code with any MCP-compatible extension

Visual Studio Code supports MCP servers natively. You can connect SendKit to VS Code and use it with GitHub Copilot agent mode or other MCP-compatible extensions.

## Prerequisites

* VS Code installed
* An MCP-compatible extension (e.g. GitHub Copilot)
* A SendKit API key with **Full** permission

## Setup

<Steps>
  <Step title="Create the MCP configuration file">
    In your project root, create or edit `.vscode/mcp.json`:

    ```json theme={null}
    {
      "servers": {
        "sendkit": {
          "type": "http",
          "url": "https://mcp.sendkit.dev/sendkit",
          "headers": {
            "Authorization": "Bearer sk_your_api_key_here"
          }
        }
      }
    }
    ```

    <Note>
      Replace `sk_your_api_key_here` with your actual API key from the [SendKit dashboard](https://app.sendkit.dev).
    </Note>
  </Step>

  <Step title="Reload VS Code">
    Reload the window or restart VS Code to load the MCP configuration.
  </Step>

  <Step title="Verify the connection">
    Open the AI chat in agent mode and ask:

    ```
    List all my SendKit domains
    ```
  </Step>
</Steps>

<Tip>
  VS Code uses `"servers"` as the top-level key (not `"mcpServers"`). This is different from most other MCP clients.
</Tip>

## Global configuration

To make SendKit available across all projects, use the command palette and run **MCP: Open User Configuration** to add the server to your user-level settings.
