@perkyzz/emvb-mcp 0.6.0 → 0.8.0
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/README.md +1 -1
- package/dist/cli.mjs +1381 -168
- package/package.json +2 -2
- package/skill/emvb-page-builder/SKILL.md +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perkyzz/emvb-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Local (stdio) MCP server for EmVB pages: lets AI agents build EmDash pages through your site's EmDash MCP endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"emdash",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@modelcontextprotocol/server": "2.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@perkyzz/emvb": "0.
|
|
44
|
+
"@perkyzz/emvb": "0.8.0",
|
|
45
45
|
"zod": "~4.5.4"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: emvb-page-builder
|
|
3
|
-
description: Build, restyle and review EmVB visual pages on an EmDash site through the EmVB MCP tools (list_pages, get_layout, create_page, add_element, update_element, apply_section_recipe, update_site_styles, get_accessibility_findings). Use when asked to create, change, restyle, review or fix the accessibility of pages on a site built with EmVB or EmDash, including landing pages, menus, portfolios and pages with tabs, accordions, forms or post loops.
|
|
3
|
+
description: Build, restyle and review EmVB visual pages on an EmDash site through the EmVB MCP tools (list_pages, get_layout, create_page, add_element, update_element, apply_section_recipe, insert_saved_section, update_site_styles, get_accessibility_findings). Use when asked to create, change, restyle, review or fix the accessibility of pages on a site built with EmVB or EmDash, including landing pages, menus, portfolios and pages with tabs, accordions, forms or post loops.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# EmVB page builder
|
|
@@ -29,6 +29,10 @@ instructions.
|
|
|
29
29
|
`recipes` or `apply_section_recipe`), then replace every placeholder with real copy using
|
|
30
30
|
`update_element`. Start with "hero" so its heading is the page's one h1. For anything the
|
|
31
31
|
recipes don't cover, `add_element` takes a whole section with nested `children` in one call.
|
|
32
|
+
The site's own saved sections come first when one fits: `list_saved_sections`, then
|
|
33
|
+
`insert_saved_section` (it adds the classes the section uses to the styles draft; a class whose
|
|
34
|
+
look changed comes in as a numbered copy such as "Card 2", never overwriting the site's).
|
|
35
|
+
`save_section` saves an element for reuse; `delete_saved_section` only when the person asks.
|
|
32
36
|
6. **Check accessibility** with `get_accessibility_findings` after building and fix every
|
|
33
37
|
error. Contrast findings that share one colour: change that colour variable once.
|
|
34
38
|
7. **Don't publish** unless the person asked and `publish_page` is available. End with
|
|
@@ -57,6 +61,11 @@ instructions.
|
|
|
57
61
|
replace those references first. Pass `force: true` only if the person asked.
|
|
58
62
|
- An image `src` must be an http(s) URL or a path on the site; `javascript:`, `data:` and
|
|
59
63
|
`//host` sources are refused.
|
|
64
|
+
- `REFUSED` on a link or an SVG: the page would drop it (a `javascript:` link, `onload` or a
|
|
65
|
+
script in SVG markup); the message gives the reason. A class or variable name another one
|
|
66
|
+
already has is refused too. A write that changes nothing saves no new version.
|
|
67
|
+
- `REFUSED` on `insert_saved_section`: the place can't take the section, or the site is at 100
|
|
68
|
+
classes; nothing was added to the styles draft. Pick another `parentId` or ask the person.
|
|
60
69
|
- `PUBLISH_DISABLED`: leave the draft for review.
|
|
61
70
|
- `FORBIDDEN`: agent access is off on the site, or the token can't use EmVB; tell the person.
|
|
62
71
|
- `NOT_SET_UP`: an admin must click "Set up EmVB" in the EmDash admin first; tell the person.
|