webhooks.cc

v2.6.2
io.github.kroqdotdev/webhooks-cc Checked 6 hours ago Published 15 days ago

Capture, inspect, send and assert on webhooks and inbound email from your coding agent.

MCP server for webhooks.cc. It gives coding agents direct access to webhook testing workflows: create endpoints, send signed test webhooks, inspect captures, compare attempts, verify signatures, and read recent webhook context through MCP resources. The easiest way in is the remote server at https://webhooks.cc/mcp, for any client that can add a remote MCP server (Claude Code, Cursor, VS Code, Codex, claude.ai, ChatGPT): you approve it once in your browser, with no key and nothing to install.

Summary extracted from the README.

@webhooks-cc/mcp

MCP server for webhooks.cc. It gives coding agents direct access to webhook testing workflows: create endpoints, send signed test webhooks, inspect captures, compare attempts, verify signatures, and read recent webhook context through MCP resources.

The easiest way in is the remote server at https://webhooks.cc/mcp, for any client that can add a remote MCP server (Claude Code, Cursor, VS Code, Codex, claude.ai, ChatGPT): you approve it once in your browser, with no key and nothing to install. This package is the local server, for sends to a handler on your machine, its prompts and resources, a keyless sandbox, and CI. It works with Claude Code, Cursor, VS Code, Codex, Devin Desktop (formerly Windsurf), and Claude Desktop.

Install

No API key is needed. Without one, the server starts with the tools for the account a human connected the agent to before, or else in the keyless agent sandbox. It reads:

  • WHK_API_KEY (optional) for an API key, which always wins over a saved connection
  • WHK_AGENT_FILE for where the sandbox and the connection are saved (default ~/.config/whk/agent.json, see the agent credential file)
  • WHK_BASE_URL for a custom API base URL
  • WHK_WEBHOOK_URL for a custom receiver base URL
  • WHK_MCP_TOOLS for which tool groups to list, such as all or core,teams
  • WHK_MCP_READ_ONLY set to 1 to list only the tools that change nothing

Claude Code plugin

The plugin installs the server together with a webhook testing skill that tells Claude when to use it:

/plugin install webhooks-cc --marketplace kroqdotdev/webhooks-cc

For other agents, npx skills add kroqdotdev/webhooks-cc installs the same skill. See Agent skill.

Remote server

https://webhooks.cc/mcp serves the same tools over streamable HTTP, with nothing to install. The client opens webhooks.cc in the browser once; the human signs in and clicks Connect (OAuth 2.1 with PKCE, no code to type), and can disconnect it later under Account, Connected agents.

  • Claude Code: claude mcp add -s user --transport http webhooks-cc https://webhooks.cc/mcp, then /mcp in Claude Code to sign in
  • Codex: codex mcp add webhooks-cc --url https://webhooks.cc/mcp (it opens the browser to sign in; if it does not, codex mcp login webhooks-cc)
  • Cursor (.cursor/mcp.json): { "mcpServers": { "webhooks-cc": { "url": "https://webhooks.cc/mcp" } } }
  • VS Code (.vscode/mcp.json): { "servers": { "webhooks-cc": { "type": "http", "url": "https://webhooks.cc/mcp" } } }
  • claude.ai and Claude Desktop: Settings, Connectors, add a custom connector with the URL https://webhooks.cc/mcp
  • ChatGPT: add it as a custom connector (developer mode)

A client that can send headers may use an API key instead: Authorization: Bearer whcc_.... The remote server has 101 tools: send_to, replay_request and share_port are left out, as is targetUrl on render_email and test_webhook_flow, because a hosted server cannot reach your machine, and waits are capped at 50 seconds. It needs an account (no sandbox), and serves tools only, without prompts or resources.

One-click

Both links set WHK_API_KEY; to start without a key, use the commands below.

CLI

# Claude Code
claude mcp add -s user --transport stdio webhooks-cc -- npx -y @webhooks-cc/mcp

