GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Webhook URLs for AI agents: receive, wait for, replay, sign and verify webhooks (Stripe, GitHub…).
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
WEBHOOK_TOOLKIT_KEY, Authorization标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"webhook-toolkit": {
"command": "npx",
"args": [
"-y",
"webhook-toolkit",
"mcp"
],
"env": {
"WEBHOOK_TOOLKIT_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http webhook-toolkit https://webhook-toolkit.com/mcp --header 'Authorization: your-value'claude mcp add webhook-toolkit --env WEBHOOK_TOOLKIT_KEY=your-value -- npx -y webhook-toolkit mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"webhook-toolkit": {
"url": "https://webhook-toolkit.com/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"webhook-toolkit": {
"command": "npx",
"args": [
"-y",
"webhook-toolkit",
"mcp"
],
"env": {
"WEBHOOK_TOOLKIT_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"webhook-toolkit": {
"type": "http",
"url": "https://webhook-toolkit.com/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"webhook-toolkit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"webhook-toolkit",
"mcp"
],
"env": {
"WEBHOOK_TOOLKIT_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
Authorization 机密 HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 THE-KIPDEV 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:WEBHOOK_TOOLKIT_KEY, Authorization
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(0.1.1)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Receive, forward, sign and verify webhooks from your terminal, your test suite and your AI agent. One package: a CLI (webhook-toolkit, alias whtk), a typed library and an MCP server, backed by webhook-toolkit.com.
npx webhook-toolkit listen --forward http://localhost:3000/webhooks
That's it: no account, no config. You get a public URL; paste it into Stripe, GitHub, Shopify or any other sender, and every webhook shows up in your terminal and is re-sent to your local handler:
webhook-toolkit · listening
Webhook URL https://webhook-toolkit.com/r/l90c9MKIdo0o Inspector https://webhook-toolkit.com/e/l90c9MKIdo0o Forwarding → http://localhost:3000/webhooks Expires in 7 days (2026-09-25 15:42) Anonymous URL. Run webhook-toolkit login to get a permanent one.
Waiting for webhooks. Ctrl+C to stop.
15:42:11 POST /stripe stripe checkout.session.completed 248 B ↳ 200 OK · 3 ms 15:42:11 POST /github github push 269 B ↳ 500 Internal Server Error · 1 ms {"error":"handler crashed: cannot read properties of undefined"}
Every request is also kept in a web inspector (headers, raw body, replay), so nothing is lost when your handler crashes.
npm i -g webhook-toolkit # or run any command with npx webhook-toolkit …
| Command | What it does |
|---|---|
whtk listen [--forward ] | Public URL + live stream of incoming requests, optionally re-sent to localhost. Reuses your last URL while it is alive (--new for a fresh one). |
whtk relay --to | Real tunnel: callers get your local app's response. Paid. |
whtk sign --secret | Build a validly signed webhook: prints headers + a ready-to-run curl, or sends it with --send. |
whtk verify --secret … | Check a signature, and when it fails, say why. |
whtk replay --to | Re-send a captured request from your machine (localhost works). |
whtk requests | List captured requests (--json for scripts). |
whtk endpoints | List your account's URLs. |
whtk login / logout / whoami | Save, remove or inspect your API key. |
whtk mcp | Start the MCP server on stdio. |
A few things worth knowing:
…/r/ /stripe?x=1 is forwarded to http://localhost:3000/webhooks/stripe?x=1, so one URL can feed several handlers.host and content-length), so signature checks in your handler pass exactly as in production.listening, request, forward events) for scripting: whtk listen -f 3000 --json | jq .request.event.NO_COLOR, FORCE_COLOR and are off when output is not a terminal.# Prints the headers and a curl command, with a realistic sample event
whtk sign stripe --secret whsec_… --event checkout.session.completed
whtk sign github --secret my-secret --file push.json --send http://localhost:3000/api/github whtk sign twilio --secret --url https://example.com/sms --send 3000
whtk verify stripe --secret whsec_test_secret --body-file body.json \
-H "Stripe-Signature: t=1726000000,v1=a530ce3d81556a0eced506e1d1cad777bc55bc1e408e54dd6bfef08e1dde216c"
✗ Invalid Stripe signature (body_trailing_newline_added) The signature matches the body without its trailing newline: a newline was appended after signing (proxy, logger, copy-paste). Verify the raw bytes exactly as received. expected t=1726000000,v1=1e0085bf1054f89ac8882e2e5fcbfdf301b1d6445e8ed7a316120cd5dc651ba9 received t=1726000000,v1=a530ce3d81556a0eced506e1d1cad777bc55bc1e408e54dd6bfef08e1dde216c timestamp 1726000000 (738 days ago)
The verifier replays the usual mistakes (whitespace in the secret, added or stripped trailing newline, CRLF conversion, expired timestamp, and for Twilio: http vs https, port, query string, trailing slash, repeated parameters) and tells you which one matches. The same logic powers the online signature validator.
The library gives your tests a real public URL and a way to wait for what lands on it. It works anonymously; set WEBHOOK_TOOLKIT_KEY in CI for permanent URLs and higher limits.
import { expect, test } from "vitest";
import { WebhookToolkit, verify } from "webhook-toolkit";
const wt = new WebhookToolkit(); // anonymous, or reads WEBHOOK_TOOLKIT_KEY
test("creating an order notifies the customer's webhook", async () => { const endpoint = await wt.createEndpoint({ name: "ci-orders" });
// The app under test sends its outgoing webhooks to the capture URL. await api.post("/settings/webhooks", { url: endpoint.url, secret: "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw" }); await api.post("/orders", { sku: "tshirt", quantity: 2 });
const req = await wt.waitForRequest(endpoint.token, { timeoutMs: 30_000, filter: (r) => JSON.parse(r.body).type === "order.created", });
expect(JSON.parse(req.body).data.quantity).toBe(2); // Your outgoing signatures are correct, too: expect(verify("svix", { secret: "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw", rawBody: req.body, headers: req.headers }).valid).toBe(true); });
waitForRequest checks requests that already arrived since the endpoint was created, then long-polls until timeoutMs, so the order of "trigger" and "wait" does not matter. It rejects with a WebhookToolkitError (code: "timeout") when nothing matched.
To test your handler without any network at all, sign the payload locally:
import { sign } from "webhook-toolkit";
const { headers, body } = sign("stripe", { secret: process.env.STRIPE_WEBHOOK_SECRET!, event: "checkout.session.completed" }); const res = await fetch("http://localhost:3000/api/webhooks/stripe", { method: "POST", headers, body }); expect(res.status).toBe(200);
import { expect, test } from "@playwright/test";
import { WebhookToolkit } from "webhook-toolkit";
const wt = new WebhookToolkit();
test("'Send test event' reaches the configured URL", async ({ page }) => { const endpoint = await wt.createEndpoint();
await page.goto("/settings/integrations"); await page.getByLabel("Webhook URL").fill(endpoint.url); await page.getByRole("button", { name: "Save" }).click(); await page.getByRole("button", { name: "Send test event" }).click();
const req = await wt.waitForRequest(endpoint.token, { timeoutMs: 15_000 }); expect(req.method).toBe("POST"); expect(req.headers["content-type"]).toContain("application/json"); });
The package is ESM-only. CommonJS test runners work on Node ≥ 20.19 / 22.12 (native
require(esm)); Jest needs its ESM mode.
webhook-toolkit mcp is a Model Context Protocol server. Your coding agent can create a webhook URL, wait for the delivery after triggering it, read the payload, then replay it or send freshly signed events to your localhost handler while it fixes the code.
The API key is optional: everything except list_webhook_urls and explain_webhook_request works anonymously.
Claude Code
claude mcp add webhook-toolkit -- npx -y webhook-toolkit mcp
claude mcp add webhook-toolkit --env WEBHOOK_TOOLKIT_KEY=whk_… -- npx -y webhook-toolkit mcp
Cursor (.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json), Claude Desktop (claude_desktop_config.json)
{
"mcpServers": { "webhook-toolkit": { "command": "npx", "args": ["-y", "webhook-toolkit", "mcp"], "env": { "WEBHOOK_TOOLKIT_KEY": "whk_…" } } } }
VS Code (.vscode/mcp.json)
{
"inputs": [ { "type": "promptString", "id": "webhook-toolkit-key", "description": "webhook-toolkit.com API key (optional)", "password": true } ], "servers": { "webhook-toolkit": { "type": "stdio", "command": "npx", "args": ["-y", "webhook-toolkit", "mcp"], "env": { "WEBHOOK_TOOLKIT_KEY": "${input:webhook-toolkit-key}" } } } }
Codex CLI (~/.codex/config.toml)
[mcp_servers.webhook-toolkit]
command = "npx" args = ["-y", "webhook-toolkit", "mcp"] env = { WEBHOOK_TOOLKIT_KEY = "whk_…" }
ChatGPT, Claude.ai and other remote-capable clients: add a custom connector pointing at the hosted server, nothing to install:
https://webhook-toolkit.com/mcp
(Streamable HTTP, optional Authorization: Bearer whk_….) The hosted server cannot reach your machine, so replaying to localhost and send_signed_webhook need the local server above.
| Tool | Use it to |
|---|---|
create_webhook_url | Get a public URL to receive a webhook from a third-party service or the app under test |
wait_for_webhook | Block until the delivery arrives (filters: provider, event, method, path, body); safe to call after triggering |
list_webhook_requests / get_webhook_request | See what was actually sent: headers, raw body, detected provider and event |
replay_webhook_request | Re-send a captured request from the local machine to e.g. http://localhost:3000/api/webhooks |
send_signed_webhook | POST a validly signed event (Stripe, GitHub, Shopify, Slack, Twilio, Mailgun, Svix, Paddle, Discord) to your handler |
sign_webhook_payload | Compute signature headers and a curl command without sending |
verify_webhook_signature | Explain why a handler rejects a signature |
set_webhook_response | Change what the URL answers (status, body): simulate failures, answer challenges |
list_webhook_urls | Find an existing permanent URL (key required) |
explain_webhook_request | AI explanation of a payload, or a generated handler (paid, 3 free trials) |
Outputs are compact text plus the key JSON; bodies over 20 KB are truncated with a note pointing to the inspector. To embed the server in your own process: import { createMcpServer } from "webhook-toolkit/mcp".
sign() and verify() run locally with node:crypto: secrets never leave your machine. Signatures are byte-for-byte identical to the webhook-toolkit.com signer, and the tests check them against the providers' published examples (GitHub, Slack, Twilio, Svix).
| Provider | id | Signature | Algorithm | secret |
|---|---|---|---|---|
| Stripe | stripe | Stripe-Signature | HMAC-SHA256 hex of t.body | endpoint secret whsec_… |
| GitHub, Gitea, Forgejo | github | X-Hub-Signature-256 (+ X-Hub-Signature) | HMAC-SHA256 hex of the body | webhook secret |
| Shopify | shopify | X-Shopify-Hmac-Sha256 | HMAC-SHA256 base64 of the body | app client se
只显示了开头部分;其余内容请在仓库中阅读