Sentry Relay

v0.2.1
io.github.sentryrelay/sentryrelay Checked 1 day ago Published 5 days ago

Out-of-Band 2FA, OTP, Magic-Link & Cloud KMS TOTP Authenticator Relay for Autonomous AI Agents

Values you need

VariableWhat it is
SENTRY_RELAY_API_KEYrequired secret Sentry Relay API key (sr_live_... or sr_test_...)

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add sentryrelay -e 'SENTRY_RELAY_API_KEY=<SENTRY_RELAY_API_KEY>' -- npx -y --package=@sentryrelay/mcp@0.2.1 sentryrelay-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "sentryrelay": {
      "args": [
        "-y",
        "--package=@sentryrelay/mcp@0.2.1",
        "sentryrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "SENTRY_RELAY_API_KEY": "<SENTRY_RELAY_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "sentryrelay": {
      "args": [
        "-y",
        "--package=@sentryrelay/mcp@0.2.1",
        "sentryrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "SENTRY_RELAY_API_KEY": "<SENTRY_RELAY_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SENTRY_RELAY_API_KEY",
      "id": "sentry-relay-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "sentryrelay": {
      "args": [
        "-y",
        "--package=@sentryrelay/mcp@0.2.1",
        "sentryrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "SENTRY_RELAY_API_KEY": "${input:sentry-relay-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.sentryrelay]
command = "npx"
args = ["-y", "--package=@sentryrelay/mcp@0.2.1", "sentryrelay-mcp"]
env = { "SENTRY_RELAY_API_KEY" = "<SENTRY_RELAY_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http sentryrelay https://sentryrelay.com/api/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "sentryrelay": {
      "args": [
        "-y",
        "mcp-remote",
        "https://sentryrelay.com/api/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "sentryrelay": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://sentryrelay.com/api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "sentryrelay": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://sentryrelay.com/api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.sentryrelay]
command = "npx"
args = ["-y", "mcp-remote", "https://sentryrelay.com/api/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: SENTRY_RELAY_API_KEY. 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. 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