create_callback_url
Creates a public callback URL that forwards MCP Events webhook deliveries to an agent’s localhost port and path, enabling agents without a public URL to subscribe and receive events.
Instructions
Create a public callback URL for MCP Events webhook delivery, for an agent on this machine with no public URL of its own, then pass it to events/subscribe. Deliveries reach Hookdeck Event Gateway at the URL, and the bridge forwards them to http://localhost:. With secret, Event Gateway answers the subscribe challenge and accepts only deliveries signed with it. Without it, the URL is pass-through and your receiver must verify every delivery: use that when you subscribe with a different secret per path under one URL. Deliveries are signed with your subscription secret: route them by X-MCP-Subscription-Id and dedupe by webhook-id. Calling again with the same agent, name and secret returns the existing URL; a different secret, or a port or path you pass that differs, is an error. A URL no subscription uses for an hour is deleted. Not needed if your agent has a public URL or polls (wait_for_event, poll_events).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for this URL (up to 40 letters, digits or _), e.g. "email_from_alice". Reusing a name with the same secret returns that URL. | |
| path | No | Local path deliveries are forwarded to. Set by the agent's first URL (default /events) and shared by the rest. | |
| port | No | Local port your agent receives deliveries on. Set by the agent's first URL (default 3000) and shared by the rest. | |
| agent | Yes | Your agent or machine name (up to 40 letters, digits or _), e.g. "laptop". It names an Event Gateway destination shared by its URLs, so keep it unique in the Hookdeck project. | |
| secret | No | The whsec_ secret you will subscribe with. One URL holds one secret: to rotate, create a URL with a new name. Omit for a pass-through URL. |