
MCP Events bridge
io.github.hookdeck由 GitHub 帳號 hookdeck 發布v0.10.0更新於 Nov 6, 2026
Turn webhooks into MCP Events that AI agents subscribe to, with Hookdeck Event Gateway.
發布方自己的服務:Events.Aero
概覽
把各服務的 webhook 轉成 MCP Events 的橋接服務,讓 AI 代理訂閱或輪詢事件,事情一發生就能行動。
- 可以做什麼
- 列出橋接服務提供的事件,並讓代理依寄件者、儲存庫等條件訂閱
- 在對話回合內輪詢事件,或在不支援 MCP Events 的用戶端於提示之間持續監聽
- 新增事件來源:Resend 收件郵件、GitHub、任一 Event Gateway 來源類型,或自建 webhook 發送端
- 建立 Event Gateway 來源、轉換與 webhook,並為每個訂閱管理一條連線
- 把橋接服務部署到 Node 主機,或在本地透過 Hookdeck CLI 執行
- 適用情境
- 當希望代理對已在使用的服務事件(例如收到一封郵件或有人新開 GitHub issue)做出反應,而不必自行輪詢這些服務時使用。適合把 ChatGPT、Claude Code、Codex、Cursor 命令列或 MCP 用戶端函式庫接到 webhook 觸發的開發者。
- 執行需求
- 需要 Node 22.12 以上版本與 npm 套件,以 npx 執行。需要 Hookdeck 帳號與專案,以及 HOOKDECK_API_KEY 和 HOOKDECK_SIGNING_SECRET。MCP 端點需要 BRIDGE_MCP_SECRET,以 Authorization bearer 標頭或網址形式送出。本機執行需要 Hookdeck CLI。來源憑證如 RESEND_API_KEY 或 GITHUB_TOKEN;ChatGPT 等用戶端還需要公開網址或通道。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Events bridge,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MCP Events bridge
Turn webhooks into MCP Events, so AI agents can act the moment something happens: an email arrives, an issue is opened, a workflow fails. Hookdeck Event Gateway receives, verifies and delivers every event.
[Services (Resend, GitHub and others) send webhooks to Hookdeck Event Gateway, which receives and verifies them, turns each into an MCP Event, and delivers it with retries to agents, such as ChatGPT, Hermes Agent and others, which subscribed through the MCP Events bridge over MCP. Claude Code polls the bridge over MCP instead.]For example, an email arrives at a Resend address, and ChatGPT, subscribed through the bridge, acts on it:
Why
MCP Events is an experimental MCP extension that lets an agent subscribe to events instead of polling for them, and ChatGPT supports it. But an agent can only subscribe to MCP servers that implement it, and almost none do yet, while nearly every service already sends webhooks.
The bridge closes that gap:
- Webhooks become MCP Events. Sources: Resend inbound email, GitHub, any of 163 Event Gateway source types (Stripe, Slack, Shopify and more), and webhooks from any HTTP sender, such as a service you've built, verified with HMAC, Standard Webhooks, Basic auth or an API key. Add others with
defineSource. - Subscribers choose what wakes them. Events have filters, such as an email's sender, or a GitHub repository and action.
- Every event verified, delivered and recorded. Event Gateway verifies each service's signatures, retries failed deliveries, drops duplicates within an hour, and keeps a record of every event and attempt.
- Stateless. Each subscription is an Event Gateway connection, so there's no database.
It's for developers who want agents (ChatGPT, Claude Code, Hermes Agent and others) to react to events from the services they already use.
Status: 0.9, an open-source project. MCP Events is experimental, and this package may change with it. We're building the same thing into Hookdeck Event Gateway, so tell us what you need. See docs/PLAN.md for what's done and what's next, and CHANGELOG.md for changes between versions. Upgrading from 0.7: see docs/UPGRADING.md.
How it works
[Services (Resend, GitHub and others) send webhooks to Hookdeck Event Gateway sources, which verify and keep them. Agents like ChatGPT and Hermes Agent (through the Hookdeck CLI) subscribe to the MCP Events bridge over MCP, and the bridge creates one Event Gateway connection per subscription on the service's source. Each connection turns a webhook into an MCP Event, filters it by the subscription's arguments, and delivers it to the agent's callback URL, signed for that subscriber. Claude Code polls the bridge over MCP instead.]- Event Gateway verifies each service's webhook signature, keeps every request, turns each one into an MCP Event, and delivers it to each subscriber, signed with the subscriber's secret, with retries.
- The bridge is the MCP server: it lists the events on offer, handles subscribe (including the spec's endpoint challenge), and manages one Event Gateway connection per subscription. Events don't pass through it.
- The Hookdeck CLI forwards MCP Events to local agents, and Event Gateway's notifications to a bridge on your laptop, so neither needs a public URL of its own.
The design, its trade-offs and how it maps to the spec are in docs/ARCHITECTURE.md.
Supported MCP clients
Clients that support MCP Events subscribe to the bridge, and receive each event as a webhook at their callback URL. Clients that don't, such as Claude Code, poll with the bridge's tools.
Versions are the ones tested against the bridge, in October and November 2026. MCP Events support is experimental in Hermes Agent and in the three libraries. Codex and Cursor's CLI were tested non-interactively, and each needs the bridge's tools allowed before it can call them: see the guide.
Set up with a coding agent
The mcp-events-bridge skill walks a coding agent (Claude Code, Cursor, Codex and others that support Agent Skills) through setup, adding sources, connecting an agent and troubleshooting, with a success signal for each step:
Then ask the agent to set up the bridge. It asks you for the credentials. The skill is also in the npm package, under skills/.
Quick start
You need:
- Node 22.12 or later.
- A Hookdeck account and a project for the bridge. From the project's settings (Secrets): the API key and the signing secret.
- The Hookdeck CLI, for running the bridge locally (and for
npm run e2e). - At least one source: a Resend or GitHub account, or any service that sends webhooks, including your own.
-
Create a project and install the bridge:
-
Choose sources in
bridge.config.ts:Keep only the sources you use, or add others, such as Stripe or your own service: see Sources.
-
Add credentials to
.env: -
Create the Event Gateway resources and the webhooks:
The first run generates an MCP secret: add it to
.envasBRIDGE_MCP_SECRET. Setup is safe to re-run, and updates the webhooks when you add sources or change events or repositories. A Resend or GitHub webhook deleted at the service is registered again. Removing a source or a repository deletes nothing: delete its webhook (and its Event Gateway source) yourself. Upgrading from 0.7, setup offers to migrate your subscriptions: seedocs/UPGRADING.md. -
Run the bridge:
Locally,
servechecks that setup has run, and startshookdeck listenfor Event Gateway's notifications (which tell the bridge about failing callbacks) and for local agents; it restartslistenif it stops. Events don't pass through the bridge: Event Gateway delivers each one to its subscribers, so none are lost while the bridge is stopped. Once an agent has subscribed, send an email to your Resend address, or open an issue, and its delivery shows under the subscription's connection,mcp-sub-<id>, in the Event Gateway dashboard. -
Connect an agent: see Connect ChatGPT, Connect Claude Code, or Supported MCP clients for the others. ChatGPT has to reach the bridge's MCP endpoint, so deploy the bridge, or expose your local port with a tunnel such as
cloudflared tunnel --url http://127.0.0.1:8080and usehttps://<tunnel host>/mcp/<BRIDGE_MCP_SECRET>. Events don't need the tunnel: Event Gateway delivers them to ChatGPT directly.
Connect ChatGPT
With Developer mode on (ChatGPT Plus or above), go to Plugins, choose Add > Create MCP App, paste https://<your bridge>/mcp/<BRIDGE_MCP_SECRET>, and choose No Authentication. ChatGPT can't send an Authorization header (it offers only OAuth or no authentication), so it takes the secret in the URL. Then, in a Work chat, ask to be told about new events, for example emails from a particular sender. ChatGPT subscribes and sets up a monitoring task:
When an event arrives, the task runs with it, as in the screenshot at the top. A chat that's open shows it on its own, about a minute after the event arrives, even though ChatGPT answers the delivery within about 2 seconds (seen on 28 Oct, in an open, focused tab); if it doesn't appear, reload the page. Pausing the task unsubscribes it from the bridge, and resuming it subscribes again from now, with a new callback URL and no cursor, so events that arrive while it's paused aren't delivered or replayed (seen on 27 Oct). They're still in Event Gateway, so ChatGPT can list them with list_events.
ChatGPT keeps the list of events it can subscribe to from when you added the plugin. After you upgrade the bridge or add a source, refresh the plugin in Plugins, or ChatGPT can't subscribe to the new or renamed events (it may still list them, since that call goes to the bridge). Then ask it to subscribe again.
That URL is a credential: anyone with it can use the bridge. Keep it private (see Security and limitations).
Connect Claude Code
Claude Code doesn't support MCP Events yet, so it polls. Install the plugin, which asks for the bridge's MCP endpoint (https://<bridge>/mcp) and its secret (BRIDGE_MCP_SECRET), sent as an Authorization: Bearer header, and keeps both in secure storage:
If you skip them (Esc), the plugin still installs. Set them later with /plugin configure mcp-events-bridge@hookdeck, then start a new session. An endpoint with the secret in it (/mcp/<BRIDGE_MCP_SECRET>), set before the secret field existed, still works.
Then, in any project, ask Claude to watch for events your bridge offers ("what events can the bridge give me?" lists them). For example, with the GitHub source set up for a repository, "watch <owner>/<repo> for new issues and comments"; with Resend, "tell me when an email arrives". The plugin keeps a watch list per project and runs watch for the whole session, so each event wakes Claude, between prompts too, and a new session first catches up on what it missed (up to 24 hours). Webhooks arrive at the bridge's Event Gateway sources and the plugin polls the bridge, so it works with a local bridge, which needs no public URL of its own.
Without the plugin, add the bridge as an MCP server and ask Claude to wait for events with the poll tools (see Polling). The Claude Code guide has both.
Sources
A source is where events come from: a service that sends webhooks. Each source in bridge.config.ts has an id (by default its type: resend, github, stripe), and its events are offered over MCP as {id}.{event}, where event is the service's own name for it: resend.email.received, github.issues, stripe.invoice.paid. So events/list says which source each event comes from, and two sources can offer the same kind of event (two Resend accounts, two trading servers) under different ids. Renaming an id renames its events, so agents need to subscribe again.
Resend
Inbound email. Every Resend account has a receiving domain (<id>.resend.app; Emails > Receiving), so no custom domain is needed.
- Options:
resend({ apiKey }). The API key needs permission to create webhooks. - Event:
email.received(offered asresend.email.received), with the sender, recipients, subject and Resend's email id. Read the full email with Resend's own API. - Filters:
from(recommended: it limits who can wake the agent) andto.
GitHub
One event per GitHub webhook type: issues, pull_request, push, and so on (26 types), offered as github.issues, github.pull_request, github.push.
- Events: by default issues, issue comments, pull requests, reviews, pushes, releases and workflow runs. Choose with GitHub's names,
events: ['issues', 'push', ...], or['*']for all. - Filters:
repository,actions(for example["opened"]) andsender. - Summary: repository, action, sender, title, number and URL for every type, plus a few fields for the common ones (labels, branches, merged, ref, commit count, workflow conclusion). Payloads aren't passed through; read details with GitHub's own tools.
Two ways to connect repositories:
Services with an Event Gateway source type
Stripe, Slack, Shopify, Twilio, Linear, Clerk and 157 more: source({ type }) takes any Event Gateway source type that's verified with credentials you give it, and Event Gateway checks the service's own signatures, including those that sign a timestamp with the body, as Stripe and Slack do. For example, Stripe:
- Credentials: most types take
secret, the service's webhook signing secret. Others take their own fields:source({ type: 'postmark', username, password, ... }),source({ type: 'twitter', apiKey, ... }). The TypeScript types list each type's fields, and the config won't compile with a missing or unknown one. - Events: you name the events and say where the service puts the event type and id, with the same options as a webhook source (below). Presets that fill these in per service are planned.
- Not offered yet: source types with a choice of verification methods (GitLab, Grafana, Azure Event Grid, SendGrid Inbound Parse, Ordinal) and those configured without credentials (AWS SNS and a few others). Use a webhook source, or your own definition, for those.
- Registration handshakes: some services check a URL when you register it. Slack's Events API sends a
url_verificationchallenge, and Event Gateway'sslacksource answers it itself, so registering the URL in Slack needs no code. Awebhooksource answers every request with Event Gateway's standard response, not the challenge. Other services' handshakes haven't been checked. - Tested on 26 Oct 2026 with requests signed or authenticated as each service does (no accounts at the services): Stripe and Slack (a signature over a timestamp and the body) and Postmark (Basic auth). Correct ones reached a subscriber; wrong ones were rejected by Event Gateway (
VERIFICATION_FAILED). The other source types use the same path, but haven't each been tested.
Any HTTP sender: webhook sources
source({ type: 'webhook' }) takes webhooks from any HTTP sender: a service you run yourself, or one without an Event Gateway source type. For example, instead of an agent polling a trading server's orders every bar to see whether an order filled, the server sends a webhook when it fills, and the agent subscribes to fills.order.filled for the symbols it trades:
The server signs each request's raw body with HMAC-SHA256 and the shared secret, hex-encoded in x-signature, and POSTs JSON such as { "symbol": "AAPL", "side": "buy", "quantity": 100, "price": 187.5, "filled_at": "2026-10-07T14:30:00Z" }.
verification(required forwebhook): Event Gateway verifies every request and rejects the rest, so they reach no subscriber. One of:{ type: 'hmac', algorithm, encoding, header, secret }: an HMAC of the raw body in a header.algorithmissha1,sha256orsha512;encodingishex,base64orbase64url. Asha256=prefix on the value is accepted. The key is the secret string as written (UTF-8), not decoded from hex or base64.{ type: 'standard-webhooks', secret }: Standard Webhooks signatures, usually with awhsec_...secret.{ type: 'basic-auth', username, password }or{ type: 'api-key', header, key }: a shared credential sent with every request. Prefer a signature: Event Gateway keeps request headers, so these credentials are stored with each request, and anyone who sees one can replay it. There's no unverified option: anyone with the URL could otherwise wake your agents with whatever they send.
These options work for every source(), whatever its type:
events: the sender's event names (offered as{id}.{name}, e.g.fills.order.filled), as a list or with a description each. Keep a description under about 400 characters: ChatGPT has been reported to leave out events with longer ones, andsetupandservewarn about them. With more than one,eventTypesays where the sender names the event,{ header }or{ field }(a dot path into the body), and each event'svalueis the sender's name for it (default: the event name). Requests for other values are ignored.eventId: the sender's id for an event, from{ header }or{ field }. It becomes the MCP event'seventId(and itswebhook-id), and Event Gateway drops repeats within an hour. Default: a hash of the JSON body (the first 32 hex characters of its SHA-256), so a sender's retry with the same body is dropped as a repeat, and two different events with identical bodies count as one. Set it if your sender has an id.occurredAt: a body field with an ISO 8601 or Unix time. Default: when Event Gateway received the request (for a live delivery, when Event Gateway built the event from it, moments later).- Data: the JSON body as sent, or only the top-level fields in
fields: [...]. Bodies must be JSON (anything else is skipped, and stays in Event Gateway), and the event at most 256 KiB. filters: top-level body fields subscribers can filter on, by exact match of value and type:{ "quantity": 100 }matches the number 100, not the string"100".
Adding a source from the command line
Credentials are env() references. A service usually gives you its secret only after you register the URL, so the bridge can create the source first:
-
Create the source and the config entry:
It creates the Event Gateway source (
bridge-fills,bridge-stripe) and prints its URL, adds the credential variables to.env(FILLS_WEBHOOK_SECRET=,STRIPE_WEBHOOK_SECRET=: empty, and only if.envdoesn't have them), and prints thesource({...})entry to paste intosources.--write-configadds the entry tobridge.config.tsitself (creating the file if there isn't one), or prints it if the file isn't a shape it can edit safely (for example sources built conditionally). For--type webhook,--verificationchooseshmac(the default;--algorithm,--encodingand--headerset the rest),standard-webhooks,basic-authorapi-key;sources add --helplists every option. Re-running it reuses the source and adds nothing twice. -
Register the URL with the sender, and copy the secret it gives you (or, for your own server, generate one with
openssl rand -hex 32and give it to the server). -
Put the secret in
.env:FILLS_WEBHOOK_SECRET=.... -
Run
npx mcp-events-bridge setup. It sets the secret on the source. A new or changed secret can take up to about a minute to take effect at Event Gateway, which rejects requests signed with it until then.
Until the secret is set, the source verifies nothing, so serve refuses to start and no agent can subscribe to its events. Requests that arrive meanwhile are kept in Event Gateway. setup still sets up everything else, then exits with an error naming the variable (so a deploy script or CI notices).
Your own source definition
When the options above aren't enough (a payload that needs summarizing, filters on nested fields, registering the webhook through the service's API), write a defineSource({...}) definition: the Event Gateway source type (or a WEBHOOK source with the verification config in sourceConfig), a runtime that recognizes and summarizes each event, each event's subscribe filter, and optionally how to register the webhook. The runtime runs inside Event Gateway's transformation as well as in the bridge, so it must be self-contained: no imports, no API calls. See "Adding a source" and the built-in Resend and GitHub sources, and source().
Removed in 0.8.0
Sources were called providers before 0.6.0, and the old names were deprecated aliases until 0.8.0, which removes them: providers in the config (now sources), webhook() (now source({ type: 'webhook', ... })), defineProvider (now defineSource), @hookdeck/mcp-events-bridge/providers (now /sources), providers add webhook (now sources add), and the list_providers tool (now list_sources). providers in the config and providers add fail with a message naming the replacement; the removed exports no longer import. See docs/UPGRADING.md.
Deploy to Fly.io
Any host that runs Node works; Fly.io is the reference. The bridge needs no volume, since Event Gateway is the store.
Add a Dockerfile to your project:
Then:
On Fly.io, the bridge receives Event Gateway's notifications over HTTP at its public URL instead of through the Hookdeck CLI, using the fly resources that setup created. Only setup needs GITHUB_TOKEN, so it doesn't have to be a Fly secret; in GitHub's manual mode, set GITHUB_WEBHOOK_SECRET as a Fly secret too, and likewise each source()'s credentials. The Dockerfile copies only bridge.config.ts: copy any other files your config imports, such as your own source definitions.
When an upgrade needs a migration (from 0.7 to 0.8, for example), serve doesn't start without a terminal to ask in. Run setup with the deployment's settings (as above) before fly deploy, or end the Dockerfile with CMD ["npx", "mcp-events-bridge", "serve", "--migrate"] to migrate without asking (see docs/UPGRADING.md).
Use a separate Hookdeck project for each environment you want isolated: deployments in one project share the sources and the subscriptions. An optional namespace for sharing a project is proposed in #13.
What setup creates
In the Event Gateway dashboard:
bridge-<source id>(herebridge-resend) is the source's Event Gateway source, the URL its webhooks are registered with. Setup also writes its transformation,bridge-<source id>-envelope, which turns each request into an MCP Event; every subscription to the source's events uses it.mcp-sub-<id>is one subscription: a connection on the source with the transformation, a filter for the event name and the subscription's arguments, dedupe onwebhook-idand retries, and a destination at the subscriber's callback URL that signs every attempt with the subscriber's secret. The bridge creates it when an agent subscribes, and deletes it when the subscription ends.bridge-hookdeck-notificationsreceives Event Gateway's issue notifications and forwards them to each deployment, so the bridge hears about failing callbacks and reports them to subscribers.bridge-replay(created by the first replay) is a Publish API source: while a subscription made with a cursor catches up, a connection from it,bridge-replay-<subscription id>, delivers the replayed events to the subscription's destination, and the bridge deletes it when they're delivered.
Locally (CLI inbound), setup also logs the Hookdeck CLI in to the bridge's project in .hookdeck/config.toml (gitignore it: it holds a key), so hookdeck commands run in the bridge's directory use that project rather than your global login.
Configuration
The bridge
Every deployment needs these, whichever sources it uses.
defineConfig also takes inbound, publicUrl, port and hookdeck directly, and subscriptions for subscription lifetimes. Run npx mcp-events-bridge for the commands and flags.
Sources
Set only what the sources in your bridge.config.ts need. The names are the ones the examples pass to env(); use your own if you prefer.
Resend
GitHub
source()
Each source()'s credentials, named as its env() references name them. sources add <id> uses these names:
<ID> is the source id, upper-cased, with other characters as _ (fills gives FILLS_WEBHOOK_SECRET). Needed wherever the bridge runs: setup sets them on the Event Gateway source, and serve refuses to start without them.
MCP surface
events/list,events/subscribe,events/unsubscribe, with webhook delivery, andevents/poll, for poll delivery. Event names are{id}.{event}(see Sources).poll_events(name, arguments?, cursor?, maxAgeMs?, maxEvents?)andwait_for_event(name, arguments?, cursor?, timeoutMs?): the same polling as tools, for MCP clients without MCP Events support (see Polling).get_event(name, eventId)andlist_events(name?, since?, limit?): events that happened, read from Event Gateway (events/listis the catalog of events you can subscribe to).get_eventtakes the event's name as well as its id, since an id is the service's own and two sources can share one.list_sources(): configured sources, each with its type, its event types (events: each one'sname,descriptionandinputSchema, the arguments it takes, asevents/listdescribes them, for clients that can't callevents/list), and its webhook subscriptions (subscriptions; poll subscriptions are held by the client, so they aren't counted).create_callback_url(agent, name, port?, path?, secret?)andlist_callback_urls(agent): public callback URLs for agents on the same machine as a local bridge (see Local agents). Calling again with the sameagent,nameand secret returns the existing URL; a different secret, port or path for that name is an error. Not offered by a deployed bridge.- Every tool is annotated
readOnlyHint: trueexceptcreate_callback_url, which isidempotentHint: trueanddestructiveHint: false.list_sourcesandlist_callback_urlsare alsoopenWorldHint: false: they answer from the bridge's own state.
Polling
For MCP clients that can't receive webhooks, or don't support MCP Events yet. A client that implements MCP Events poll mode calls events/poll; any other MCP client, such as Claude Code, Codex or Cursor, calls the poll_events and wait_for_event tools, which take the same arguments and cursor:
Any MCP client that can send a header connects the same way: the /mcp endpoint, with BRIDGE_MCP_SECRET as a bearer token.
Then ask the agent to wait for an event (Claude Code: see the guide; Codex and Cursor's CLI: see the poll clients guide), for example "wait for fills.order.filled for AAPL and tell me about each fill". It calls wait_for_event, which returns as soon as there are events (or after up to 50 seconds with none), and calls it again with the cursor it returned.
- No public URL of your own: services send webhooks to the public URL of the bridge's Event Gateway source, and each poll reads them from Event Gateway, so it works from a laptop or behind a NAT, with a deployed or a local bridge.
- Start from now: a first call without a cursor returns no events, only a cursor. For events that already happened, use
list_events. - At least once: events can repeat, so dedupe by
eventId.truncated: truemeans events were skipped (maxAgeMs, or older than Event Gateway keeps). - Replay: every delivery and every subscribe response includes a
cursor, a position in Event Gateway's history of the source's requests. Subscribe again with the latest one, after an unsubscribe, an expiry or downtime, and the bridge delivers what you missed, alongside live events, up to Event Gateway's retention (3 days on the Developer plan). Refreshing a live subscription with it changes nothing. Poll mode uses the same cursors. - Latency: an event reaches a poller about 2 seconds after Event Gateway receives it, sometimes up to 15. Polls share one listing of Event Gateway's requests, at most every 2 seconds, so the API's rate limit (240 requests a minute per key) is shared, however many agents poll, as long as each polls at the
nextPollMsit's given (wait_for_eventdoes). When the limit runs low,nextPollMsgrows to 30 seconds.
In the background: watch
mcp-events-bridge watch polls a running bridge from now on and prints each event on its own line, as JSON ({ eventId, name, timestamp, data }), until stopped:
Run it under an agent that wakes on a command's output, and the agent hears about events while it's idle or busy with something else. Here Claude Code runs watch with its Monitor tool, answers another question, then reports an issue opening, two comments and the issue closing, each as it happens, with no prompt:
In Claude Code, install the plugin, which runs watch for the whole session and lets you say "watch <owner>/<repo> for new issues" (see the guide):
watch also follows a watch list file that changes while it runs (--list, edited with mcp-events-bridge watches add|remove|list), and resumes where it left off. It reads the MCP URL from --url or BRIDGE_MCP_URL, else uses BRIDGE_PUBLIC_URL (or the local port) plus /mcp; to a URL ending /mcp it sends BRIDGE_MCP_SECRET as Authorization: Bearer. It retries when the bridge can't be reached. watch --help lists the options.
Local agents
An agent on a laptop has no public URL to receive webhooks on. Run the bridge on the same machine, in its own Hookdeck project, and it gives the agent public callback URLs, through Event Gateway and the Hookdeck CLI:
- Create a callback URL with the
create_callback_urltool, ornpx mcp-events-bridge callback-url createfrom the bridge's directory: youragentname, anamefor the URL, your localport(default 3000) andpath(default/events), and thesecretyou'll subscribe with. Your first URL sets the port and path, and the rest share them. - Subscribe with
events/subscribe, using the URL and that secret. Event Gateway answers the challenge. Deliveries arrive athttp://localhost:<port><path>, signed with your secret; route them byX-MCP-Subscription-Id.
That's all the agent does. The bridge runs hookdeck listen for your port, and restarts it to cover each new URL. Deliveries missed while listen was down (the laptop slept, or during a restart) wait in Event Gateway, and the bridge retries them when it reconnects: Event Gateway signs each retry afresh, so standard verification (including its 5-minute window) passes. Delivery is at least once: dedupe by webhook-id.
A callback URL with a secret accepts only deliveries signed with that secret, so it holds one secret: to rotate, create a new URL and subscribe with it. The command line reads the secret from an environment variable, so it stays out of your shell history:
Pass-through callback URLs. If your agent uses a different secret for each subscription under one base URL plus a path (Hermes Agent, and the AI SDK, Mastra and TanStack AI libraries do), create one callback URL with no secret and path /, and use it as the base: the URL covers the paths under it. Event Gateway can hold only one secret on a source, so a URL without one is pass-through: Event Gateway neither answers the challenge nor verifies deliveries, the bridge skips the challenge for it (it created the URL for this agent) and logs a warning, and your receiver must verify every delivery's signature, as the spec asks receivers to.
A URL that no subscription has used for an hour is deleted. An agent name is a label, not an identity: any client of the bridge's owner can use it.
What an agent's receiver has to do (signatures, dedupe, missed deliveries) is in skills/mcp-events-bridge/references/receiving-deliveries.md. npm run e2e tests this path with a mock agent; see docs/PLAN.md.
Hermes Agent (experimental)
Hermes Agent v0.22.5 and later work with a local bridge through a pass-through callback URL: Hermes subscribes, with your approval, and each event starts an agent run. MCP Events is experimental in Hermes too, and Hermes supports webhook delivery only.
skills/mcp-events-bridge/references/hermes-agent.md covers installing Hermes with what it needs, the callback URL, Hermes's configuration, subscribing and checking a delivery. The bridge is an MCP server in Hermes's config.yaml with events: true, and its secret goes in an Authorization: Bearer header that reads it from Hermes's .env, so the secret stays out of the model's context and Hermes's other files.
MCP client libraries: Vercel AI SDK, Mastra, TanStack AI
Three TypeScript MCP client libraries have experimental MCP Events support, and each works with the bridge (tested on 0.8.0 on 28 Oct 2026, with a local bridge through a pass-through callback URL, and on 0.7 with a deployed bridge's /mcp endpoint):
skills/mcp-events-bridge/references/library-clients.md has the code for each: the bearer header, the callback URL (your own route, or a path under a pass-through callback URL from a local bridge), and the receiver.
Security and limitations
- The MCP secret is a credential.
BRIDGE_MCP_SECRETauthenticates one owner, sent asAuthorization: Bearerto/mcp, or in the URL (/mcp/<BRIDGE_MCP_SECRET>) by clients that can only take a URL, such as ChatGPT. Prefer the header where the client supports it: a URL is easily logged or saved in a client's files, a header much less so. A bridge no ChatGPT connects to can turn the URL form off (BRIDGE_MCP_SECRET_URL=false). The secret is redacted from the bridge's logs and can be rotated by changingBRIDGE_MCP_SECRET. OAuth is planned, for ChatGPT without a secret in the URL. - The Claude Code plugin keeps a copy of the endpoint and secret on disk. Claude Code keeps them in secure storage, but plugin monitors can't read that, so a session-start hook writes them to
~/.claude/plugins/data/mcp-events-bridge-hookdeck/(mcp-urlandmcp-secret), readable only by you. Uninstalling the plugin deletes that directory. - Every event is verified. Event Gateway verifies each service's own signature, and sources have no unverified option. The bridge's own inbound route, for Event Gateway's notifications, accepts only requests Event Gateway signed.
- Each delivery is signed for its subscriber. Event Gateway signs every attempt, retries included, with the subscriber's secret, which lives only in the subscription's Event Gateway destination. A refresh with a new secret replaces it at once: there's no window in which both are signed with (Event Gateway destinations take one key).
- A pass-through callback URL verifies nothing. Anyone who learns one can post to the agent's port through it, so the agent must check every delivery's signature (standard libraries do). A callback URL with a secret accepts only deliveries signed with it.
- Event content is data, not instructions. An email or issue can say anything. Filters narrow what triggers an agent: GitHub's
senderis the authenticated user, but an email'sfromcan be forged, so don't rely on it alone. - Webhook and poll delivery. Push (
events/stream) may come later if clients need it. Local agents receive webhooks through the Hookdeck CLI (above). Poll mode misses a request that takes more than 60 seconds to appear in Event Gateway's request listing (it took up to 15 when measured).
Troubleshooting
Development
npm run e2e checks the whole path against real services. It starts a bridge and hookdeck listen, subscribes test subscribers whose callbacks are Event Gateway MCP Events sources (they answer the spec's challenge; hookdeck listen forwards deliveries), sends real email through Resend, and checks delivery, filters, get_event and unsubscribe. E2E_SOURCE=webhook drives the same checks with signed fills to a webhook source instead of emails, so it sends no email and uses no Resend quota (needs FILLS_WEBHOOK_SECRET, as below). E2E_GITHUB=1 adds a real GitHub push; E2E_LOCAL=1 adds a mock local agent receiving through callback URLs from the bridge, with the bridge running hookdeck listen and retrying what the agent missed; E2E_WEBHOOK=1 adds a webhook source, with the script as a trading server sending signed and wrongly signed fills (needs FILLS_WEBHOOK_SECRET, which enables the fills instance in this repo's bridge.config.ts, and setup run with it); E2E_EXTENDED=1 adds retries, duplicates, a 410 and failing callbacks (about 10 minutes; the status-code subscribers use a cloudflared tunnel, since an MCP Events source acknowledges deliveries itself); E2E_BRIDGE_URL=https://... runs against a deployed bridge.
Issues and pull requests are welcome. AGENTS.md has the project's conventions, for people and coding agents alike.
Releases are published to npm by GitHub Actions when a maintainer creates a GitHub Release, following the release skill.
License
來源:README.md,提交 d572e75
工具
0版本歷史
2- v0.10.0最新Nov 6, 2026
- v0.9.0Nov 5, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Events 整合
Events.Aero
aero.events官方發布者
一個遠端唯讀 MCP 伺服器,讓助理在 Events.Aero 上搜尋與查詢航空活動,例如航展、飛行聚會和工作坊。

AOA: venues, tables and events in Ukraine
ua.com.aoa官方發布者
AOA 讓助理尋找烏克蘭的咖啡廳、酒吧、共同工作空間與活動,查詢空桌位、開啟訂位卡片並報名活動。
CRE Events: Commercial Real Estate Conference Calendar
events.cre官方發布者
CRE Events: Commercial Real Estate Conference Calendar 的託管 MCP 服務,由 cre.events 發布;無需登入;Streamable HTTP;6 個工具。
Presso Events
由 GitHub 帳號 PressoNetwork 發布
Presso Events 的遠端 MCP 伺服器,讓助理建立售票活動、透過 Stripe 售票並辦理報到。

Luma Events Scraper (Apify) - lu.ma events by city, category or calendar
由 GitHub 帳號 datadmon 發布
託管於 Apify 的 MCP 伺服器,依城市、類別、關鍵字或行事曆抓取 lu.ma 活動,並以結構化 JSON 回傳。