@perkyzz/emvb-mcp 0.8.0 → 1.0.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 +17 -1
- package/dist/cli.mjs +4038 -361
- package/package.json +4 -4
- package/skill/emvb-page-builder/SKILL.md +12 -2
- package/skill/emvb-page-builder/references/layout.md +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perkyzz/emvb-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.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",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"prepack": "bun run build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@modelcontextprotocol/client": "2.
|
|
41
|
-
"@modelcontextprotocol/server": "2.
|
|
40
|
+
"@modelcontextprotocol/client": "2.4.0",
|
|
41
|
+
"@modelcontextprotocol/server": "2.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@perkyzz/emvb": "0.
|
|
44
|
+
"@perkyzz/emvb": "1.0.0",
|
|
45
45
|
"zod": "~4.5.4"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
@@ -33,9 +33,15 @@ instructions.
|
|
|
33
33
|
`insert_saved_section` (it adds the classes the section uses to the styles draft; a class whose
|
|
34
34
|
look changed comes in as a numbered copy such as "Card 2", never overwriting the site's).
|
|
35
35
|
`save_section` saves an element for reuse; `delete_saved_section` only when the person asks.
|
|
36
|
-
6. **
|
|
36
|
+
6. **Propose when someone is editing.** `list_page_outline` says `openInEditor`; then (or when the
|
|
37
|
+
person wants to review first) send changes with `propose_changes`, naming its `baseRevision`
|
|
38
|
+
and `baseDesignRevision`. The person accepts or rejects each change in the editor. A direct
|
|
39
|
+
write to an open page returns `PAGE_OPEN`. Check `get_requests` for what people asked from the
|
|
40
|
+
editor and answer each with `propose_changes` and its `requestId`. `get_proposal` tells you whether yours still applies;
|
|
41
|
+
`withdraw_proposal` before sending a corrected one.
|
|
42
|
+
7. **Check accessibility** with `get_accessibility_findings` after building and fix every
|
|
37
43
|
error. Contrast findings that share one colour: change that colour variable once.
|
|
38
|
-
|
|
44
|
+
8. **Don't publish** unless the person asked and `publish_page` is available. End with
|
|
39
45
|
`describe_page` and a short summary so they can review the draft. Fix its warnings too (an
|
|
40
46
|
element hidden on every device, a form's required field with no field on the form).
|
|
41
47
|
|
|
@@ -66,6 +72,10 @@ instructions.
|
|
|
66
72
|
already has is refused too. A write that changes nothing saves no new version.
|
|
67
73
|
- `REFUSED` on `insert_saved_section`: the place can't take the section, or the site is at 100
|
|
68
74
|
classes; nothing was added to the styles draft. Pick another `parentId` or ask the person.
|
|
75
|
+
- `PAGE_OPEN`: someone has the page open in the editor; send the same change with
|
|
76
|
+
`propose_changes` instead.
|
|
77
|
+
- `CONFLICT` on `propose_changes`: the page or the site styles changed; call `list_page_outline`
|
|
78
|
+
again and propose against the new revisions. A refused change starts with its index (`Change 2:`).
|
|
69
79
|
- `PUBLISH_DISABLED`: leave the draft for review.
|
|
70
80
|
- `FORBIDDEN`: agent access is off on the site, or the token can't use EmVB; tell the person.
|
|
71
81
|
- `NOT_SET_UP`: an admin must click "Set up EmVB" in the EmDash admin first; tell the person.
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
A layout is `{ schemaVersion, root }`. `root` is a container whose `children` are the page's
|
|
4
4
|
bands (usually `layout-section`). Each node has `id`, `type`, `props`, optional `style` (with
|
|
5
5
|
`devices.tablet/mobile` overrides and `states.hover/focus`), `classes` (site class ids),
|
|
6
|
-
`
|
|
6
|
+
`editorLabel` (an editor-only name), and `children` when it is a parent. Motion lives under
|
|
7
|
+
`style.motion` as `{ entrance, scroll, transition, icon }` (Normal only, never in `states`).
|
|
8
|
+
A Theme section embed is type `part-ref` with `props.partId`; a Loop's item part is
|
|
9
|
+
`props.partId`. Older names (`section`, `label`, `itemPartId`, flat `entrance` and friends) are
|
|
10
|
+
still accepted on input and upgraded (schema 18, contract 1.0).
|
|
7
11
|
|
|
8
12
|
Style values are literals or variable references:
|
|
9
13
|
|