# VS Code (Copilot)

# VS Code + Nitrosend MCP {#vs-code--nitrosend-mcp}


[VS Code](https://code.visualstudio.com) with GitHub Copilot supports MCP servers natively. Connect Nitrosend and Copilot becomes your email marketing assistant — compose campaigns, manage contacts, and check analytics from your editor.


## Setup {#setup}



### Step 1: Add the MCP server {#step-1-add-the-mcp-server}


Add to `.vscode/mcp.json` in your workspace:

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

Or use the command palette: **MCP: Add Server** → select HTTP type → enter `https://api.nitrosend.com/mcp`.

For global access across all workspaces, use the **MCP: Open User Configuration** command instead.


### Step 2: Sign in {#step-2-sign-in}


VS Code handles OAuth automatically. On first tool call, your browser opens for Nitrosend sign-in. Log in or create a free account — no API key needed.


### Step 3: Verify {#step-3-verify}


In Copilot chat, ask:

```
What's my Nitrosend account status?
```

Copilot calls `nitro_get_status` and shows your account health.


## Managing tools {#managing-tools}


Click the **Configure Tools** button in the Copilot chat input to see every available Nitrosend tool. You can toggle specific tools on or off.


## Example workflows {#example-workflows}



### Brand setup + first email {#brand-setup--first-email}


```
Set up my Brand Kit from https://mysite.com and draft a welcome email for new subscribers.
```


### Campaign creation {#campaign-creation}


```
Create a campaign called "Weekly Update" for my newsletter list with a text section and a CTA button linking to our blog.
```


### Performance check {#performance-check}


```
Show me insights for my most recent campaign.
```


## Troubleshooting {#troubleshooting}








**OAuth window doesn't open**

Make sure you're running VS Code 1.99 or later — MCP support was added in this version. Check that GitHub Copilot extension is installed and active.






**Server not detected**

Verify the `mcp.json` file is valid JSON. Use the command palette **MCP: List Servers** to check if Nitrosend appears.






**Tool calls time out**

Brand Kit scraping can take 20-30 seconds. If other calls time out, check connectivity to `api.nitrosend.com`.







> [!IMPORTANT]
> VS Code supports OAuth 2.1 natively for MCP servers — no API keys or middleware needed.
