get_installation_scripts
Return paste-safe tracking snippets, webhook templates, recommended events, common mistakes, and verification instructions for the given framework. Sensitive: the response includes a _sensitive_webhook block — only structuredContent carries the live URL. Every response includes _request_id in structuredContent.
APPLY EVERY RELEVANT SNIPPET: the response's framework_snippets keys are typically init, page_view, purchase, lead, contact_info. Apply ALL that match the project's surface:
init— always required (loads the tracker).page_view— always required (the first signal of installation).purchase— when the project has a checkout/order success flow (has_checkout=true).lead— when the project is a lead-gen funnel.contact_info— when the project has an authenticated user view (has_login=true). SKIPPINGcontact_infocausesverify_and_score.scoring_completeto stayfalseindefinitely; the user will see 'almost done' forever.
READ common_mistakes[] PER SNIPPET: the Tracklution tracking engine is intentionally robust (deduplicates repeat Purchases, accepts late ContactInfo, absorbs React Strict Mode double-fires), so the common_mistakes are framed as OPTIMAL-vs-acceptable, not breakage warnings. Follow them when you can; their absence does NOT break tracking, but their presence makes the developer's network log cleaner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | Yes | ||
| has_login | No | ||
| auth_token | No | SENSITIVE: JWT from register_and_provision. Optional when `container_hash` is supplied — the MCP server then auto-attaches the JWT cached at register time. Pass this explicitly when you have it from structuredContent. | |
| event_goal | No | ||
| server_name | No | Which connected Tracklution server the container lives on (the server name shown at Connect time, e.g. `Main`). Required when this MCP session is connected to more than one server; pass the SAME server_name on every follow-up installation call for the container — the MCP fills it into `next_action.args` / `next_steps[].tool_args` for you. Ignored when only one server is connected. | |
| app_dir_path | No | src/app | |
| container_id | Yes | ||
| has_checkout | No | ||
| container_hash | No | SECRET: 32-char hash from register_and_provision's data.container.hash. Required ONLY when auth_token is omitted; lets the MCP server look up the cached JWT without exposing it on the wire. | |
| nextjs_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| field | No | ||
| errors | No | ||
| status | No | ||
| details | No | ||
| warnings | No | ||
| rate_limit | No | ||
| _request_id | No | ||
| http_status | No | ||
| next_action | No |