{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.AndreaAcanfora/a2h-gateway",
  "slug": "io.github.andreaacanfora.a2h-gateway",
  "title": "A2H: ask a human",
  "summary": "Ask a human before acting: approvals by email, Telegram or push, signed answers, passkeys.",
  "version": "0.3.0",
  "serverKey": "a2h-gateway",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.andreaacanfora.a2h-gateway",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.andreaacanfora.a2h-gateway/install.md",
  "trust": {
    "score": 88,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-02T07:52:50.363208553Z"
  },
  "methods": [
    {
      "id": "oci",
      "label": "Docker",
      "transport": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "A2H_API_KEY",
        "-e",
        "A2H_GATEWAY",
        "-e",
        "A2H_TO",
        "ghcr.io/andreaacanfora/a2h-gateway:0.3.0",
        "mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add a2h-gateway -e 'A2H_API_KEY=<A2H_API_KEY>' -e 'A2H_GATEWAY=<A2H_GATEWAY>' -e 'A2H_TO=<A2H_TO>' -- docker run -i --rm -e A2H_API_KEY -e A2H_GATEWAY -e A2H_TO ghcr.io/andreaacanfora/a2h-gateway:0.3.0 mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"a2h-gateway\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"A2H_API_KEY\",\n        \"-e\",\n        \"A2H_GATEWAY\",\n        \"-e\",\n        \"A2H_TO\",\n        \"ghcr.io/andreaacanfora/a2h-gateway:0.3.0\",\n        \"mcp\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"A2H_API_KEY\": \"<A2H_API_KEY>\",\n        \"A2H_GATEWAY\": \"<A2H_GATEWAY>\",\n        \"A2H_TO\": \"<A2H_TO>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"a2h-gateway\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"A2H_API_KEY\",\n        \"-e\",\n        \"A2H_GATEWAY\",\n        \"-e\",\n        \"A2H_TO\",\n        \"ghcr.io/andreaacanfora/a2h-gateway:0.3.0\",\n        \"mcp\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"A2H_API_KEY\": \"<A2H_API_KEY>\",\n        \"A2H_GATEWAY\": \"<A2H_GATEWAY>\",\n        \"A2H_TO\": \"<A2H_TO>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"A2H_API_KEY\",\n      \"id\": \"a2h-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"A2H_GATEWAY\",\n      \"id\": \"a2h-gateway\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"A2H_TO\",\n      \"id\": \"a2h-to\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"a2h-gateway\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"A2H_API_KEY\",\n        \"-e\",\n        \"A2H_GATEWAY\",\n        \"-e\",\n        \"A2H_TO\",\n        \"ghcr.io/andreaacanfora/a2h-gateway:0.3.0\",\n        \"mcp\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"A2H_API_KEY\": \"${input:a2h-api-key}\",\n        \"A2H_GATEWAY\": \"${input:a2h-gateway}\",\n        \"A2H_TO\": \"${input:a2h-to}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.a2h-gateway]\ncommand = \"docker\"\nargs = [\"run\", \"-i\", \"--rm\", \"-e\", \"A2H_API_KEY\", \"-e\", \"A2H_GATEWAY\", \"-e\", \"A2H_TO\", \"ghcr.io/andreaacanfora/a2h-gateway:0.3.0\", \"mcp\"]\nenv = { \"A2H_API_KEY\" = \"<A2H_API_KEY>\", \"A2H_GATEWAY\" = \"<A2H_GATEWAY>\", \"A2H_TO\" = \"<A2H_TO>\" }"
        }
      ],
      "requires": [
        "Docker"
      ]
    }
  ],
  "env": [
    {
      "name": "A2H_GATEWAY",
      "required": true,
      "secret": false,
      "description": "URL of your A2H gateway, e.g. https://a2h.example.com",
      "help": "URL of your A2H gateway, e.g. https://a2h.example.com",
      "placeholder": "<A2H_GATEWAY>"
    },
    {
      "name": "A2H_API_KEY",
      "required": true,
      "secret": true,
      "description": "API key of the gateway",
      "help": "API key of the gateway",
      "placeholder": "<A2H_API_KEY>"
    },
    {
      "name": "A2H_TO",
      "required": true,
      "secret": false,
      "description": "Where to reach you: mailto:you@example.com, tg:<chat_id> or an ntfy topic URL",
      "help": "Where to reach you: mailto:you@example.com, tg:<chat_id> or an ntfy topic URL",
      "placeholder": "<A2H_TO>"
    },
    {
      "name": "A2H_PRINCIPAL",
      "required": false,
      "secret": false,
      "description": "Your principal ID on the gateway (optional)",
      "help": "Your principal ID on the gateway (optional)",
      "placeholder": "<A2H_PRINCIPAL>"
    }
  ],
  "expectedTools": [
    "ask_human",
    "cancel_request",
    "check_request",
    "notify_human",
    "request_approval"
  ],
  "agentSteps": [
    "Ask the user for: A2H_GATEWAY, A2H_API_KEY, A2H_TO. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: ask_human, cancel_request, check_request, notify_human, request_approval.",
    "If it fails, check that the required runtime is installed (Docker) and that the values above are set."
  ],
  "generatedAt": "2026-12-02T07:52:50.363208553Z"
}