# OpenAI Codex
codex mcp add webhooks-cc -- npx -y @webhooks-cc/mcp

# Or let setup write the config
npx @webhooks-cc/mcp setup claude-code
npx @webhooks-cc/mcp setup cursor
npx @webhooks-cc/mcp setup vscode
npx @webhooks-cc/mcp setup codex
npx @webhooks-cc/mcp setup devin    # Devin Desktop, formerly Windsurf ("windsurf" works too)
npx @webhooks-cc/mcp setup claude-desktop

To start with an API key, add -e WHK_API_KEY=whcc_... to the mcp add commands, or --api-key whcc_... to setup.

Manual config

{
  "mcpServers": {
    "webhooks-cc": {
      "command": "npx",
      "args": ["-y", "@webhooks-cc/mcp"],
      "env": {
        "WHK_API_KEY": "whcc_..."
      }
    }
  }
}

Leave out env to start without a key. Get your API key at webhooks.cc/account/api-keys.

What it exposes

With an API key or a saved connection, the server lists the 39 core tools and enable_tools by default, and all 104 tools for Claude Code, Codex and ChatGPT (see Tool groups), plus 3 prompts (and, with an API key, 3 resource surfaces). Without either, it lists 11 sandbox tools. The remote server exposes the 36 core tools it can run by default, and 101 with ?tools=all or for clients that load every group.

Tool groups

The tools come in groups, so that clients with a limit on tools (Cursor stops at about 40 across all servers) get a list they can use:

  • core: endpoints, captured requests and emails, sending test webhooks, signatures, forwarding destinations, deliveries, previews of your local app, usage and approvals
  • forwarding: dry runs of a destination, the endpoint's forwarding settings and signing secret (rotating it counts as a change), test deliveries
  • layouts: email layouts and named fields, ready-made layouts, and AI setup
  • extras: bulk endpoint changes, favourites, request counts and payload schemas
  • teams: teams, members, invites, sharing endpoints with a team, team pricing
  • account: billing, API keys, connected agents, public share links, the display name
  • domains: custom inbound email domains
  • sheets: Google Sheets destinations
  • names: reserved preview names, their passwords, and the requests visitors made

Without WHK_MCP_TOOLS, the server lists core. A client that loads tools only when the model looks for them, or takes long lists (Claude Code, claude.ai, Codex, ChatGPT), gets every group once it connects, announced with one notifications/tools/list_changed. With WHK_MCP_TOOLS (all, or core plus group names separated by commas), the server lists exactly those groups for every client; unknown names are reported on stderr.

enable_tools loads more groups during a session: pass groups (for example ["teams"], or ["all"]). It answers with the tools each group added, and its description lists every group and which are loaded, so an agent that misses a tool knows where it lives. It is there whenever a group is left to load.

WHK_MCP_READ_ONLY=1 lists only the tools that change nothing (their readOnlyHint is true). enable_tools stays, since it only changes what this session lists, and loads only a group's read-only tools; without an account, connect_account and wait_for_connection stay too.

Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and a title.

Endpoint tools

  • create_endpoint
  • list_endpoints
  • get_endpoint
  • favorite_endpoint (mark or unmark one of your favourites; list_endpoints and get_endpoint show favorite)
  • update_endpoint
  • preview_response
  • delete_endpoint
  • create_endpoints
  • delete_endpoints

Request tools

  • list_requests
  • search_requests
  • count_requests
  • get_request
  • wait_for_request
  • wait_for_requests
  • replay_request
  • compare_requests
  • generate_payload_schema (TypeScript, Zod, Pydantic, or JSON Schema from captured bodies)
  • extract_from_request
  • verify_signature
  • clear_requests

Email tools

