create_webhook
Register a webhook endpoint to receive real-time notifications when QR codes are scanned. Returns an HMAC-SHA256 secret for verifying webhook signatures.
Instructions
Register a webhook endpoint to receive real-time notifications when QR codes are scanned. Returns an HMAC-SHA256 secret for verifying webhook signatures — store it securely, it is only shown once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The endpoint URL that will receive POST requests with scan event data. | |
| events | No | Events to subscribe to. Currently supported: "qr.scanned". |
Implementation Reference
- packages/mcp/src/tools.ts:672-674 (handler)The handler for create_webhook in the MCP tools definition, which makes a POST request to /api/webhooks.
handler: async (input: { url: string; events?: string[] }) => { return apiRequest("/api/webhooks", { method: "POST", body: input }); },