@perkyzz/emvb-mcp 0.9.0 → 1.1.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 CHANGED
@@ -1,3 +1,12 @@
1
+ <p align="center">
2
+ <a href="https://emvb.dev">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/PerkyZZ999/EmVB/main/docs/brand/logo-dark.svg">
5
+ <img src="https://raw.githubusercontent.com/PerkyZZ999/EmVB/main/docs/brand/logo-light.svg" alt="EmVB" width="320">
6
+ </picture>
7
+ </a>
8
+ </p>
9
+
1
10
  # @perkyzz/emvb-mcp
2
11
 
3
12
  A local (stdio) MCP server that lets AI agents build [EmVB](https://emvb.dev) pages on your
@@ -28,11 +37,27 @@ The token: EmDash → **API tokens**, scope `mcp:tools:emvb`, for a user who is
28
37
  above**. Never give an agent an admin token. Each token may make 300 reads and 60 changes a minute
29
38
  and 10 publishes an hour; over that, tools return `RATE_LIMITED` with how long to wait.
30
39
 
31
- Besides the 16 tools (18 with `--allow-publish`), the bridge serves the layout and style schemas,
40
+ Besides the 25 tools (27 with `--allow-publish`), the bridge serves the layout and style schemas,
32
41
  element and site style resources, each page's draft and accessibility findings, four prompts
33
42
  (`build_landing_page`, `fix_accessibility`, `restyle_site`, `review_page`) and the
34
43
  `emvb-page-builder` skill with its references (also in `skill/`).
35
44
 
45
+ ## Answer requests from the editor: `emvb-mcp watch`
46
+
47
+ People can ask their agent from the EmVB editor's **Agent** tab. `watch` checks the site for those
48
+ requests and runs your own agent command once per request:
49
+
50
+ ```sh
51
+ EMVB_TOKEN=… npx -y @perkyzz/emvb-mcp watch --site https://your.site --agent "claude -p"
52
+ ```
53
+
54
+ The request is on the command's stdin, inside a short brief that says how to answer
55
+ (`list_page_outline`, then `propose_changes` with the request's id); `EMVB_SITE`, `EMVB_PAGE_ID`
56
+ and `EMVB_REQUEST_ID` are set. The request text never goes into the command line. The agent needs
57
+ the EmVB tools itself (this bridge in its MCP config). Requests run one at a time, each once;
58
+ an unanswered one is logged, not retried. Options: `--interval <s>` (15, 5–3600), `--timeout <s>`
59
+ per run (600), `--once`.
60
+
36
61
  Needs Node 20+ on the agent's computer, and on the site EmDash 1.2+ with `mcp: true`,
37
62
  `@perkyzz/emvb` 0.5.0+ (0.8.0 recommended) with **Set up EmVB** done, and agents turned on in **Pages VisualBuilder →
38
63
  AI agents**. Full guide: