@typeroll/mcp-server 0.45.60 → 0.45.62
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 +11 -1
- package/dist/bundled-content.js +6 -6
- package/dist/server.js +5 -2
- package/dist/tools/block-types.js +15 -2
- package/dist/tools/page-blocks.js +33 -16
- package/dist/tools/pages.js +11 -5
- package/dist/tools/reusable-blocks.js +1 -1
- package/dist/tools/settings.js +2 -2
- package/dist/tools/styles.js +17 -8
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/tr-brand.md +8 -0
- package/skills/tr-custom-blocks.md +7 -0
- package/skills/tr-migrate-wp.md +3 -0
- package/skills/tr-migration-evidence.md +35 -0
- package/skills/tr-new-site.md +9 -1
package/AGENTS.md
CHANGED
|
@@ -64,6 +64,16 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
64
64
|
or let the content type's `route_template` derive it. All articles and
|
|
65
65
|
directory entries are Pages created with `create_page`.
|
|
66
66
|
|
|
67
|
+
A requested address is never changed silently. If the `slug` (or `path`)
|
|
68
|
+
you pass to `create_page`/`clone_page` is already in use — drafts and
|
|
69
|
+
unsaved drafts included — the call fails with 409 `slug_in_use` (or
|
|
70
|
+
`path_in_use`) and `details: { page_id, path }` of the existing page: edit
|
|
71
|
+
that page or choose another slug. Only a slug derived from the title is
|
|
72
|
+
numbered (`tack` → `tack-2`), and the response then carries
|
|
73
|
+
`warnings: [{ code: "slug_adjusted", requested, slug, path,
|
|
74
|
+
conflicting_page_id }]`. Link to the returned `url`, not the slug you
|
|
75
|
+
expected.
|
|
76
|
+
|
|
67
77
|
- **Partials = global blocks.** Three kinds:
|
|
68
78
|
- `header` — auto-injected at the top of every page.
|
|
69
79
|
- `footer` — auto-injected at the bottom of every page.
|
|
@@ -1212,7 +1222,7 @@ preview.
|
|
|
1212
1222
|
| **Pages — meta** | `get_page_preview` |
|
|
1213
1223
|
| **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>`. |
|
|
1214
1224
|
| **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. |
|
|
1215
|
-
| **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`). Contrast below WCAG AA is refused. |
|
|
1225
|
+
| **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. |
|
|
1216
1226
|
| **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. |
|
|
1217
1227
|
| **Content types** | `list_content_types`, `read_content_type`, `create_content_type`, `update_content_type`, `delete_content_type`, `change_page_content_type`, `page_completeness` |
|
|
1218
1228
|
| **Page templates** | `list_page_templates`, `read_page_template`, `create_page_template`, `update_page_template`, `delete_page_template` |
|