Documentation

@infralayers/pumble-mcp Developer Guide

Complete setup, client configuration, headless CI/CD automation recipes, and 26-tool reference for connecting AI assistants and autonomous agents to Pumble over stdio.

v0.1.0npm26 REST Tools~0.05ms CacheZero Install (npx)MIT

01Quick Start & Prerequisites

@infralayers/pumble-mcp runs over standard MCP stdio transport with zero local installation via npx. All you need is Node.js 18+ and a workspace PUMBLE_API_KEY.

Where to get your PUMBLE_API_KEY
Generate a personal or bot API key from your Pumble workspace settings (Apps & Integrations → API Keys). Never commit your token to git — pass it via your IDE config or environment secret manager.
bash
PUMBLE_API_KEY="<your-pumble-api-key>" npx -y @infralayers/pumble-mcp

02IDE & Client Setup

Connect the server over stdio to any MCP-compliant client. Replace <your-pumble-api-key> with your workspace token.

Universal mcp.json (Cursor, Claude Desktop, VS Code, Windsurf)JSON

ClientConfig File Path
Cursor~/.cursor/mcp.json
Claude Desktopclaude_desktop_config.json
VS Code (Cline / Roo).vscode/mcp.json
mcp.json·json
{  "mcpServers": {    "pumble": {      "command": "npx",      "args": ["-y", "@infralayers/pumble-mcp"],      "env": {        "PUMBLE_API_KEY": "<your-pumble-api-key>"      }    }  }}

Claude Code CLIOne-liner

Register @infralayers/pumble-mcp in Anthropic Claude Code terminal sessions with a single command:

claude-code.sh·bash
claude mcp add pumble --env PUMBLE_API_KEY="<your-pumble-api-key>" -- npx -y @infralayers/pumble-mcp

Terminal / Stdio RunnerJSON-RPC 2.0

Launch the server directly in bash or zsh to verify your workspace token and test JSON-RPC 2.0 stdio transport:

stdio-test.sh·bash
# Start the stdio server directly with your workspace token:PUMBLE_API_KEY="<your-pumble-api-key>" npx -y @infralayers/pumble-mcp

03Headless & CI/CD Automation Recipes

Run @infralayers/pumble-mcp ephemerally inside CI/CD pipelines, scheduled cron jobs, or incident triage webhooks with zero idle memory footprint.

GitHub Actions CI/CD.github/workflows/deploy.yml

Post build or deployment receipts directly to a Pumble channel using the official MCP SDK over StdioClientTransport:

.github/workflows/deploy.yml·yaml
# GitHub Actions Step: Post build receipt to Pumble- name: Notify Pumble Channel  env:    PUMBLE_API_KEY: ${{ secrets.PUMBLE_API_KEY }}  run: |    # Launches on-demand stdio runner and sends receipt    node --input-type=module -e '      import { Client } from "@modelcontextprotocol/sdk/client/index.js";      import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";      const client = new Client({ name: "ci-bot", version: "1.0.0" }, { capabilities: {} });      await client.connect(new StdioClientTransport({ command: "npx", args: ["-y", "@infralayers/pumble-mcp"], env: process.env }));      await client.callTool({ name: "send_message", arguments: { channel: "deployments", text: "Deploy complete." } });    '

Scheduled Cron Jobscripts/daily-digest-cron.ts

Dispatch automated status digests via crontab or cloud schedulers and exit immediately (0 MB idle RAM):

scripts/daily-digest-cron.ts·typescript
// Nightly crontab runner: 0 9 * * 1-5import { Client } from "@modelcontextprotocol/sdk/client/index.js";import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
async function runDigest() {  const transport = new StdioClientTransport({    command: "npx",    args: ["-y", "@infralayers/pumble-mcp"],    env: { PUMBLE_API_KEY: process.env.PUMBLE_API_KEY! },  });
  const client = new Client({ name: "cron-digest", version: "1.0.0" }, { capabilities: {} });  await client.connect(transport);
  await client.callTool({    name: "send_dm",    arguments: { user: "sarah.lead@company.com", text: "Daily audit: 0 unhandled alerts." },  });
  process.exit(0);}
runDigest();

Incident Triage Bot (Python)triage_agent.py

Post automated diagnostic thread replies from Python monitoring webhooks using mcp.client.stdio:

triage_agent.py·python
# Webhook exception handler for production alertsimport os, asynciofrom mcp import ClientSession, StdioServerParametersfrom mcp.client.stdio import stdio_client
server = StdioServerParameters(command="npx", args=["-y", "@infralayers/pumble-mcp"], env=os.environ)
async def reply_incident(channel, parent_msg_id, summary):    async with stdio_client(server) as (read, write):        async with ClientSession(read, write) as session:            await session.initialize()            await session.call_tool(                "reply_message",                arguments={"channel": channel, "parent_message_id": parent_msg_id, "text": summary}            )
asyncio.run(reply_incident("incidents", "msg_123", "Database latency recovered."))

04Token Optimization, Caching & Safety Guardrails

How ~70% Context Token Savings WorkContext Efficiency

