@typeroll/mcp-server 0.45.130 → 0.45.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +22 -3
- package/dist/bundled-content.js +3 -3
- package/dist/rest-reference.js +1 -0
- package/dist/server.js +2 -0
- package/dist/tools/pages.js +1 -1
- package/dist/tools/settings.js +2 -1
- package/dist/tools/sites.js +22 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/tr-header-footer.md +8 -1
- package/skills/tr-new-site.md +1 -0
package/AGENTS.md
CHANGED
|
@@ -160,7 +160,14 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
160
160
|
site (owner-organization admin; refused while a custom domain is live or
|
|
161
161
|
verified). An archived site refuses every other write. `purge_site_media`
|
|
162
162
|
permanently deletes an archived site's media (irreversible — confirm with
|
|
163
|
-
the user first).
|
|
163
|
+
the user first). Deleting an archived site for good is two steps and needs
|
|
164
|
+
an owner of the owning organization on their own connection:
|
|
165
|
+
`get_site_deletion_inventory` (writes nothing; blockers, counts, what stays
|
|
166
|
+
in the owner's accounts, a digest), then — only after the owner explicitly
|
|
167
|
+
confirms that inventory for this site — `delete_site` with its
|
|
168
|
+
`confirm.body`. A 202 `in_progress` means call again with the same
|
|
169
|
+
arguments. Tell the owner about the `untouched` resources (Git repository,
|
|
170
|
+
hosting project that keeps serving, DNS). `get_site` reports `lifecycle.status` and
|
|
164
171
|
`ai_scripts_enabled`; `get_media_upload_status` is the upload pre-flight
|
|
165
172
|
the portal media library shows.
|
|
166
173
|
|
|
@@ -399,6 +406,18 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
399
406
|
write. Scope guide: one placement → `core/embed`; a reusable
|
|
400
407
|
widget → `create_block_type` with `script`; a site-wide tag →
|
|
401
408
|
`settings.scripts_head` / `scripts_body_end`.
|
|
409
|
+
**Consent:** a widget that sets cookies or tracks visitors (an energy
|
|
410
|
+
comparer, a booking or map widget) gets `consent: "optional"`. Its
|
|
411
|
+
`html` (iframes and images included) and `js` then stay off until the
|
|
412
|
+
visitor accepts all cookies in the site's cookie banner; until then a
|
|
413
|
+
placeholder with a button that opens the banner shows
|
|
414
|
+
(`consent_placeholder` replaces its built-in sentence, which follows the
|
|
415
|
+
page language). On a later visit with stored consent it loads at once;
|
|
416
|
+
"necessary only" and "decline" keep it off. It needs
|
|
417
|
+
`settings.cookie_consent.enabled: true` — the write returns a
|
|
418
|
+
`consent_embed_without_banner` warning otherwise. Leave `consent`
|
|
419
|
+
`"none"` (the default) for a vendor snippet that asks for consent
|
|
420
|
+
itself, so the visitor is not asked twice.
|
|
402
421
|
- **Forms 2.0** (template_capabilities_version ≥ 0.18.0): forms can
|
|
403
422
|
carry `steps[]` — each step is a Block[] tree mixing `form/*` field
|
|
404
423
|
blocks (text/email/phone/number, textarea, select/radio_group/
|
|
@@ -1318,7 +1337,7 @@ preview.
|
|
|
1318
1337
|
|---|---|
|
|
1319
1338
|
| **Guide + skills (playbook)** | `read_guide` (returns this whole guide — the bridge for hosted clients that can't read it off disk), `list_skills`, `read_skill` — the bundled `tr-*.md` recipes (incl. `tr-responsive` for per-breakpoint layout). Call `list_skills` first when a task looks like "build / migrate / redesign a site", then `read_skill name=…`. No API key or site context needed. |
|
|
1320
1339
|
| **Discovery** | `get_site`, `create_site`, `create_site_and_migrate`, `create_site_and_plan` (org-scoped key only — see below), `update_site` (incl. `ai_scripts_enabled`, admin), `list_versions`, `read_site_settings` |
|
|
1321
|
-
| **Site lifecycle** | `archive_site`, `restore_site`, `purge_site_media` (archived sites only, irreversible). Owner-organization admin, as in the portal. |
|
|
1340
|
+
| **Site lifecycle** | `archive_site`, `restore_site`, `purge_site_media` (archived sites only, irreversible). Owner-organization admin, as in the portal. `get_site_deletion_inventory`, `delete_site` (archived sites only, permanent; an organization owner's own connection, after the owner confirms the inventory). |
|
|
1322
1341
|
| **Workflows** | `list_workflows`, `start_workflow` (write; `rebuild_deploy` admin), `get_workflow`, `approve_workflow` (only `paused_for_review`, with the user's consent), `cancel_workflow` |
|
|
1323
1342
|
| **Access** | `list_api_keys`, `revoke_api_key` (site admin), `list_organization_api_keys`, `revoke_organization_api_key` (organization key; new keys are created only in the portal), `list_site_shares`, `share_site`, `update_site_share`, `revoke_site_share` (site admin), `create_organization_invite`, `list_organization_invites`, `revoke_organization_invite` (organization key), `read_organization_ai_settings`, `set_organization_ai_key`, `remove_organization_ai_key`, `set_organization_ai_site_access` (the portal AI chat's own key and Sites; organization key) |
|
|
1324
1343
|
| **Organization publishing** | `read_organization_publishing_connections`, `diagnose_organization_github_connection`, `diagnose_organization_cloudflare_connection`, `disconnect_organization_publishing_provider`, `connect_organization_cloudflare`, `prepare_organization_media_storage`, `save_organization_media_access`, plus builds, Hosting Groups, domains and media migration tools (organization key) |
|
|
@@ -1343,7 +1362,7 @@ preview.
|
|
|
1343
1362
|
| **Forms** | `list_forms`, `read_form`, `create_form`, `update_form`, `delete_form`, `get_form_capabilities`, `list_form_submissions`, `read_form_submission`, `delete_form_submission` (removes one submission — e.g. cleaning up a test entry; `delete_form` with `delete_submissions` is the bulk path). **Steps (form/* block trees) are the ONLY stored model**: pass `steps` for funnels, or `fields` for simple forms — the server converts a flat field list to a single static step. Place with a `core/form` block on block-mode pages or `<x-form id="…" />` in HTML mode. Both expand server-side to the same complete signed shell and initial state. `read_form` shows the form's actions (email notifications, webhooks; secrets masked) and `create_form`/`update_form` set them with `actions`, with admin permission as in the portal; `get_form_capabilities` lists the action types (including app-provided ones) and their config fields. |
|
|
1344
1363
|
| **Form spam protection (admin)** | `get_form_spam_protection`, `set_form_spam_protection`, `delete_form_spam_protection` — Cloudflare Turnstile for every form on the site: the site owner creates a Managed widget in their Cloudflare dashboard, you store its site key and secret (write-only), then publish. Each form requires Turnstile after its republished pages send the first verified answer (`enforced_forms`). App and Extension forms are not covered. |
|
|
1345
1364
|
| **Email (admin)** | `get_email_settings`, `set_email_settings`, `delete_email_settings`, `send_test_email` — the outgoing provider (Postmark, SMTP, SES) that form notifications send through, as in Settings → Email & notifications; secrets are write-only (reads show `{ set: true }`; omit a secret to keep it). Without a provider, form email actions are skipped. `get_incoming_email_settings`, `set_incoming_email_forwarding` (enable/disable a host-approved route by `route_id` + current `revision`; cannot create aliases or change targets), `read_incoming_email_receipt`. |
|
|
1346
|
-
| **Settings** | `update_site_settings` (admin; every field the portal Settings form accepts, including `sitewide_noindex`, `default_og_image`, `twitter_handle`, `organization`, `staging_url` and shallow-merged native `cookie_consent`), `check_site_indexing` (live fallback/production headers, meta robots, and robots.txt diagnostics) |
|
|
1365
|
+
| **Settings** | `update_site_settings` (admin; every field the portal Settings form accepts, including `sitewide_noindex`, `default_og_image`, `twitter_handle`, `organization`, `staging_url` and shallow-merged native `cookie_consent`; `manage_button: "none"` drops the floating Cookies button when the footer links to `#cookie-settings`), `check_site_indexing` (live fallback/production headers, meta robots, and robots.txt diagnostics) |
|
|
1347
1366
|
| **Core modules** | `list_apps`, `read_app`, `update_app` (legacy API name; admin; schema-driven config, masked secrets, redeploy when `affects_build` is true); `list_organization_analytics`, `set_organization_analytics` (Analytics for chosen Sites; organization key) |
|
|
1348
1367
|
| **Extension installations** | `list_extension_installations`, `read_extension_installation`, `update_extension_installation_config` (admin; schema-driven config, masked secrets preserved, production deploy queued by default) |
|
|
1349
1368
|
| **Search + bulk** | `search_pages`, `check_internal_links`, `bulk_replace_text`. The link check is database-driven. Bulk replace defaults to pages but can target partials, Pages or all resources, always dry-run first. |
|