capx café

v0.1.3
io.github.vb-tyagi/capx-cafe Checked 3 days ago Published 3 months ago

Agent-native X (Twitter) posting as one MCP server; every post clears a server-side guardrail.

Values you need

VariableWhat it is
CAPX_CHOKEPOINT_URLrequired URL of the hosted capx chokepoint that enforces the server-side guardrail on every post
CAPX_EMAILrequired Whitelisted user email used to authenticate to the chokepoint
CAPX_LANEoptional Connection lane: 'byo' (bring your own X app) or 'capx-app' (capx-managed app)
X_CLIENT_IDoptional X (Twitter) OAuth client ID; required only on the BYO lane

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add capx-cafe -e 'CAPX_CHOKEPOINT_URL=<CAPX_CHOKEPOINT_URL>' -e 'CAPX_EMAIL=<CAPX_EMAIL>' -- npx -y capx-cafe@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "capx-cafe": {
      "args": [
        "-y",
        "capx-cafe@0.1.3"
      ],
      "command": "npx",
      "env": {
        "CAPX_CHOKEPOINT_URL": "<CAPX_CHOKEPOINT_URL>",
        "CAPX_EMAIL": "<CAPX_EMAIL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "capx-cafe": {
      "args": [
        "-y",
        "capx-cafe@0.1.3"
      ],
      "command": "npx",
      "env": {
        "CAPX_CHOKEPOINT_URL": "<CAPX_CHOKEPOINT_URL>",
        "CAPX_EMAIL": "<CAPX_EMAIL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CAPX_CHOKEPOINT_URL",
      "id": "capx-chokepoint-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "CAPX_EMAIL",
      "id": "capx-email",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "capx-cafe": {
      "args": [
        "-y",
        "capx-cafe@0.1.3"
      ],
      "command": "npx",
      "env": {
        "CAPX_CHOKEPOINT_URL": "${input:capx-chokepoint-url}",
        "CAPX_EMAIL": "${input:capx-email}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.capx-cafe]
command = "npx"
args = ["-y", "capx-cafe@0.1.3"]
env = { "CAPX_CHOKEPOINT_URL" = "<CAPX_CHOKEPOINT_URL>", "CAPX_EMAIL" = "<CAPX_EMAIL>" }

For AI agents

  1. Ask the user for: CAPX_CHOKEPOINT_URL, CAPX_EMAIL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: connect_x, whoami, post_now, preview, audit, upload_media, create_loop, list_loops, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json