Skip to content
VS Code

A2H: ask a human for VS Code

io.github.andreaacanfora/a2h-gateway

Ask a human before acting: approvals by email, Telegram or push, signed answers, passkeys.

client:VS Code transport:stdio runtime:oci

Install A2H: ask a human in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "a2h-gateway",
      "description": "A2H_GATEWAY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "a2h-api-key",
      "description": "A2H_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "a2h-to",
      "description": "A2H_TO",
      "password": true
    },
    {
      "type": "promptString",
      "id": "a2h-principal",
      "description": "A2H_PRINCIPAL",
      "password": true
    }
  ],
  "servers": {
    "a2h-gateway": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/andreaacanfora/a2h-gateway:0.3.0"
      ],
      "env": {
        "A2H_GATEWAY": "${input:a2h-gateway}",
        "A2H_API_KEY": "${input:a2h-api-key}",
        "A2H_TO": "${input:a2h-to}",
        "A2H_PRINCIPAL": "${input:a2h-principal}"
      }
    }
  }
}

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

A2H: ask a human in other clients