@typeroll/mcp-server 0.45.104 → 0.45.106

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 CHANGED
@@ -452,6 +452,14 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
452
452
  the next only when the previous job has finished and
453
453
  `read_organization_build_engine` shows no `active_jobs` (details in
454
454
  `tr-edit-site`).
455
+ **Publishing to the temporary address ends at cutover.** Once a site
456
+ serves its live custom domain, the same publication serves the live domain
457
+ and the old temporary address, so every real `trigger_deploy` is a
458
+ production release. Get the owner's approval and pass
459
+ `confirm_live_domains: true`; without it the deploy is refused with
460
+ `live_domain_confirmation_required`, naming the live URLs and `targets`.
461
+ `get_publication_impact` and the deploy result report `production` and
462
+ `targets` (live domains first). Dry runs and `get_preview_link` stay free.
455
463
  `trigger_deploy dry_run=true` validates frozen source in customer publishing
456
464
  without a Git push or external build; it does not prove Astro compilation.
457
465
  Other self-hosted adapters may run a local build without upload.
@@ -1038,6 +1046,7 @@ list_workflows → types, config fields, recent runs
1038
1046
  start_workflow type="seo_audit" → { workflow_id } (runs in background)
1039
1047
  get_workflow workflow_id=… → poll until status leaves pending/running
1040
1048
  approve_workflow workflow_id=… → only when paused_for_review, with consent
1049
+ cancel_workflow workflow_id=… → stop a pending/running/paused run (status cancelled)
1041
1050
  ```
1042
1051
 
1043
1052
  Types: `migration`, `site_planning`, `seo_audit`, `content_improvement`,
@@ -1055,6 +1064,16 @@ is created). An AI plan needs the Organization's own AI key with site access
1055
1064
  `all` (`403 ai_not_enabled` otherwise; nothing is created): you can instead
1056
1065
  create a blank site and plan it yourself.
1057
1066
 
1067
+ **Interrupted and cancelled runs.** Runs execute in short chunks on a durable
1068
+ queue and save their progress after each chunk, so a service restart (a
1069
+ deploy) only delays them: keep polling `get_workflow`. A run without a
1070
+ heartbeat for 3 minutes is resumed from its saved progress, up to 3 times;
1071
+ only then is it reported `failed` with `failure_code: "workflow_interrupted"`.
1072
+ Tell the user and start a new run; work saved before it stopped stays saved. A
1073
+ slow run that is still alive keeps a recent `heartbeat_at`. `cancel_workflow`
1074
+ stops a pending, running or paused run on the user's request and records it as
1075
+ `cancelled`; a running run stops at its next chunk.
1076
+
1058
1077
  **AI workflows without the portal's AI.** `site_planning`,
1059
1078
  `content_generation`, `content_improvement` and `schema_markup` run the
1060
1079
  model with the Organization's own AI key, and only on Sites an owner or admin
@@ -1308,7 +1327,7 @@ preview.
1308
1327
  | **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. |
1309
1328
  | **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` |
1310
1329
  | **Site lifecycle** | `archive_site`, `restore_site`, `purge_site_media` (archived sites only, irreversible). Owner-organization admin, as in the portal. |
1311
- | **Workflows** | `list_workflows`, `start_workflow` (write; `rebuild_deploy` admin), `get_workflow`, `approve_workflow` (only `paused_for_review`, with the user's consent) |
1330
+ | **Workflows** | `list_workflows`, `start_workflow` (write; `rebuild_deploy` admin), `get_workflow`, `approve_workflow` (only `paused_for_review`, with the user's consent), `cancel_workflow` |
1312
1331
  | **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) |
1313
1332
  | **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) |
1314
1333
  | **Insights** | `get_site_insights` — traffic, AI-assistant referrals, and first-party conversion events over 7/30/90 days. Read-only. Traffic is powered by Cloudflare Web Analytics in the account that hosts the site; a non-ok `status` carries a `reason` with the next step. Conversion rows come from validated Analytics attribution `click_event` targets and can be present even when the traffic provider is unavailable. |
package/README.md CHANGED
@@ -208,9 +208,12 @@ the full reference + concrete operation recipes.
208
208
  AI chat. Organization key, owner/admin. MCP itself never depends on it.
209
209
  - **Workflows** — `list_workflows`, `start_workflow` (migration, site planning,
210
210
  SEO/link/performance audits, content generation and improvement, schema
211
- markup, URL parity, rebuild & deploy), `get_workflow`, `approve_workflow`.
212
- Starting needs write; `rebuild_deploy` publishes and needs admin. Approve a
213
- review gate only with the user's consent.
211
+ markup, URL parity, rebuild & deploy), `get_workflow`, `approve_workflow`,
212
+ `cancel_workflow`. Starting needs write; `rebuild_deploy` publishes and needs
213
+ admin. Approve a review gate only with the user's consent. Runs continue
214
+ from their saved progress after a service restart; one that cannot be
215
+ resumed is reported `failed` with `failure_code` `workflow_interrupted`;
216
+ start a new one.
214
217
  - **Organization publishing connections** —
215
218
  `read_organization_publishing_connections` (status, revisions and
216
219
  `connect_urls` for the browser-only OAuth steps),