@typeroll/mcp-server 0.45.121 → 0.45.123

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
@@ -142,6 +142,16 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
142
142
  just like a site admin does in the portal). `update_site_settings`
143
143
  accepts everything the portal Settings form does and, like the portal,
144
144
  needs admin permission on the site.
145
+ - **Fonts.** A site chooses a family per role: `heading`, `body`, `mono`,
146
+ and from render version 15 `display` and `accent`. Styles and blocks choose
147
+ a role, never a family. `search_fonts` searches the catalog of 250
148
+ open-licence Google families and the site's own families; `set_site_fonts`
149
+ sets the roles (with `version` on a branch), `load` for extra weights and
150
+ `services` for an Adobe Fonts kit or a Bunny Fonts or Fontshare stylesheet.
151
+ From render version 15 a publication loads only the weights in use.
152
+ `upload_font` adds a WOFF2, WOFF, TTF or OTF file to the site's Fonts
153
+ library; it needs `licence_confirmed: true`, which only the user can
154
+ confirm. Never load fonts through `custom_css` or `scripts_head`.
145
155
  - **Site-level switches and lifecycle.** `update_site` also sets
146
156
  `ai_scripts_enabled` (the portal's "Allow AI to write block scripts",
147
157
  admin). That toggle only governs the in-portal chat assistant; it never
@@ -184,11 +194,13 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
184
194
  `install_extension` (grant only the scopes the user approved),
185
195
  `set_extension_installation_status` (enable/disable), `uninstall_extension`
186
196
  (revokes the installation and its credentials; page blocks become
187
- placeholders), `pair_extension_issuer`, `read_extension_diagnostics`, and
197
+ placeholders), `pair_extension_issuer`, `connect_extension`, `read_extension_diagnostics`, and
188
198
  `launch_extension_admin_page` (a single-use launch grant whose `form` fields
189
199
  a browser tool POSTs to `launch_url`; for approved native pages use
190
200
  `call_extension_admin`). None of them deploys. Server credentials are
191
- rotated in the portal, never through MCP, so they stay out of conversations.
201
+ rotated in the portal, never through MCP, so they stay out of conversations;
202
+ an Extension with `auth.provisioning_url` is connected by Typeroll itself on
203
+ install, and `connect_extension` reconnects it.
192
204
  - **Extension development.** With an organization-scoped key,
193
205
  `list_developer_extensions`, `read_developer_extension`,
194
206
  `update_developer_extension`, `save_extension_version`,
@@ -587,6 +599,10 @@ not optional discovery.
587
599
  and third-party (origin: 'third_party'). Each entry includes the
588
600
  full schema so you know what `data.X` fields each block accepts.
589
601
  8. `list_page_templates` — PageTemplate docs that wrap pages.
602
+ 9. `list_menus` — the navigation menus and the locations they fill
603
+ (`primary`, `footer`, `mobile`). Add or move header and footer links in
604
+ the menu, not in the header, when its navigation block has
605
+ `source: "menu"`.
590
606
 
591
607
  For a build, migration, redesign, or capability report, #1–#8 are the
592
608
  preflight. For a small content-only edit, #1 + #2 + a sampling from #3 is
@@ -1313,6 +1329,9 @@ preview.
1313
1329
  | **Pages — blocks** | `get_page_blocks`, `add_block`, `update_block`, `move_block`, `remove_block`, `duplicate_block`, `set_block_responsive`, `set_page_mode` (never converts HTML into blocks) |
1314
1330
  | **Pages — meta** | `get_page_preview` |
1315
1331
  | **Global blocks (partials)** | `list_partials` (summary by default), `read_partial`, `create_free_block` (`blocks` or `html_content`), `update_partial`, `replace_partial`, `set_partial_mode`, `delete_partial`, `find_pages_using_block`, `make_block_global`, `detach_global_block`. Block pages reference a global block with `core/global_block` (`global_block_id`); HTML pages use `<x-include>`. |
