# PayStage Auth Watch

PayStage Auth Watch — a Claude Code MCP server that scans and evaluates wallet token authorizations against a policy. Runs during smart contract security audits.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: base-buzz
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/base-buzz/paystage/tree/HEAD/packages/auth-watch
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/paystage-auth-watch

## What it does

The server inspects outstanding allowances and nonces for wallets on Base networks. It evaluates ERC-20 limits, Permit2 permissions, and EIP-3009 nonces without holding private keys or running shell commands.

It exposes `list_outstanding_auths` and `evaluate_outstanding_auths` tools to query and check states against defined policies. Network communication relies on `eth_call` JSON-RPC reads via default endpoints or the `PAYSTAGE_RPC_URL` environment variable.

The package operates in read-only mode and includes no telemetry or `eval` execution.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `PAYSTAGE_POLICY_PATH`, `PAYSTAGE_RPC_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env PAYSTAGE_POLICY_PATH=<PAYSTAGE_POLICY_PATH> --env PAYSTAGE_RPC_URL=<PAYSTAGE_RPC_URL> --transport stdio auth-watch -- npx -y @paystage/auth-watch
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add auth-watch --env PAYSTAGE_POLICY_PATH=<PAYSTAGE_POLICY_PATH> --env PAYSTAGE_RPC_URL=<PAYSTAGE_RPC_URL> -- npx -y @paystage/auth-watch
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "auth-watch": {
            "command": "npx",
            "args": [
                "-y",
                "@paystage/auth-watch"
            ],
            "env": {
                "PAYSTAGE_POLICY_PATH": "<PAYSTAGE_POLICY_PATH>",
                "PAYSTAGE_RPC_URL": "<PAYSTAGE_RPC_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "auth-watch": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@paystage/auth-watch"
            ],
            "env": {
                "PAYSTAGE_POLICY_PATH": "<PAYSTAGE_POLICY_PATH>",
                "PAYSTAGE_RPC_URL": "<PAYSTAGE_RPC_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e PAYSTAGE_POLICY_PATH=<PAYSTAGE_POLICY_PATH> -e PAYSTAGE_RPC_URL=<PAYSTAGE_RPC_URL> auth-watch npx -y @paystage/auth-watch
```
Replace <…> with your own values

## When to use it
- list outstanding ERC-20 allowances for a wallet
- evaluate Permit2 permissions against a security policy
- check EIP-3009 nonces on Base network
- audit token approvals before deployment

## Example prompts
- List outstanding authorizations for wallet 0x... using auth-watch
- Evaluate token allowances against the security policy
- Check Permit2 allowances and nonces for the given address

## Similar
- [ENS Resolver — Name ↔ Address + Avatar](https://affpapa.org/en/nevibecode/mcp/ens-resolver-name-address-avatar.md) — MCP server · 4623 installs
- [venice-auth](https://affpapa.org/en/nevibecode/skills/venice-auth.md) — skill · ★ 176 repo stars
- [NFT Metadata — Token Image, Attributes & Collection Info](https://affpapa.org/en/nevibecode/mcp/nft-metadata-token-image-attributes-collection-info.md) — MCP server · 6157 installs
- [B20 Check](https://affpapa.org/en/nevibecode/mcp/b20-check.md) — MCP server · 446 installs
- [Base Intel MCP](https://affpapa.org/en/nevibecode/mcp/base-intel-mcp.md) — MCP server
- [7-auth](https://affpapa.org/en/nevibecode/rules/7-auth.md) — rule · ★ 571 repo stars

From the same set: [base-buzz/paystage](https://affpapa.org/en/nevibecode/by/base-buzz/paystage.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
