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.
PUMBLE_API_KEY="<your-pumble-api-key>" npx -y @infralayers/pumble-mcp02IDE & 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
| Client | Config File Path |
|---|---|
| Cursor | ~/.cursor/mcp.json |
| Claude Desktop | claude_desktop_config.json |
| VS Code (Cline / Roo) | .vscode/mcp.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 mcp add pumble --env PUMBLE_API_KEY="<your-pumble-api-key>" -- npx -y @infralayers/pumble-mcpTerminal / 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:
# Start the stdio server directly with your workspace token:PUMBLE_API_KEY="<your-pumble-api-key>" npx -y @infralayers/pumble-mcp03Headless & 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 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):
// 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:
# 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:
- Zero directory-dump lookups: Agents pass human-readable
#channel-name,@username, or email directly into tool calls. Instead of callinglist_channelsandlist_users(which can inject thousands of lines of workspace JSON into the context window), the server resolves IDs locally in RAM (~0.05ms). - 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.
- Affirmative execution receipts: Mutation tools return explicit verification receipts (
ok: true, delivered: true+ permalink), stopping LLMs from issuing follow-uplist_messagesconfirmation 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
Mutation tools return structured delivery receipts (ok: true, delivered: true) so LLMs don't burn tokens re-reading channels to verify posts.
Transport-level finite state machine guardrail blocks speculative reconnaissance loops and fast-fails missing entities.
Destructive calls (delete_message, delete_scheduled_message) require a single-use confirmation token.
AUTH-XXXX confirmation challenge. The operation only executes once that exact token is supplied back.05Complete 26-Tool Reference
Search or filter all 26 production Pumble REST tools exposed over MCP stdio:
Send a message to any channel or DM with native slug/ID resolution and affirmative delivery receipt.
List messages in a channel or DM. Supports cursor pagination and limit (default: 10, max: 50).
Fetch a single message by ID. Takes channelIdentifier and messageId.
Edit an existing message. Takes channelIdentifier, messageId, and updated text.
Delete a message. Takes channelIdentifier, messageId, and confirmation token (destructive).
Reply to a message to start or continue a thread. Takes channelIdentifier, messageId, text, asBot.
Fetch replies in a thread. Takes channelIdentifier, messageId, limit, cursor. Returns newest first.
Search messages across workspace by text, fromUser, or inChannel with auto-resolved IDs.
Schedule a future message (ISO string or epoch ms, min 30s in future) to a channel or DM.
List queued scheduled messages. Supports optional destination filters, limit, and cursor.
Inspect a scheduled message by its scheduledMessageId.
Modify scheduled message text, sendAt, or destination channel/DM.
Cancel and delete a queued scheduled message with confirmation token (destructive).
Add an emoji reaction to a message using emoji code (e.g. :thumbsup:).
Remove an emoji reaction from a message using emoji code.
List visible channels (public, private, and direct). Guarded against unnecessary agent loops.
Hydrate full channel details, including resolved member lists with names and emails.
Create a new channel (PUBLIC or PRIVATE). Updates in-memory cache in 0ms.
Add workspace members to a channel via array of names, emails, or IDs.
Remove a member from a channel with confirmation token (destructive).
Send a 1-on-1 direct message. Takes userIdentifier (name, email, or ID) and text.
Send a multi-person group direct message (2–8 users) with automatic deduplication.
List workspace users. Guarded against speculative agent reconnaissance.
Get account and profile details of authenticated bot or API key owner.
List all user groups configured in the Pumble workspace.
Set or clear custom status text, emoji, and expiration duration with 0ms write-through.