# Connect Aroai to VS Code

Configure Aroai in VS Code and GitHub Copilot Agent Mode via .vscode/mcp.json with OAuth or secure input prompts.

Canonical: https://aroai.com/integrations/vscode/

## At a glance

- **Command Palette flow**: MCP: Add Server > HTTP > https://mcp.aroai.com/v1
- **Config file**: .vscode/mcp.json
- **Transport**: type: "http"
- **Token safety**: Use OAuth or VS Code ${input:aroai-api-key} prompt so keys never land in Git

## Setup configurations

### Option A: OAuth sign-in (.vscode/mcp.json)

Safe to commit to a repository; VS Code opens a sign-in prompt per developer.

```text
{
  "servers": {
    "aroai": {
      "type": "http",
      "url": "https://mcp.aroai.com/v1"
    }
  }
}
```

### Option B: Secure API key prompt (.vscode/mcp.json)

VS Code prompts for the key securely on start and masks it in memory.

```text
{
  "inputs": [
    {
      "type": "promptString",
      "id": "aroai-api-key",
      "description": "Aroai workspace API key (aroai_live_...)",
      "password": true
    }
  ],
  "servers": {
    "aroai": {
      "type": "http",
      "url": "https://mcp.aroai.com/v1",
      "headers": {
        "Authorization": "Bearer ${input:aroai-api-key}"
      }
    }
  }
}
```

## What happens once connected

- Click Start above the server block inside .vscode/mcp.json, switch Copilot Chat to Agent mode, and pick Aroai in the Tools picker.

## Prompts to try

- **Verify in Copilot Chat**: "Check aroai_status and confirm which NZ and AU tools are enabled."
- **Payroll test fixture verification**: "Verify NZ GST on $2,300 GST-inclusive for 2026-27 and AU Superannuation Guarantee for 2026-27 on $2,000 qualifying earnings for our payroll unit tests."

## Troubleshooting

### Tools do not appear in Copilot Chat.

Check that Copilot Chat is in Agent mode (not Ask mode), click Start in .vscode/mcp.json if paused, and click the Tools wrench icon to confirm Aroai is checked.
