@marvalt/digivalt-mcp 0.0.0-stage → 0.5.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 (51) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/LICENSE +674 -0
  3. package/README.md +69 -2
  4. package/dist/audit.d.ts +24 -0
  5. package/dist/audit.js +34 -0
  6. package/dist/audit.js.map +1 -0
  7. package/dist/blocks/serialize.d.ts +15 -0
  8. package/dist/blocks/serialize.js +231 -0
  9. package/dist/blocks/serialize.js.map +1 -0
  10. package/dist/catalogue/blocks.d.ts +17 -0
  11. package/dist/catalogue/blocks.js +37 -0
  12. package/dist/catalogue/blocks.js.map +1 -0
  13. package/dist/catalogue/shortcodes.d.ts +49 -0
  14. package/dist/catalogue/shortcodes.js +384 -0
  15. package/dist/catalogue/shortcodes.js.map +1 -0
  16. package/dist/cli.d.ts +2 -0
  17. package/dist/cli.js +58 -0
  18. package/dist/cli.js.map +1 -0
  19. package/dist/config.d.ts +48 -0
  20. package/dist/config.js +139 -0
  21. package/dist/config.js.map +1 -0
  22. package/dist/index.d.ts +9 -0
  23. package/dist/index.js +8 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/media.d.ts +26 -0
  26. package/dist/media.js +118 -0
  27. package/dist/media.js.map +1 -0
  28. package/dist/publish.d.ts +32 -0
  29. package/dist/publish.js +74 -0
  30. package/dist/publish.js.map +1 -0
  31. package/dist/refresh.d.ts +30 -0
  32. package/dist/refresh.js +93 -0
  33. package/dist/refresh.js.map +1 -0
  34. package/dist/resources/guides.d.ts +2 -0
  35. package/dist/resources/guides.js +51 -0
  36. package/dist/resources/guides.js.map +1 -0
  37. package/dist/server.d.ts +19 -0
  38. package/dist/server.js +522 -0
  39. package/dist/server.js.map +1 -0
  40. package/dist/validate/local.d.ts +17 -0
  41. package/dist/validate/local.js +75 -0
  42. package/dist/validate/local.js.map +1 -0
  43. package/dist/version.d.ts +3 -0
  44. package/dist/version.js +4 -0
  45. package/dist/version.js.map +1 -0
  46. package/dist/wp-client.d.ts +31 -0
  47. package/dist/wp-client.js +94 -0
  48. package/dist/wp-client.js.map +1 -0
  49. package/docs/README.md +114 -0
  50. package/docs/SECURITY.md +44 -0
  51. package/package.json +51 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ ## [0.5.0] - 2026-11-15
4
+
5
+ ### Added
6
+ - Claude Desktop extension (`.mcpb`): `npm run pack:mcpb` bundles the server into one file and builds `dist-mcpb/digivalt-mcp-<version>.mcpb` with a settings form (WordPress URL and users, staging frontend, optional Cloudflare Access token, optional publisher account). Password and secret fields are marked sensitive. No Node install or `.env` file is needed.
7
+ - `DIGIVALT_MCP_DATA_DIR`: folder for the audit log and optional `.env.local` when there is no meaningful working directory (precedence: `--cwd`, then this, then the working directory).
8
+ - Blank settings, and unfilled `${user_config.*}` placeholders, are treated as unset.
9
+ - Bundle smoke test (`test/bundle.test.ts`, runs after `npm run pack:mcpb`).
10
+
11
+ ## [0.4.0] - 2026-11-13
12
+
13
+ ### Added
14
+ - `promote_page`, `publish_page`, `rollback_page`. Registered only when `DIGIVALT_MCP_PUBLISH_USER` and `DIGIVALT_MCP_PUBLISH_APP_PASSWORD` are set; they use that credential, every other tool keeps the agent user.
15
+ - Person approval for each: MCP elicitation prompt, or a single-use, plan-bound approval code (disabled by `DIGIVALT_MCP_REQUIRE_ELICITATION=true`).
16
+ - Stale-source refusal before prompting, `NO_CHANGES` check, audit fields `publisher`, `approval`, `plan_sha256`, `revision_id`.
17
+ - Write budget (`DIGIVALT_MCP_WRITE_LIMIT`, default 60 per 10 minutes), 500 KB and 12-level nesting caps, credential redaction in returned errors, plain-language hints for the `E_*` codes.
18
+ - `site_info` reports `can_publish` and the approval mode. `docs/SECURITY.md`.
19
+ - Live publish integration test (`DIGIVALT_MCP_IT_PUBLISH_USER` / `_PASSWORD`); test files now run one at a time.
20
+
21
+ ### Requires
22
+ - `wp-pagesync` 2.1.0 and WordPress revisions enabled for promote.
23
+
24
+ ## [0.3.0] - 2026-11-13
25
+
26
+ ### Added
27
+ - `refresh_static_data` tool (developers): runs the app's `generate` with `VITE_PREVIEW_DRAFTS=true`, returns the overlay summary and a redacted output tail. Refuses unless `VITE_FRONTEND_ID` equals `VITE_STAGING_FRONTEND`. Offered only when started inside an app repository.
28
+
29
+ ### Requires
30
+ - `wp-pagesync` 2.1.0 and `@marvalt/digivalt-core` 0.2.50 for the preview overlay.
31
+
32
+ ## [0.2.0] - 2026-11-13
33
+
34
+ ### Added
35
+ - Write tools: `create_page`, `update_page`, `set_seo`, `diff_page`, `discard_draft`, `upload_media`.
36
+ - Typed block-tree serializer (`blocks` input) that only emits blocks the frontend renders.
37
+ - Pre-write validation gate, staging-frontend and post-type guards.
38
+ - Media preflight: content-based type check, size and dimension limits, alt required, no SVG.
39
+ - Local audit log (`.digivalt-mcp/audit.jsonl`).
40
+ - Live integration tests for the write path (`DIGIVALT_MCP_IT_PUBLISHED_ID`).
41
+
42
+ ### Requires
43
+ - `wp-pagesync` 2.0.2 or later.
44
+
45
+ ## [0.1.0] - 2026-11-13
46
+
47
+ ### Added
48
+ - Local stdio MCP server `digivalt-mcp`.
49
+ - Tools: `site_info`, `list_post_types`, `list_pages`, `get_page`, `list_blocks`, `list_shortcodes`, `validate_page`.
50
+ - Resources: workflow and layout guides, shortcode and block catalogues.
51
+ - Local renderability validator plus the `wp-pagesync` 2.x server validator.
52
+ - WordPress application-password auth and optional Cloudflare Access service token; Access blocks are detected and explained.
53
+ - Integration test against a real WordPress (set `DIGIVALT_MCP_IT_URL`).
54
+
55
+ ### Not yet
56
+ - Write, media, preview, promote, publish and rollback tools.