Standard MCP wrappers burn thousands of prompt tokens per workspace action by forcing the LLM to discover IDs, parse raw REST dumps, and re-verify writes. @infralayers/pumble-mcp cuts context usage by ~70% through three transport-level optimizations:

  1. Zero directory-dump lookups: Agents pass human-readable #channel-name, @username, or email directly into tool calls. Instead of calling list_channels and list_users (which can inject thousands of lines of workspace JSON into the context window), the server resolves IDs locally in RAM (~0.05ms).
  2. Compact, normalized payloads: Tool outputs strip redundant raw REST metadata, avatar URLs, and nested workspace blobs, returning only the structured fields an agent needs to reason about.
  3. Affirmative execution receipts: Mutation tools return explicit verification receipts (ok: true, delivered: true + permalink), stopping LLMs from issuing follow-up list_messages confirmation calls that double multi-turn transcript size.

In-Memory Resolution Cache (~0.05ms)60s TTL

Workspace channels and users are cached in memory with an active 60-second TTL, avoiding repeated ~1,500ms REST lookups. Mutations such as create_channel, add_users_to_channel, and status updates perform write-through updates so the cache stays fresh in 0ms.

Affirmative Receipts, Loop Breaker & Destructive Auth Gate

Affirmative Receipts

Mutation tools return structured delivery receipts (ok: true, delivered: true) so LLMs don't burn tokens re-reading channels to verify posts.

3s Loop Breaker

Transport-level finite state machine guardrail blocks speculative reconnaissance loops and fast-fails missing entities.

AUTH-XXXX Gate

Destructive calls (delete_message, delete_scheduled_message) require a single-use confirmation token.

05Complete 26-Tool Reference

Search or filter all 26 production Pumble REST tools exposed over MCP stdio:

Showing 26 of 26 tools
WRITE

Send a message to any channel or DM with native slug/ID resolution and affirmative delivery receipt.

Messaging & Threads Affirmative Receipt
READ

List messages in a channel or DM. Supports cursor pagination and limit (default: 10, max: 50).

Messaging & Threads Live REST API
READ

Fetch a single message by ID. Takes channelIdentifier and messageId.

Messaging & Threads Live REST API
WRITE

Edit an existing message. Takes channelIdentifier, messageId, and updated text.

Messaging & Threads Affirmative Receipt
DESTRUCTIVE

Delete a message. Takes channelIdentifier, messageId, and confirmation token (destructive).

Messaging & Threads Auth-Gated
WRITE

Reply to a message to start or continue a thread. Takes channelIdentifier, messageId, text, asBot.

Messaging & Threads Affirmative Receipt
READ

Fetch replies in a thread. Takes channelIdentifier, messageId, limit, cursor. Returns newest first.

Messaging & Threads Live REST API
READ

Search messages across workspace by text, fromUser, or inChannel with auto-resolved IDs.

Messaging & Threads Live REST API
WRITE

Schedule a future message (ISO string or epoch ms, min 30s in future) to a channel or DM.

Scheduled Messages Affirmative Receipt
READ

List queued scheduled messages. Supports optional destination filters, limit, and cursor.

Scheduled Messages Live REST API
READ

Inspect a scheduled message by its scheduledMessageId.

Scheduled Messages Live REST API
WRITE

Modify scheduled message text, sendAt, or destination channel/DM.

Scheduled Messages Affirmative Receipt
DESTRUCTIVE

Cancel and delete a queued scheduled message with confirmation token (destructive).

Scheduled Messages Auth-Gated
WRITE

Add an emoji reaction to a message using emoji code (e.g. :thumbsup:).

Reactions Affirmative Receipt
DESTRUCTIVE

Remove an emoji reaction from a message using emoji code.

Reactions Affirmative Receipt
READ

List visible channels (public, private, and direct). Guarded against unnecessary agent loops.

Channels & Membership In-Memory Cache (~0.05ms)
READ

Hydrate full channel details, including resolved member lists with names and emails.

Channels & Membership In-Memory Cache (~0.05ms)
WRITE

Create a new channel (PUBLIC or PRIVATE). Updates in-memory cache in 0ms.

Channels & Membership Affirmative Receipt
WRITE

Add workspace members to a channel via array of names, emails, or IDs.

Channels & Membership Affirmative Receipt
DESTRUCTIVE

Remove a member from a channel with confirmation token (destructive).

Channels & Membership Auth-Gated
WRITE

Send a 1-on-1 direct message. Takes userIdentifier (name, email, or ID) and text.

Workspace & Status Affirmative Receipt
WRITE

Send a multi-person group direct message (2–8 users) with automatic deduplication.

Workspace & Status Affirmative Receipt
READ

List workspace users. Guarded against speculative agent reconnaissance.

Workspace & Status In-Memory Cache (~0.05ms)
READ

Get account and profile details of authenticated bot or API key owner.

Workspace & Status In-Memory Cache (~0.05ms)
READ

List all user groups configured in the Pumble workspace.

Workspace & Status In-Memory Cache (~0.05ms)
WRITE

Set or clear custom status text, emoji, and expiration duration with 0ms write-through.

Workspace & Status Affirmative Receipt

Need help integrating @infralayers/pumble-mcp?

Open an issue on GitHub for open-source questions, or talk to our engineering team for commercial architecture and integration support.