@typeroll/mcp-server 0.45.120 → 0.45.122
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 +17 -0
- package/dist/bundled-content.js +4 -4
- package/dist/client.js +3 -0
- package/dist/rest-reference.js +7 -0
- package/dist/server.js +34 -2
- package/dist/tools/access.js +25 -1
- package/dist/tools/clipboard.js +37 -0
- package/dist/tools/collection.js +73 -0
- package/dist/tools/fonts.js +91 -0
- package/dist/tools/menus.js +251 -0
- package/dist/tools/packages.js +66 -0
- package/dist/tools/reusable-blocks.js +2 -2
- package/dist/tools/settings.js +16 -1
- package/dist/tools/site-fields.js +138 -0
- package/dist/tools/sites.js +27 -3
- package/dist/tools/snippets.js +118 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/tr-brand.md +38 -11
- package/skills/tr-header-footer.md +43 -32
- package/skills/tr-new-site.md +11 -0
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
|
|
@@ -587,6 +597,10 @@ not optional discovery.
|
|
|
587
597
|
and third-party (origin: 'third_party'). Each entry includes the
|
|
588
598
|
full schema so you know what `data.X` fields each block accepts.
|
|
589
599
|
8. `list_page_templates` — PageTemplate docs that wrap pages.
|
|
600
|
+
9. `list_menus` — the navigation menus and the locations they fill
|
|
601
|
+
(`primary`, `footer`, `mobile`). Add or move header and footer links in
|
|
602
|
+
the menu, not in the header, when its navigation block has
|
|
603
|
+
`source: "menu"`.
|
|
590
604
|
|
|
591
605
|
For a build, migration, redesign, or capability report, #1–#8 are the
|
|
592
606
|
preflight. For a small content-only edit, #1 + #2 + a sampling from #3 is
|
|
@@ -1313,6 +1327,9 @@ preview.
|
|
|
1313
1327
|
| **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
1328
|
| **Pages — meta** | `get_page_preview` |
|
|
1315
1329
|
| **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>`. |
|
|
1330
|
+
| **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. |
|
|
1331
|
+
| **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. |
|
|
1332
|
+
| **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
1333
|
| **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
1334
|
| **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
1335
|
| **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. |
|