Scaffold the ProAbono notification (webhook) endpoint
scaffold_notification_endpointGenerate the HTTP endpoint for ProAbono notifications: signature verification, handshake, dedup, fast ack, and out-of-band rights resync. Also returns the BackOffice webhook setup procedure.
Instructions
Generates the HTTP endpoint that receives ProAbono notifications: signature verification in constant time, the validation handshake ProAbono sends before a webhook goes live, deduplication on the notification id, a fast acknowledgement with the work done out of band, and the worker that runs one global rights resynchronization for the affected customer. Also returns the BackOffice procedure that creates and validates the webhook, which no API can perform. This is what makes the rights cache of sync_usage_rights correct rather than merely bounded by its maximum TTL. Writes the installation state unless record_state is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | Yes | The host project's stack. Detect it from the open project (package.json, composer.json, requirements.txt, Gemfile, .csproj) and confirm with the developer. Use "generic" when none fits. | |
| project_root | No | Root of the developer's project, where `.proabono/installation.json` is written. Defaults to the directory this server was launched in, which is the project for every MCP client that starts the server inside it. Pass it when that is not the case. | |
| record_state | No | Record this step in `.proabono/installation.json`. Default true. Set false to generate code without touching the developer's filesystem at all. | |
| endpoint_path | No | Path the endpoint is served at, e.g. "/webhooks/proabono". Defaults to that. It must be reachable over HTTPS from the public internet: ProAbono does not deliver to a local address. |