Install ProAbono in this site, end to end (In-Site orchestrator)
install_insiteChecks your project's prerequisites, detects the stack, and generates ProAbono Customer Portal, subscription workflow, and rights synchronization code. Records progress to resume later.
Instructions
Orchestrates the whole In-Site installation: detects the stack from the open project and states its hypothesis, settles the Segment, checks the four prerequisites before generating anything -- an authenticated customer area, a catalogue whose offers carry Features, how a ProAbono customer will exist for a signed-in user, and a page to host the portal -- then runs the three steps in order, Customer Portal, Subscription Workflow, rights synchronization, and records progress in .proabono/installation.json so a later session resumes instead of starting over. Call it when a developer asks to install, set up or integrate ProAbono. It installs ONE way, In-Site by code: it never offers a Widget or a plug-in, whatever the stack. It generates code and returns it; it writes no source file of yours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | No | The host project's stack. Given, it bypasses detection entirely. Left out, the project is read for signals and the hypothesis is stated for the developer to confirm. | |
| target_page | No | The page that will host the Customer Portal, e.g. "/account/billing". Ask the developer rather than guessing: it must be inside the authenticated area. | |
| 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. | |
| provisioning | No | How a ProAbono customer comes to exist for a signed-in user. api_precreate (recommended) creates it at sign-up or first login; on_load lets the portal create it when it opens. Steps 2 and 3 both need the customer to exist, and ProAbono returns no Usages until a subscription has started. | |
| 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. | |
| return_route | No | Path every workflow comes back to, e.g. "/billing/return". | |
| customer_area | No | Whether the site already has an authenticated customer area. This is the entry condition: hosted pages always render for an identified customer. Ask the developer; do not assume it. |