Every endpoint on an account receives email at {slug}@mailhooks.cc (and {slug}+{tag}@mailhooks.cc). These tools read it, with the one-time code and main link already picked out, unless the endpoint's owner turned that off:

  • list_emails
  • get_email
  • wait_for_email
  • send_test_email
  • render_email (an email in Postmark, SendGrid, Mailgun or CloudMailin shape, optionally posted to your local inbound handler)

The request tools and resources return emails too (filter with kind), without the raw message or the HTML part and with the text cut at 8,000 characters; get_email returns the HTML.

Forwarding tools

Send captured HTTP requests and emails to up to 10 destinations (your servers, Slack or Discord channels, Zapier or n8n), each with its own kinds, conditions, format (as received, signed JSON, a JSON body you shape with placeholders, or a chat message), throttle, delay and signing secret, retried and logged (owner only):

  • list_destinations, add_destination, update_destination, remove_destination
  • preview_destination (dry run: does the filter pass, and the exact request it would send)
  • configure_forwarding (the primary destination: URL, on/off, kinds, format, your headers, path, retries, order, sent time field)
  • get_forwarding_secret (returns a destination's whsec_ secret; with rotate: true, replaces it)
  • test_forwarding (sends one request to a destination and reports the answer)
  • list_deliveries (the delivery log with its counts, by destination, or every try of one request)
  • redeliver (one request, to one destination or all, or every failed delivery of an endpoint)

Send and test tools

  • send_webhook
  • send_to
  • preview_webhook
  • test_webhook_flow

Team tools

  • list_teams
  • list_team_members
  • share_endpoint
  • unshare_endpoint

Endpoints shared with you already appear in list_endpoints (with fromTeam) and work with every request tool except clear_requests, which stays with the owner. Invites are not exposed: accepting one claims a paid seat.

Sharing tools

  • share_port: shares a local port at a https://<name>.sharehooks.cc link by running whk share (local server only; needs whk installed, or WHK_PATH naming it). The share runs until stop_share, the plan's session limit, or the end of the server. Free shares get a random name ending in -free, two hours, and a notice page before the site; Pro and Business can pass a reserved name and a password.
  • list_shares: running and recent previews and live tunnels, this month's shared data, the plan's sharing limits, and hints with the next step (the server's own in tool names, plus slots or data running out).
  • stop_share: stops a preview or live tunnel, and says whether it had already ended.
  • share_requests: the last requests visitors made to a running preview (no addresses).
  • list_names, reserve_name (optionally inside a team), release_name: reserved preview names (Pro and Business).
  • set_name_password, clear_name_password: the password visitors need for every preview under a name. The password is never echoed back.

Everything the dashboard's Shares page does is here, so an agent never needs it; only share_port needs the local server.

Discovery and account tools

  • list_provider_templates
  • get_usage (personal plan plus each subscribed team's pool)
  • describe
  • enable_tools (local server only: loads more tool groups)

Without an API key: the agent sandbox

Started without WHK_API_KEY, the server starts with the account's tools when the agent credential file holds a live connection to a human's account. Otherwise it registers sandbox tools instead (auth.md):

  • create_endpoint, list_endpoints, get_endpoint, delete_endpoint, list_requests, get_request, wait_for_request, generate_payload_schema: the same names and arguments as the full tools, in a sandbox of up to 3 endpoints, 25 captured requests each and 100 in all, for 24 hours. The first create_endpoint registers it (a few seconds of proof of work).
  • connect_account: returns a link and a 6-digit code for a human to connect the agent to their account. Pass the email they sign in to webhooks.cc with.
  • wait_for_connection: waits for the human, then replaces the sandbox tools with the tools for that account, in the same groups (notifications/tools/list_changed) and saves the connection.
  • about_sandbox: the limits and how to connect, without a network call.

The human approves the agent once: later sessions start connected, for 90 days. When they disconnect the agent under Account, Connected agents, the sandbox tools come back. A sandbox made in an earlier session cannot move into the account, because only the process that registered holds the claim token; connect_account then connects through a new registration and says so, and the old endpoints stay in the sandbox until they expire.

The agent credential file

The sandbox and the connection are saved in ~/.config/whk/agent.json ($XDG_CONFIG_HOME/whk/agent.json when set; ~/Library/Application Support/whk/agent.json on macOS; %APPDATA%\whk\agent.json on Windows), or wherever WHK_AGENT_FILE points. The TypeScript, Python and Go SDKs and the whk CLI share it, so a connection made in one works in all of them. It is written atomically with mode 0600, holds identity assertions and short-lived tokens (never the claim token), and an API key always wins over it. The format is described in AI agents and specified in agent-credentials.md.

Prompts

The server exposes MCP prompts for common workflows:

  • debug_webhook_delivery
  • setup_provider_testing
  • compare_webhook_attempts

These prompts do not execute anything on their own. They give the client a structured starting point for multi-step agent work.

Resources

The server exposes MCP resources for recent webhook context:

  • webhooks://endpoints
  • webhooks://endpoint/{slug}/recent
  • webhooks://request/{id}

These are useful when the client supports resource browsing or prompt/resource attachment.

Provider support

Provider template and signing support includes:

  • stripe
  • github
  • shopify
  • twilio
  • slack
  • paddle
  • linear
  • sendgrid
  • clerk
  • discord
  • vercel
  • gitlab
  • typeform
  • standard-webhooks
  • meta
  • lemonsqueezy
  • coinbase-commerce
  • razorpay
  • cal
  • intercom
  • telegram
  • square
  • hubspot
  • mailgun
  • calendly
  • mux
  • sentry
  • bitbucket
  • docusign
  • adyen
  • paypal
  • plaid
  • resend
  • workos

Signature verification also supports:

  • all template providers except sendgrid (IP allowlisting) and plaid (JWT/JWK verification requires Plaid API credentials)

Use list_provider_templates to inspect templates, default events, signature headers, and signing requirements from the agent.

Example workflows

Typical agent flows:

  • Create an ephemeral endpoint, send a provider-signed webhook, and wait for capture
  • Search retained requests across endpoints by substring, continuing with the cursor through long histories
  • Compare two webhook attempts and extract only the JSON fields you care about
  • Verify a captured signature against a known secret
  • Run test_webhook_flow to create, send, capture, verify, replay, and clean up in one tool call

Programmatic use

The package also exports createServer(), registerTools(), registerSandboxTools(), registerPrompts(), and registerResources() if you want to embed the server yourself. createServer() takes tools and readOnly (default WHK_MCP_TOOLS and WHK_MCP_READ_ONLY), and without apiKey also credentialsFile (a path, or false to keep the sandbox and the connection in memory). registerTools(target, client, { remote, groups, readOnly }) registers the tools on anything with a tool() method (asToolServer(mcpServer) adapts an McpServer from @modelcontextprotocol/server); remote: true applies the remote server's restrictions. It is also exported from @webhooks-cc/mcp/tools.

import { createServer } from "@webhooks-cc/mcp";
import { serveStdio } from "@modelcontextprotocol/server/stdio";

// One server per connection; serves 2026-07-28 clients and those that open with initialize.
serveStdio(() =>
  createServer({
    apiKey: process.env.WHK_API_KEY!,
    baseUrl: process.env.WHK_BASE_URL,
    webhookUrl: process.env.WHK_WEBHOOK_URL,
    tools: "core,teams",
  })
);

Example conversation

You: Create an ephemeral endpoint for GitHub webhook testing.

Agent: Created endpoint https://go.webhooks.cc/w/abc123 and marked it ephemeral.

You: Preview the signed request for a push event before sending it.

Agent: Here is the exact method, headers, and JSON body that would be sent.

You: Send it, wait for two requests, and compare them.

Agent: Sent the webhook, captured two requests, and here are the header and body differences.

Documentation

Full docs: webhooks.cc/docs/mcp

License

MIT