Webhooks by Wakeshift

ai.wakeshift由 wakeshift.ai 發布官方發布者v1.0.0更新於 Nov 4, 2026

A webhook URL that wakes your AI agent: every POST to it wakes the conversation watching it.

發布方自己的服務:Slackline

已驗證Streamable HTTP可網頁執行效率與工作流開發者工具

概覽

AI 產生的概覽

為 AI 代理提供一個 webhook 網址,任何 POST 都會喚醒正在監聽該網址的對話,並提供監聽、取消監聽與查看近期投遞的工具。

可以做什麼
  • 在目前對話中監聽或取消監聽某個 webhook,讓收到的投遞喚醒代理
  • 查看近期投遞紀錄與 webhook 資訊,包括目前使用的校驗網址與簽章校驗方式
  • 接收來自 GitHub、Stripe、Linear 或自建應用程式解析後的請求內容、方法、內容類型與標示寄送方的標頭
  • 依投遞 ID 或事件 ID 去重複重試,並給出一行說明發生什麼事的摘要
適用情境
適合希望代理被動回應外部事件而非輪詢的情境,例如 CI 失敗、Stripe 付款事件、Linear 議題變更或自建應用程式的通知。當對話需要被 webhook 喚醒並據此採取行動時值得加入。
執行需求
遠端 MCP 端點 try.wakeshift.ai,無需登入,連結中的代碼本身就是憑證。連結需從網站取得,7 天未使用即過期。自行架設需要 Wakeshift 應用程式金鑰、Postgres 資料庫及若干環境變數。
安裝前請注意
持有 webhook 網址的任何人都能向其投遞並喚醒代理,應將連結視為機密。投遞內容會轉送給 Wakeshift 由其發布事件;請求內容上限 64 KB,並有頻率限制。GitHub、Stripe、Linear 的簽章校驗為選用但建議啟用,更換公開網址後舊網址立即失效。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

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

README

Webhooks

A webhook URL that wakes your agent: get a link, add it to your agent (Claude Code, Codex, Cursor, Antigravity, opencode, Copilot CLI or any MCP client), ask the agent to watch, and every POST to your webhook URL (curl, Postman, GitHub, Stripe, Linear, your own app) wakes it. Wakeshift runs it at try.wakeshift.ai. Built on the TypeScript SDK, @wakeshift/sdk.

