three.ws Alerts

v0.1.3
io.github.nirholas/alerts-mcp Checked 3 hours ago Published 1 month ago

Create, update, and delete pump.fun alert rules and read fired-alert history across channels.

Values you need

VariableWhat it is
THREE_WS_BASEoptional Base URL of the three.ws API that serves the alert-rules and notifications endpoints. Override only when self-hosting or targeting a preview deployment. Default: https://three.ws
THREE_WS_TIMEOUT_MSoptional Per-request timeout in milliseconds for the live three.ws API reads and writes. Default: 20000
THREE_WS_SESSIONrequired secret Your three.ws session token (the value of the `__Host-sid` cookie from a signed-in browser). Required by every tool — all rules and alerts are scoped to YOUR account. Writes also use it to fetch a one-time CSRF token. Treat like a password.

npm (npx) verified

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: THREE_WS_SESSION. 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: list_alert_rules, create_alert_rule, update_alert_rule, delete_alert_rule, get_alert_history.
  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