AnyHook
v0.7.1A webhook inbox for agents: one call returns a live URL.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
anyhook_mock Mock a webhook
Generate a webhook request with a valid signature for Stripe, GitHub, or Slack. If targetUrl is provided, the request is POSTed there and the response is returned.
| Parameter | Type | Description |
|---|---|---|
event * | string | Event name (e.g. 'payment_intent.succeeded' for Stripe). |
provider * | string | Webhook provider to simulate. |
data | object | Optional fields to deep-merge into the fixture. |
secret | string | Signing secret. Falls back to a deterministic default per provider. |
targetUrl | string | If set, POST the generated request to this URL and return the response. |
anyhook_verify Verify a webhook signature
Verify a webhook signature against a secret, for every source the AnyHook edge verifies, including stripe, github, shopify, slack, line, discord, linear, vercel, paddle, hubspot, paypal and xero.
| Parameter | Type | Description |
|---|---|---|
body * | string | Raw request body. |
headers * | object | Request headers as a flat object. |
provider * | string | Provider name (e.g. 'stripe', 'github', 'slack'). |
secret * | string | Signing secret to verify against. |
requestUrl | string | Original request URL (required for Twilio/HubSpot). Defaults to a placeholder. |
anyhook_providers List the providers anyhook_mock can simulate
List webhook providers AnyHook can mock, along with the event types available for each.
anyhook_quickstart Create a free seven-day webhook inbox
Create a hosted webhook inbox without signing up. The inbound URL keeps receiving when this chat or MCP process closes. Returns inbound_url, a private api_key to reconnect, and the owner's private claim_url to keep the URL beyond 7 days. This process connects immediately. Read deliveries with anyhook_events and anyhook_inspect.
| Parameter | Type | Description |
|---|---|---|
destination_url | string | Optional forwarding destination for the new endpoint. |
source | string | Optional provider name (stripe, github, shopify, ...). Leave it out to accept any sender: naming one makes the edge refuse (401) requests without that provider's signature header, curl tests included. |
anyhook_apps_list List your AnyHook apps
List apps in your AnyHook account with inbound URLs, sources, and destination URLs. With isActive false, an app's inbound URL answers setup handshakes but acknowledges and discards event POSTs (202, reason app_inactive) instead of relaying them. Destination signing secrets are redacted to has_signing_secret plus a 4-char hint; a new secret in plaintext comes only from rotating it. An app whose slug was changed lists its former URLs under legacyInboundUrls; those still route to it.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_inbox Get this app's email inbox address
Every AnyHook app is also an email inbox: mail sent to {user}.{app}@anyhook.net becomes an event (type email.received) you can read with anyhook_events. Returns the address and webhook URL for one of your apps.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
app | string | App slug (from anyhook_apps_list). Defaults to your first app. |
anyhook_apps_create Create an app with a hosted webhook URL
Create a hosted webhook inbox in your connected account. Give the sender the returned inbound URL. Omit destinations to store deliveries for inspection. The URL keeps receiving between sessions. After reconnecting the same account, anyhook_events lists deliveries for the app slug and anyhook_inspect reads a payload.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable app name. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
destinations | array | Destination URLs that should receive forwarded events. |
source | string | Optional provider name (stripe, github, shopify, ...). Leave it out to accept any sender: naming one makes the edge refuse (401) requests without that provider's signature header, curl tests included. |
anyhook_destination_add Forward an app's events to a URL
Add a destination to an existing app: new events are forwarded to this URL, with retries, within about a minute, and the app's other destinations stay as they are. Adding a URL the app already has changes nothing. The signing secret for the AnyHook-Signature header is never returned here: the user gets it in the dashboard (the result says where).
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | The app whose events should be forwarded. |
url * | string | Public https URL that receives each event as a POST. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_connect Connect Stripe or GitHub through the dashboard
Hand the user the page that wires Stripe or GitHub to an app: they paste a provider key there, and AnyHook registers the app's inbound URL as a webhook at the provider, saves the signing secret it yields, and turns on signature verification at the edge. The key goes from the user to AnyHook, never through this conversation, and is not stored. Without appSlug a new app is created for the provider first. GitHub sends a signed ping once connected, so the first event appears within seconds (anyhook_events). Until the app has a destination (anyhook_destination_add), events are received and logged b…
| Parameter | Type | Description |
|---|---|---|
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
appSlug | string | Connect this existing app. Omit to create a new app for the provider. |
provider | string | The provider to connect. Names the new app when appSlug is left out; Stripe if omitted. |
anyhook_replay Replay an event
Re-send a stored event to its destinations. Replays sit outside the monthly event quota but within a daily replay limit per plan and the monthly compute allowance (anyhook_usage), and replaying an event that was held for quota bills it as a new event. The destination does run its handler again: a receiver that is not idempotent will process the event twice while debugging.
| Parameter | Type | Description |
|---|---|---|
id * | string | Event ID to replay. Replay does not consume event quota; it is charged to the compute allowance. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_undelivered List undelivered events for an app
Events for the given app that have not reached a destination: failed, held (circuit_open, quota_exceeded), still retrying, or logged while anyhook-mcp listen was stopped. An app with no destination has none: its events are logged, not forwarded.
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
limit | integer |
anyhook_replay_failed Bulk-replay an app's failed events
Re-send an app's failed events after the destination is fixed, oldest first: by default those received in the last 24 hours, at most 50 per call (since and limit change both; limit goes up to 100). Events held by an open circuit are included. An event replayed once is not selected again, so a second call continues with the rest. The result lists what was replayed, what was skipped and why, and more: true while failed events are still waiting. Replays count against the plan's daily replay limit.
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | The app whose failed events to replay. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
limit | integer | Most events to replay in this call, 1 to 100. Default 50. |
since | string | Only events received after this ISO 8601 time. Default: 24 hours ago. |
anyhook_code_get Read an app's code handler
The code that runs on this app's events: its source, the names of its secrets (never the values), whether events are reaching it, and runs used this month against the plan's limit.
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | The app whose code handler to read. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_code_deploy Deploy code that runs on an app's events
Save a handler that runs on every event this app receives, in an isolated sandbox, with AnyHook's retries and replay around it: no server of your own. Each run's console output and return value are stored as that delivery's response (anyhook_inspect shows them). It can also run on a cron schedule. Pro and Scale; runs are capped per month with no overage, retries, test runs and schedule firings each count, and each run and package install is charged to the monthly compute allowance (anyhook_usage shows both). anyhook_code_test runs it on a stored event. Secrets (env.NAME) are set by the user on…
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | The app whose events the code runs on. |
code * | string | An ES module, run in a sandboxed Node.js on every event this app receives. Either `export default async function (event, { env }) {}` (event: { method, headers, body, raw_body, delivery_id, attempt };… |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
enabled | boolean | Whether events run the code. false saves it switched off, so it runs only through anyhook_code_test. Omit: a first deploy goes live and later deploys keep the current state. If another system still ha… |
schedule | string | null | Also run on a cron schedule: five fields, UTC unless prefixed CRON_TZ=Area/City, e.g. "*/15 * * * *". Each firing arrives as an anyhook.schedule event and counts as a run. null removes it; omit to kee… |
anyhook_code_test Run an app's code on a stored event
Run the saved handler now and return its logs, return value and duration: on a stored event (the latest when event_id is omitted) or on a body you give. Counts as a run. Nothing is delivered, but whatever the code itself sends does happen.
| Parameter | Type | Description |
|---|---|---|
appSlug * | string | |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
body | object | Run on this JSON body instead of a stored event. |
event_id | string | Run on this stored event. Omit for the app's latest event. |
anyhook_usage Show plan limits and usage
What the plan allows and what this account has used of each: events this month (per delivery, large events count per 64 KB), overage, the compute allowance and what used it (retries, replays, waiting on slow destinations, code runs, builds, schedules), API calls today (each tool call that reads or changes the account counts one), code runs and package snapshots, with when each resets. It says how much is left when something answers with a limit, before bulk work such as replay_failed, or when the user asks what they are using.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_events Read recent webhook inbox events
List webhook events, most recent first: id, app, type, status, attempt, destination status code, latency, timestamp. Summaries only, no request headers or body; anyhook_inspect reads one event's payload by the id from here. Uses your AnyHook account when connected, otherwise the local in-memory store. Shows what arrived in your webhook inbox while away and which deliveries need attention. To catch up across sessions, use since and page with nextCursor until null. Advance your saved time after reading all pages.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
appSlug | string | Filter to a specific app slug (account mode). |
cursor | string | For the next page of older events, pass nextCursor from the previous page and keep the same filters. |
limit | integer | |
since | string | Include events received at or after this UTC timestamp. When resuming, overlap the last read time and deduplicate by event id. |
source | string | Filter by provider source (local mode). |
status | string | Filter by status. Account mode: queued|success|retrying|failed|rejected|circuit_open|quota_exceeded. Local mode: received|forwarded|failed|retrying. |
anyhook_inspect Inspect a specific event
Full detail for one event by id, including the inbound headers and body that anyhook_events omits, plus the destination's response. Payloads can be large and often contain personal data, so it reads one event at a time, for when the body is needed. Account or local store.
| Parameter | Type | Description |
|---|---|---|
id * | string | Event ID returned by anyhook_events. |
api_key | string | Legacy field, ignored. Connect with ANYHOOK_API_KEY in the stdio client configuration. |
anyhook_simulate Simulate an incoming webhook (local only)
Generate a mocked webhook AND insert it into the local memory store, so list/inspect flows can be exercised without a real provider. Not available in remote mode, where a real inbound URL takes the place of the store.
| Parameter | Type | Description |
|---|---|---|
event * | string | |
provider * | string | |
data | object | |
secret | string |