ParikshithV

paperplane-mcp

Community ParikshithV
Updated

MCP for Paperplane App

paperplane-mcp

An MCP connector for Paperplane — the inbox for theevents your machines send you.

It lets an AI tool page you on your phone when a long job finishes or needs a decision, read backwhat fired, acknowledge or resolve an alert, and file a follow-up ticket. One long-lived credential,no per-channel keys.

Setup

1. Create a token

In the Paperplane app: Settings → Developer tokens → Create token. The secret is shown once —copy it then. It looks like pplt_ followed by 64 hex characters.

2. Point a client at it

Claude Code — .mcp.json in your project, or ~/.claude.json for every project:

{
  "mcpServers": {
    "paperplane": {
      "command": "npx",
      "args": ["-y", "paperplane-mcp"],
      "env": {
        "PAPERPLANE_TOKEN": "pplt_...",
        "PAPERPLANE_DEFAULT_CHANNEL": "Builds"
      }
    }
  }
}

Claude Desktop uses the same block inside claude_desktop_config.json.

Variable Required Default
PAPERPLANE_TOKEN yes
PAPERPLANE_API_BASE_URL no https://paperplane-backend.parikshithv01.workers.dev
PAPERPLANE_DEFAULT_CHANNEL no none — tools then need an explicit channel

The server checks the token at startup, so a revoked one fails fast with a message on stderr ratherthan surfacing mid-conversation.

Tools

Tool What it does
paperplane_send_event Push a notification to the phone. Supports priority, nature, and action buttons.
paperplane_ask Send a question to the phone and block until it's answered (or times out).
paperplane_check_ask Non-blocking read of an ask's current status — recover an answer after a client-side timeout.
paperplane_list_channels List the channels you belong to.
paperplane_list_messages Read recent events and replies, newest first, with alert status.
paperplane_set_alert_state Mark a message open, acked, or resolved.
paperplane_reply Post a reply into a channel thread.
paperplane_list_tickets Read the personal ticket board.
paperplane_create_ticket File a follow-up, optionally linked back to an alert.

Making something an alert

An event becomes an alert — badged, counted under "Needs attention", requiring acknowledgement —when nature is one of error, failure, failed, critical, pending, or priority is one ofhigh, crit, critical, urgent. Anything else is an ordinary message.

Action buttons

callback attaches buttons to the notification:

{
  "title": "Deploy failed",
  "message": "api-service · main @ abc123",
  "nature": "error",
  "callback": [{ "label": "Re-run pipeline", "webhook": "https://ci.example.com/hooks/rerun" }]
}

The phone fires the webhook when the button is pressed — the connector never calls it.

Scopes

A token carries scopes; the connector uses events:write, channels:read, messages:read,messages:write, tickets:read, and tickets:write. Tokens minted from the app carry all of them.Mint a narrower one via the API if you want a send-only credential:

curl -X POST "$PAPERPLANE_API_BASE_URL/tokens" \
  -H "authorization: Bearer $SESSION_JWT" -H 'content-type: application/json' \
  -d '{"name":"CI notifier","scopes":["events:write"]}'

Channel administration, membership, retention, and token management are session-only and stay outof reach of any token.

Development

npm install
npm run build
npm run inspect   # builds, then opens the MCP Inspector

Point it at a local backend with PAPERPLANE_API_BASE_URL=http://localhost:8787.

Tool handlers in src/tools/ take parsed arguments and return plain values — they know nothingabout MCP framing, so mounting them on a remote HTTP transport later is additive rather than arewrite.

MCP Server · Populars

MCP Server · New

    DIDA-AI

    RollingGo Hotel MCP — Hotel Search & Booking

    Official DIDA Hotel Booking MCP Server. 14-year travel tech data stack, 2M+ hotels at wholesale rates, 40+ LLM compatible. Free unlimited calls for businesses & individual devs. Filter by location, date, star grade, guests & tags; pull real-time room types, pricing & cancellation rules.

    Community DIDA-AI
    micro

    mu

    A personal home server

    Community micro
    talivia-group

    Talivia Agent Kit

    Revenue-first website analytics installed and verified by AI agents through MCP

    Community talivia-group
    gura105

    Operational Ontology

    A minimal, readable reference implementation of the Operational Ontology pattern. Palantir Foundry is one implementation; this is the concept, minimized.

    Community gura105
    EllisMorrow

    Caelune

    Caelune (星野) — Local-first retrieval for private Markdown, PDF, and Tika documents, with a Windows desktop app and read-only MCP server.|本地优先的私人知识检索工具。

    Community EllisMorrow