1332
+ | **Menus** | `list_menus`, `read_menu`, `update_menu` (whole tree, `expected_updated_at`), `add_menu_item`, `delete_menu`, `find_menu_usage`. Items: `page` (`page_id`, follows renames), `url`, `children` (a page's child pages as a submenu), `heading`; at most 3 levels. Locations `primary`, `footer`, `mobile`; `auto_add_pages` appends new top-level pages. A `core/navigation_links` block with `source: "menu"`, `menu: "location:primary"` shows one (render version 15). Saved directly, live at the next publication. |
1333
+ | **Site fields** | `read_site_fields`, `define_site_fields` (all groups, site admin, `expected_updated_at`), `update_site_fields` (values patch; `null` removes). Settings pages the client fills in: groups of typed fields with `access` `editor` or `admin`; opening hours are an `object` field with `presentation: "opening_hours"`. Pages show values with `{{site.fields.name}}`, the `core/site_field` block and `core/show_if` conditions such as `site.fields.show_booking`. Saved directly, live at the next publication. |
1334
+ | **Live snippets** | `list_snippets`, `read_snippet`, `update_snippet` (create or replace the whole snippet, `expected_updated_at`), `delete_snippet`. Content outside the build: a save reaches the live site within a minute without publishing. `kind` `html`, `text` or `dated` (entries by `weekday` or `date`, `fallback`; today's entry is chosen in the visitor's browser in the site's time zone), so a week's lunch is one write per week. Show one with a `core/snippet` block (`snippet`: id); a site field with `live: true` shown by `core/site_field` updates the same way. Per site, not per branch. |
1316
1335
  | **Block templates** | `list_block_templates`, `read_block_template`, `save_block_template` (from `blocks` or `from: { page_id, block_id }`), `update_block_template`, `delete_block_template`, `insert_block_template` (copies with new ids). Per site, not per branch. |
1317
1336
  | **Styles** | `list_styles`, `create_style`, `update_style`, `delete_style`, `apply_standard_styles`. Blocks pick a style with `style_id` (heading parts: `eyebrow_style_id`, `subtitle_style_id`). Other named block parts (`read_block_type` → `parts`, e.g. `core/rich_heading.link`, `core/hero.primary_button`) take a style site-wide through the style's `parts`, or on one block through `data.part_styles`; the block's choice replaces the site-wide one, and a style class on the element wins over both. Contrast below WCAG AA is refused. |
1318
1337
  | **Block types** | `list_block_types`, `read_block_type`, `find_pages_using_block_type`, `list_block_type_starters`, `validate_block_type`, `preview_block_type`, `create_block_type`, `update_block_type` (`renames`, `confirm_data_loss`), `delete_block_type`, `export_block_types`, `import_block_types` (`on_conflict`: skip, rename, replace). Authoring and import need write permission. |
package/README.md CHANGED
@@ -293,11 +293,13 @@ the full reference + concrete operation recipes.
293
293
  when batching changes and deploy once afterwards. The same admin key also
294
294
  covers the rest of the portal's installation actions: `install_extension`,
295
295
  `set_extension_installation_status` (enable/disable), `uninstall_extension`,
296
- `pair_extension_issuer`, `read_extension_diagnostics`, and
296
+ `pair_extension_issuer`, `connect_extension`, `read_extension_diagnostics`, and
297
297
  `launch_extension_admin_page` (a single-use launch grant to POST to the
298
298
  page's `launch_url`; approved native pages use `call_extension_admin`).
299
299
  Installation server credentials are rotated in the portal, so the new
300
- credential is never shown to an agent.
300
+ credential is never shown to an agent; an Extension that declares
301
+ `auth.provisioning_url` gets its credential from Typeroll directly when it is
302
+ installed or `connect_extension` runs.
301
303
  - **Extension development** — with an organization-scoped key:
302
304
  `list_developer_extensions`, `read_developer_extension`,
303
305
  `update_developer_extension`, `save_extension_version`,