@perkyzz/emvb-mcp 1.1.0 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +14 -3
  2. package/dist/cli.mjs +2346 -739
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -28,8 +28,10 @@ EmDash site. It forwards tool calls to your site's EmDash MCP endpoint and adds
28
28
  Options:
29
29
 
30
30
  - `--site <url>`: your site, `https://` (or `http://` for localhost).
31
- - `EMVB_TOKEN`, or `--token-file <path>` to read the token from a file (keep it `chmod 600`; the
32
- bridge warns otherwise). A token on the command line is refused.
31
+ - `EMVB_TOKEN`, or `--token-file <path>` to read the token from a file (keep it `chmod 600`;
32
+ since 1.1.2 the bridge refuses a file other users can read unless you pass
33
+ `--allow-loose-token-file`). A token on the command line is refused. The bridge follows no
34
+ redirect, so the token only ever goes to `--site`.
33
35
  - `--allow-publish`: list `publish_page` and `publish_site_styles`. The site's AI agents settings
34
36
  still decide whether they run.
35
37
 
@@ -56,7 +58,16 @@ The request is on the command's stdin, inside a short brief that says how to ans
56
58
  and `EMVB_REQUEST_ID` are set. The request text never goes into the command line. The agent needs
57
59
  the EmVB tools itself (this bridge in its MCP config). Requests run one at a time, each once;
58
60
  an unanswered one is logged, not retried. Options: `--interval <s>` (15, 5–3600), `--timeout <s>`
59
- per run (600), `--once`.
61
+ per run (600), `--once`, `--pass-token`.
62
+
63
+ **Run an agent restricted to the EmVB MCP tools, with no shell or file tools.** A request is text
64
+ a person typed on the site, and an agent that may run commands or read files would let that text
65
+ reach them. Since 1.1.1 `watch` only ever receives requests written by the person whose token it
66
+ uses (each request is private to its author), quotes the request between tags with a random
67
+ name so it can't end the quote, skips a request whose ids aren't ids, and removes `EMVB_TOKEN`
68
+ from the agent's environment (give the agent the EmVB tools through its own MCP config, or pass
69
+ `--pass-token` if it really needs the token). With Claude Code, for example:
70
+ `--agent "claude -p --allowedTools 'mcp__emvb__*'"`.
60
71
 
61
72
  Needs Node 20+ on the agent's computer, and on the site EmDash 1.2+ with `mcp: true`,
62
73
  `@perkyzz/emvb` 0.5.0+ (0.8.0 recommended) with **Set up EmVB** done, and agents turned on in **Pages VisualBuilder →