API & MCP › GitHub Copilot

Use DNSai in GitHub Copilot

Wire DNSai into VS Code's GitHub Copilot agent mode. Note VS Code uses a servers key with "type":"http" — not mcpServers.

✓ Free key works — secure prompted input

VS Code ≥ 1.102 + Copilot · one domain per request

↓ Download this guide (.md) drop it into your repo or paste it into your assistant

Set it up

VS Code (Copilot agent mode)

Add .vscode/mcp.json (or run MCP: Add Server from the Command Palette). The inputs block prompts once for the key and stores it securely — it never lands in the file. Then pick Agent in Copilot Chat.

{
  "inputs": [
    { "type": "promptString", "id": "dnsai_token", "description": "DNSai Bearer token", "password": true }
  ],
  "servers": {
    "dnsai": {
      "type": "http",
      "url": "https://mcp.dnsai.com/mcp",
      "headers": { "Authorization": "Bearer ${input:dnsai_token}" }
    }
  }
}
Your key. The inputs prompt carries your key securely. Get a free key for 100/day, or drop the headers/inputs to run anonymously.

Verify it works

In Copilot Chat (Agent mode), ask:

Use dnsai to check SPF for cloudflare.com

Every result ends with a plain-English summary, a source link on dnsai.com, and your remaining quota.

Troubleshooting

Sources: VS Code MCP servers

Need bulk, multi-domain, or the full API?

Pro unlocks bulk / multi-domain lookups; Enterprise adds large-scale scanning and the full programmatic API.

See plans & pricing →