Install the ProAbono Customer Portal in a page
install_customer_portalGenerates embed code for the ProAbono Customer Portal in your site page: security hash, route, and template snippet. Requires an authenticated customer area to render for the signed-in customer.
Instructions
Generates the code that embeds the ProAbono Customer Portal inside a page of the merchant's own site -- current plan, invoices, payment method, billing address, usage -- for the signed-in customer. This is step 1 of the In-Site installation. Returns the server-side security hash computation, the route that renders the page, and the snippet to place in the template. Requires an authenticated customer area: the hosted pages always render for an identified customer.
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. | |
| target_page | Yes | Path of the page that will host the portal, e.g. "/account/billing". | |
| 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. | |
| pass_language | No | Pass the application's UI language to ProAbono. Only when the application is the authority for it: it overwrites what the customer set in the portal. |