Skip to content
VS Code

MailGate for VS Code

io.github.dicka18/mailgate

Self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing.

client:VS Code transport:stdio runtime:npm

Install MailGate in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mailgate-url",
      "description": "MAILGATE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mailgate-admin-token",
      "description": "MAILGATE_ADMIN_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "mailgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mailgate-sdk"
      ],
      "env": {
        "MAILGATE_URL": "${input:mailgate-url}",
        "MAILGATE_ADMIN_TOKEN": "${input:mailgate-admin-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

MailGate in other clients