How it works

  • Stateless links. A link's code is signed with TRY_SECRET and names a random webhook ID and when it was made. The MCP URL (/t/<code>/mcp), the page (/l/<code>), the webhook URLs (/in/<token>, one token per signature check) and the signing secret are all derived from it. Nothing is stored. A link expires after 7 days without use; when it was last used is kept in the database (written at most every 5 minutes per instance). When it expires, Wakeshift is asked to forget the webhook (forgetUser with the webhook ID, which is the app's user for it): its workspace, the conversations that watched it, their subscriptions and deliveries. The sweep queues it in the database in the transaction that deletes the link's own rows, and every instance works the queue every 10 minutes, retrying a failure with backoff (a minute, doubling, at most 6 hours) until Wakeshift says it's done.
  • The SDK user is the webhook; posts are an event. webhook.received (argument: the webhook's ID; only the webhook's own SDK user, anyone with its link, may subscribe) carries what was posted: summary, a line saying what happened, then the parsed body and the headers that say who sent it. Every tool is wrapped with attached.events (the handle wake.attach returns), and takes Wakeshift's arguments through attached.inputs. watch subscribes the calling conversation with call.subscribe; unwatch ends it with call.unsubscribe. The wrapper adds one Wakeshift block to each tool's result: how the conversation is woken after a subscribe, pending messages and a Codex thread's beacon otherwise. A call that fails ends the subscription it made. A client that speaks MCP Events (ChatGPT) gets no conversation subscription: the block tells it to subscribe to webhook.received itself. A post becomes event.emit. wake.attach adds subscribe_events, unsubscribe_events and list_subscriptions.
  • MCP: Streamable HTTP with sessions, no sign-in (the code in the URL is the credential). Nothing about a session lives in an instance: initialize's client name, version and capabilities are stored under the Mcp-Session-Id, and each request builds the MCP server afresh from them on whichever instance it reaches (the SDK's transport in stateless mode; the session ID is checked here, 404 if unknown or another link's). So sessions survive restarts and need no affinity, and the client's name and capabilities (which decide how Cursor, opencode and the rest are woken, and whether a client subscribes itself) are right on every instance: the rebuilt server answers getClientVersion and getClientCapabilities from the stored initialize, and the wrapper reads them. Sessions idle for 7 days are dropped (the client initializes again). Tools: watch, unwatch, recent_posts, webhook_info.
  • Webhooks: POST, PUT or PATCH /in/<token>, any body up to 64 KB. The event's text says what happened: for GitHub (from X-GitHub-Event) GitHub workflow_run completed: failure on main (tests) in acme/api; for Stripe Stripe invoice.payment_failed: in_…, USD 49.00, open (evt_…, test mode); for Linear Linear Issue create: ENG-123 Checkout page 500s; for anything else POST to your webhook (with (empty body) if it was), since the data has the rest: the text doesn't repeat the body, so a small post's data fits on one Monitor line (480 bytes) in full. Its data is the parsed body (body, or body_base64), the method, content type, a few headers that say who sent it (including Linear-Event and Linear-Delivery; never Authorization, cookies or signatures) and, for Stripe and Linear, source (the event type and ID). Retries are one publish: by Idempotency-Key, X-GitHub-Delivery, Linear-Delivery, or a Stripe event's evt_ ID. On a GitHub, Stripe or Linear URL only the service's own ID counts (Idempotency-Key isn't signed, so a captured delivery replayed with a fresh one would wake the agent again); a Stripe URL uses only the evt_ ID from the signed body. GET explains how to post; a body more than 256 KB over the limit has its connection dropped rather than read.
  • Signature checks: the page's tabs give a URL per check, each its own token, so a checked URL can't be turned into the open one; the open URL keeps working for whoever has it, until the user replaces it (below). GitHub's X-Hub-Signature-256 and Authorization: Bearer use secrets derived per webhook and per check (try_gh_…, try_bearer_…). Stripe and Linear make their own secret: the user pastes it into the page, and it's sealed into that URL's token (AES-256-GCM with a key derived from TRY_SECRET). It's stored only in that form: the URL is kept as the webhook's checked URL (below) until the link expires. Stripe's Stripe-Signature (t=…,v1=…, HMAC-SHA256 of t.body) must be within 5 minutes; Linear's Linear-Signature (hex HMAC-SHA256 of the body) needs a webhookTimestamp within a minute.
  • A new open URL: the open tab's "Get a new URL" (POST /l/<code>/rotate) replaces the open URL. Its token then carries the webhook's open-URL generation, kept per webhook in the database (hooks.open_gen), and a post or GET to an open URL of any other generation gets 410 (replaced), on every instance at once. The webhook ID (the SDK user, so its subscriptions), the link and MCP URL, the history and the checked URLs stay as they were, and the live view gets a line saying the URL changed. Only the link's code can ask (a webhook URL is a different capability, and can't), from this site's page: a request whose Origin or Sec-Fetch-Site says another site sent it gets 403. Ten an hour per webhook (429 past that).
  • Which URL the agent hears about: watch and webhook_info give the checked URL the user last picked (a GitHub or bearer tab they opened, a Stripe or Linear URL they made, or the URL a service last posted to), and say which check it uses. It's kept for as long as the link lives.
  • Limits (counted in the database, atomically, so they hold across instances; fixed windows: the hour and the UTC day): 60 posts an hour and 500 a day for each of a webhook's URLs (429 with Retry-After), so whoever has the open URL can't use up the checked one's. Refused posts (401, 413) don't count; retries do (each is still a request to Wakeshift, so a repeated Idempotency-Key can't get round the limits). 20,000 an hour across all webhooks, 30 new links an hour per address (an IPv6 address by its /64; kept as an HMAC of the address, for the hour). TRY_PER_HOUR, TRY_PER_DAY, TRY_GLOBAL_PER_HOUR and TRY_LINKS_PER_HOUR change them, and the terms and privacy policy state the limits in use.
  • Overload: an instance takes 256 requests in flight (posts three quarters of that, so pages and tool calls keep some room) and 900 open streams (live views, MCP GET and listen streams); for one webhook, at most 20 live views and, apart, 20 agents' streams, so agents can't leave the page without one; 2 GET streams for one MCP session (a live view past that gets 429, a GET stream 405); past that, and when the database is away or out of connections, it answers 503 with Retry-After and a plain message (JSON for webhooks, JSON-RPC for MCP, a page for pages), never a 500. A link's page still comes up when the database is slow, without its history; the live view retries and says so (below). Wakeshift's own 429 or 503 on publish becomes a 503 with Retry-After for the poster.
  • The page's live view is SSE from this server (/l/<code>/live): each post (received, refused, rate limited, the start of what was posted, and how many watching conversations the publish reached), and each watch and unwatch. Lines are kept in the database (the last 50 per webhook) and reach pages on every instance by NOTIFY on the webhook's channel (try_<hook>; each instance LISTENs only for webhooks it has a page open for, and replays the recent lines whenever its connection comes back after a drop; it pings that connection every 30 seconds so a silent drop is noticed). A webhook's refused and rate-limited posts get at most 10 lines a minute per instance, so a flood of bad signatures doesn't push real posts out. The rest are counted, and once the minute is over (or the instance stops) each instance adds its count to the webhook's one line for that minute, which the page updates in place: one line a minute with the total across instances, written at most once a minute per webhook by each instance. A live view that doesn't keep up with what's written to it is dropped (EventSource reconnects). Each line goes with its seq as its SSE ID, and a live view asks for the lines after the newest it has (?after=<seq>, or Last-Event-ID when EventSource reconnects by itself), so after a gap it shows what happened meanwhile (as far as the last 50 go). When the server refuses it (429, 503), EventSource gives up; the page tries again after 2 seconds, doubling to 30 at most (randomized a little), back to 2 once connected, and at once when the page is looked at again, the network comes back or the status poll gets an answer (liveConnection in page.ts). The page shows who called watch, "sent to N watching conversations" per post, and whether an agent is connected right now and how (stream, hooks or polling): it polls /l/<code>/status every 10 seconds, which asks Wakeshift for webhook.received's status with the webhook's ID (event.status, read-only).

Run it yourself

  1. In the Wakeshift console, open Build → New app and copy its key (wst_…).

  2. Create an empty Postgres database. Webhooks creates its tables when it starts (migrations/).

  3. Build the SDK, then Webhooks, from the repository's root:

    sh
    (cd third_party/wakeshift-node && npm ci && npm run build)cd webhooks && npm ci && npm run build
  4. Copy .env.example to .env, fill it in, and run it:

    Variable
    WAKESHIFT_KEYThe app's key from step 1
    WAKESHIFT_COREWakeshift's URL (default https://app.wakeshift.ai)
    TRY_SECRETSigns links; 32 or more random bytes. Changing it ends every link
    TRY_DATABASE_URLThe database from step 2; every instance shares it
    TRY_DB_POOLConnections per instance (default 3), plus one that listens for the live view
    PUBLIC_URLYour copy's public URL (default http://localhost:$PORT)
    PORTListen port (default 8380)
    TRY_PROXY_HOPSProxies in front of it that append to X-Forwarded-For (Google's load balancer: 2); 0 uses the socket's address
    TRY_PER_HOUR, TRY_PER_DAY, TRY_GLOBAL_PER_HOUR, TRY_LINKS_PER_HOUROptional: the limits above
    sh
    set -a; . ./.env; set +anpm start
  5. Open PUBLIC_URL, get a link, and run the command its tab for your agent shows.

Testing

sh
npm run lintnpm test     # unit tests; needs WAKESHIFT_TEST_DATABASE_URL, a Postgres URL for a role that can create databases

The end-to-end and load tests run Webhooks against the Wakeshift server, so they run in Wakeshift's own repository.

Contributing

This repository is generated from Wakeshift's main repository. Pull requests are welcome: we apply them there and publish the result. See CONTRIBUTING.

來源:webhooks/README.md,提交 8774523

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Nov 4, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

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

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

其他 Wakeshift 整合