{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "com.mailbuttons/mcp-server",
  "slug": "com.mailbuttons.mcp-server",
  "title": "Mailbuttons",
  "summary": "Governed email for AI agents: a sandbox inbox to read and send from, human approval to go external.",
  "version": "0.1.4",
  "serverKey": "mcp-server",
  "pageUrl": "https://mcpkglabs.com/tool/com.mailbuttons.mcp-server",
  "installMdUrl": "https://mcpkglabs.com/tool/com.mailbuttons.mcp-server/install.md",
  "trust": {
    "score": 87,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T19:24:21.176451773Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=@mailbuttons/mcp-server@0.1.4",
        "mailbuttons-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp-server -e 'MAILBUTTONS_API_KEY=<MAILBUTTONS_API_KEY>' -- npx -y --package=@mailbuttons/mcp-server@0.1.4 mailbuttons-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-server\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@mailbuttons/mcp-server@0.1.4\",\n        \"mailbuttons-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MAILBUTTONS_API_KEY\": \"<MAILBUTTONS_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-server\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@mailbuttons/mcp-server@0.1.4\",\n        \"mailbuttons-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MAILBUTTONS_API_KEY\": \"<MAILBUTTONS_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"MAILBUTTONS_API_KEY\",\n      \"id\": \"mailbuttons-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp-server\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@mailbuttons/mcp-server@0.1.4\",\n        \"mailbuttons-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MAILBUTTONS_API_KEY\": \"${input:mailbuttons-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp-server]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=@mailbuttons/mcp-server@0.1.4\", \"mailbuttons-mcp\"]\nenv = { \"MAILBUTTONS_API_KEY\" = \"<MAILBUTTONS_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://mailbuttons.com/api/v1/mcp/rpc",
      "headers": [
        {
          "name": "Authorization",
          "description": "Bearer token: a scoped Mailbuttons MCP token, sent as 'Bearer mb_sandbox_...' (or mb_production_... once promoted). Get one free: sign in with an email code to get an mbk_ API key, then POST https://mailbuttons.com/api/v1/mcp/sandbox-inboxes with it. Guide: https://mailbuttons.com/developers/#mcp",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http mcp-server https://mailbuttons.com/api/v1/mcp/rpc --header 'Authorization: <Authorization>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-server\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mailbuttons.com/api/v1/mcp/rpc\",\n        \"--header\",\n        \"Authorization: <Authorization>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-server\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"url\": \"https://mailbuttons.com/api/v1/mcp/rpc\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"mcp-server\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://mailbuttons.com/api/v1/mcp/rpc\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp-server]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://mailbuttons.com/api/v1/mcp/rpc\", \"--header\", \"Authorization: <Authorization>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "MAILBUTTONS_API_KEY",
      "required": true,
      "secret": true,
      "description": "A scoped Mailbuttons MCP token (mb_sandbox_...). Sandbox-by-default; external send requires human promotion.",
      "help": "A scoped Mailbuttons MCP token (mb_sandbox_...). Sandbox-by-default; external send requires human promotion.",
      "placeholder": "<MAILBUTTONS_API_KEY>"
    },
    {
      "name": "MAILBUTTONS_API_URL",
      "required": false,
      "secret": false,
      "description": "Backend base URL. Defaults to https://mailbuttons.com; set for self-hosted or local.",
      "help": "Backend base URL. Defaults to https://mailbuttons.com; set for self-hosted or local.",
      "default": "https://mailbuttons.com",
      "placeholder": "https://mailbuttons.com"
    }
  ],
  "expectedTools": [
    "mailbuttons_list_messages",
    "mailbuttons_get_message",
    "mailbuttons_get_thread",
    "mailbuttons_get_attachment_text",
    "mailbuttons_send_email",
    "mailbuttons_list_drafts",
    "mailbuttons_get_draft",
    "mailbuttons_extract_code",
    "mailbuttons_propose_sender",
    "mailbuttons_request_promotion",
    "mailbuttons_audit_tail",
    "mailbuttons_export_audit",
    "mailbuttons_generate_policy",
    "mailbuttons_scaffold_integration",
    "mailbuttons_run_selftest"
  ],
  "agentSteps": [
    "Ask the user for: MAILBUTTONS_API_KEY. 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: mailbuttons_list_messages, mailbuttons_get_message, mailbuttons_get_thread, mailbuttons_get_attachment_text, mailbuttons_send_email, mailbuttons_list_drafts, mailbuttons_get_draft, mailbuttons_extract_code, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T19:24:21.176451773Z"
}
