Labsco
ozers logo

HookSense

โ˜… 1

from ozers

Webhook & callback layer for AI agents โ€” create a callback URL, wait_for_callback instead of polling, and verify signatures over MCP.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

@hooksense/mcp

Model Context Protocol server for HookSense โ€” the webhook & callback layer for AI agents. Lets Claude Desktop, Cursor, Claude Code, Continue, and any MCP client create a callback URL, wait for the result instead of polling, and verify its signature โ€” all from the agent session.

Why

Agents that kick off async work โ€” a deploy, a render, a human-in-the-loop approval, a long tool call, another agent โ€” need the result back without burning context on polling loops. With this server the agent creates a callback endpoint, hands the URL to the job, then calls wait_for_callback and is woken the instant the webhook lands โ€” signature-verified and decrypted. Stop polling for async results; await them.

Hello callback (60 seconds)

Once configured, ask your agent:

  1. Create โ€” "Create a callback endpoint." โ†’ the agent calls create_callback_endpoint and gets back a callbackUrl like https://hooksense.com/w/ab12cd.
  2. Fire โ€” point any job at that URL (or just curl -X POST <callbackUrl> -d '{"status":"done"}' from another terminal).
  3. Await โ€” "Wait for the callback." โ†’ the agent calls wait_for_callback and blocks until the webhook lands, then receives { status: "received", request: { body, headers, โ€ฆ } }.
  4. Verify (optional) โ€” set a webhook secret on the endpoint, then "Verify the signature." โ†’ verify_signature confirms the payload is authentic before the agent acts on it.

No polling, no dashboards, no copy-paste.

Tools

ToolDescription
create_callback_endpointCreate a callback endpoint; returns the callbackUrl
wait_for_callbackBlock until the next callback lands, then return it (timeoutMs, after cursor)
list_callbacksList callbacks received by an endpoint (summary view)
get_callback_payloadFetch one callback with full headers + decrypted body
verify_signatureTiming-safe HMAC check against the endpoint's configured secret
replay_callbackPOST a received callback to any target URL
list_endpointsList your endpoints
get_endpointGet one endpoint's full settings

Environment

VariableDefaultNotes
HOOKSENSE_TOKEN(required)API token from /account/tokens
HOOKSENSE_APIhttps://hooksense.comOverride for self-hosted/staging

Example agent prompts

"Create a callback endpoint, use it as the webhook for my Replicate prediction, and wait for the result โ€” then summarize the output."

"Open a callback URL, give it to the approval step, and block until a human approves before continuing."

"Wait for the next Stripe callback on payments-prod, verify its signature, and tell me the amount."