AnyHook (moved)

io.github.gba3124由 GitHub 帳號 gba3124 發布v0.2.3更新於 Oct 24, 2026

Moved to net.anyhook/anyhook. Webhook relay for agents: keyless quickstart, replay, mock.

發布方自己的服務:AnyHook

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

AnyHook Webhook 中繼 MCP 伺服器,讓助理檢視 Webhook 事件、重播投遞、產生帶簽章的模擬負載並管理中繼應用程式。

可以做什麼
列出並建立 Webhook 中繼應用程式及其入站 URL,並連接服務商金鑰,讓 Webhook 在服務商端註冊並從第一個事件起驗證簽章(金鑰不會被儲存)。依應用程式或狀態列出近期事件,檢視單一事件的標頭、內容與簽章狀態,並列出從未送達目標的事件。將已儲存事件重播至其目標,批次重播某個應用程式的所有失敗事件,並列出支援的 Webhook 服務商。為本機處理程式測試產生帶簽章的 Stripe、GitHub 或 Slack 負載,用密鑰驗證傳入簽章,並向記憶體儲存模擬事件。無金鑰的本機模式下,快速開始工具可自助開通免費中繼端點。
適用情境
適合在開發或維運 Webhook 整合時使用,讓助理讀取真實事件日誌、排查簽章失敗、重送失敗投遞,或為本機處理程式產生帶簽章的測試負載。也方便用一句提示快速建立中繼端點。
執行需求
透過 npx 在本機執行(需要 Node.js)。遠端模式需要 ANYHOOK_API_KEY,即 AnyHook 儀表板中的個人金鑰;沒有它則進入本機模式,提供 mock、verify、providers 工具與記憶體儲存。ANYHOOK_API_BASE 可覆寫 API 基礎位址,供自架部署使用。另有託管遠端端點,支援瀏覽器登入或 Bearer 金鑰。
安裝前請注意
遠端模式會操作真實的 AnyHook 帳戶:建立應用程式、重播投遞與批次重播失敗事件都會改變狀態,可能消耗配額或觸及每日重播上限。連接工具需要 Stripe 金鑰或 GitHub 權杖等服務商憑證;README 稱金鑰不會被儲存,但仍會經由助理傳遞。mock 可向指定的目標 URL 送出帶簽章的負載。快速開始建立的端點若未認領,7 天後過期。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AnyHook (moved),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

anyhook-mcp

An MCP server that gives AI agents eyes on webhooks, inspect events, replay deliveries, mock signed payloads, create apps. Designed for the 45-second AI handler workflow.

Apache 2.0 · npm i -g anyhook-mcp


Already have an AnyHook account?

Connect the hosted endpoint instead of running anything: add https://anyhook.net/mcp to Claude Code, claude.ai, Codex or VS Code and sign in through the browser, no key to copy. Steps for each app: https://anyhook.net/mcp.

No account yet (local mode)

No API key needed to start:

bash
claude mcp add anyhook -- npx -y anyhook-mcp

Then ask your agent to run anyhook_quickstart, it creates a free relay endpoint + API key instantly (no signup), and this MCP session auto-connects. All account tools (events, replay, apps) work immediately. The response includes a claim_url to keep the endpoint permanently; unclaimed, it expires in 7 days. It is a new endpoint, not an account you already have.

What it does

Drop this MCP server into Claude Desktop / Cursor / Claude Code and your agent can:

  • anyhook_apps_list, see every app in your AnyHook account with its inbound URL
  • anyhook_apps_create, spin up a new app from a prompt
  • anyhook_connect, give a Stripe key or GitHub token: the webhook is registered at the provider and signature-checked from the first event (the key is not stored)
  • anyhook_events, list recent events, filter by app / status
  • anyhook_inspect, pull a single event's headers, body, signature status
  • anyhook_replay, re-send a stored event to its destinations (outside the monthly quota, within a daily replay limit; an event held for quota counts as new)
  • anyhook_undelivered, list events that never reached a destination
  • anyhook_replay_failed, bulk-replay every failed event for an app
  • anyhook_mock, generate a signed Stripe / GitHub / Slack payload for local handler testing
  • anyhook_verify, verify any incoming signature against your secret
  • anyhook_providers, list every webhook provider AnyHook supports

The inbound URL an app gives you accepts webhook POSTs and also answers provider setup handshakes automatically: Meta's GET carrying hub.mode=subscribe gets its hub.challenge echoed back, even before the app is configured, so the URL can be registered in the Meta App Dashboard first and wired up after.

Two modes:

ModeWhenWhat works
remoteANYHOOK_API_KEY is setAll tools above, live against your AnyHook account
localNo API keyProvider toolkit (mock / verify / providers) + an in-memory store you can simulate events into. Useful for trying it out before signing up.

Quick start

bash
npm install -g anyhook-mcp# or run without installingnpx -y anyhook-mcp

Get an API key from https://anyhook.net/dashboard/settings. Keys start with ahk_live_.


Install in Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "anyhook": {      "command": "npx",      "args": ["-y", "anyhook-mcp"],      "env": {        "ANYHOOK_API_KEY": "ahk_live_xxxxxxxx"      }    }  }}

Restart Claude Desktop. The tools appear under the hammer icon.


Install in Cursor

Open Settings → MCP → Add new MCP server. Or edit ~/.cursor/mcp.json:

json
{  "mcpServers": {    "anyhook": {      "command": "npx",      "args": ["-y", "anyhook-mcp"],      "env": {        "ANYHOOK_API_KEY": "ahk_live_xxxxxxxx"      }    }  }}

Install in Claude Code

bash
claude mcp add anyhook -e ANYHOOK_API_KEY=ahk_live_xxxxxxxx -- npx -y anyhook-mcp

Or add the same mcpServers entry to your project's .mcp.json.


Remote endpoint (no local process)

The same server is hosted at https://anyhook.net/mcp (streamable HTTP, stateless). Claude Code, claude.ai, Codex and VS Code sign in through the browser (OAuth), no key to copy: https://anyhook.net/mcp has the steps for each. Any other client sends Authorization: Bearer ahk_live_... with a key from the dashboard:

json
{ "mcpServers": { "anyhook": { "url": "https://anyhook.net/mcp", "headers": { "Authorization": "Bearer ahk_live_..." } } } }

The endpoint has no anyhook_quickstart: that tool exists only in local mode.


Local-only mode (no account needed)

Skip the env var:

json
{  "mcpServers": {    "anyhook": {      "command": "npx",      "args": ["-y", "anyhook-mcp"]    }  }}

The agent gets anyhook_mock, anyhook_verify, anyhook_providers, anyhook_simulate, anyhook_events (against memory store), and anyhook_inspect (against memory store). Useful for "generate me a signed Stripe payment_intent.succeeded and POST it to localhost:3000" flows during local dev.


Example conversations

Triage a failing endpoint:

"Show me undelivered events for the stripe-prod app from the last hour, then replay them."

The agent calls anyhook_undelivered then anyhook_replay for each, surfacing the responses inline.

Create an app for a new integration:

"Make a new AnyHook app called replicate-video-jobs, source generic, point it at https://my-app.vercel.app/api/replicate-callback."

Calls anyhook_apps_create, returns the inbound URL you paste into Replicate.

Sanity-check a signature failure:

"Here's an inbound payload from Stripe that AnyHook is rejecting. Verify the signature manually with secret whsec_xxx."

Calls anyhook_verify with the supplied headers + body + secret, returns valid: false plus the failure reason.

Mock a webhook for local testing:

"Generate a Stripe payment_intent.succeeded event and POST it to http://localhost:3000/api/webhooks/stripe."

Calls anyhook_mock with targetUrl set; returns the request that was sent + your handler's response.


Environment variables

VarRequiredDefaultPurpose
ANYHOOK_API_KEYfor remote mode-ahk_live_* from https://anyhook.net/dashboard/settings
ANYHOOK_API_BASEnohttps://anyhook.netOverride for self-hosted AnyHook deployments

Why this is interesting

AI agents have been blind to their own webhook infrastructure. They can write the integration code, but once an event misbehaves in production they can't see it, you tell them what happened. With this MCP server, Claude / Cursor can read the actual event log, replay deliveries, debug signature failures, and even spin up new apps. It closes the loop between writing webhook code and operating it.


License

Apache-2.0 © AnyHook

來源:packages/mcp/README.md,提交 7e5b18b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Anyhook 整合