@adobe/design-data-agent-mcp 1.14.0 → 1.14.2

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
@@ -2,6 +2,26 @@
2
2
 
3
3
  MCP server and Claude Code skill for the [Spectrum Design Data](../../packages/design-data/) agent surface. Read tools (`primer`, `resolve_token`, `query_tokens`, `suggest_token`, `describe_component`, `describe_guideline`, `list_guidelines`) run fully in-process via `@adobe/design-data-wasm` — no CLI binary required for those. `suggest_token` uses the wasm `suggest` API directly; `authoring_session_step_intent` still invokes the native binary for session-state-aware ranking within an authoring flow.
4
4
 
5
+ ## Testing guideline content
6
+
7
+ Run `moon run design-data-agent-mcp:test`. For the packaged content contracts only,
8
+ after `moon run sdk-wasm:build`, run:
9
+
10
+ ```sh
11
+ pnpm --filter @adobe/design-data-agent-mcp exec ava test/packaged-guidelines.test.js
12
+ ```
13
+
14
+ The suite uses `pnpm pack` to test the agent's publishable files, extracts the
15
+ tarball into a fresh private tree, and vendors local runtime dependencies using
16
+ the MCPB packaging allowlists. It initializes the packed server over stdio with
17
+ no data overrides, checks the catalog against the canonical manifest, compares
18
+ every guideline response to source JSON, and checks invalid-slug errors. An import
19
+ guard rejects ESM imports and CommonJS requires outside the private tree.
20
+
21
+ Dependencies come from the local build, not registry tarballs, so this is not a
22
+ registry-install test. It does not assess model answer quality. The tests remove
23
+ private staging trees afterward.
24
+
5
25
  ## Install
6
26
 
7
27
  ### Claude Code (skill + optional MCP)
@@ -74,8 +94,9 @@ node tools/design-data-agent-mcp/src/index.js
74
94
  | `DESIGN_DATA_PLATFORM` | — | Select a named `[platforms.<id>]` entry (needs `DESIGN_DATA_CONFIG`) |
75
95
 
76
96
  > **Platform cascade.** If `DESIGN_DATA_CONFIG` is set, the server shells out to
77
- > the `design-data` CLI once at startup (`design-data query --filter "" --format
78
- > json`, run from the config's directory) to resolve its `.design-data.toml`
97
+ > the `design-data` CLI once at startup
98
+ > (`design-data query --filter "" --format json`, run from the config's directory)
99
+ > to resolve its `.design-data.toml`
79
100
  > source (path/npm/github/git) and either its top-level `manifest` cascade or,
80
101
  > if `DESIGN_DATA_PLATFORM` is also set, that named `[platforms.<id>]` entry's
81
102
  > manifest — mirroring the CLI's own `--platform`/`DESIGN_DATA_PLATFORM`, then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-agent-mcp",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "MCP server and Claude Code skill for the design-data agent surface — read tools run in-process via wasm",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.27.1",
33
- "@adobe/design-data": "3.2.2",
34
- "@adobe/design-data-wasm": "0.10.1",
35
- "@adobe/spectrum-design-data": "3.3.0"
33
+ "@adobe/design-data-wasm": "0.10.3",
34
+ "@adobe/design-data": "3.2.4",
35
+ "@adobe/spectrum-design-data": "3.4.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "ava": "^6.0.1"
@@ -6,7 +6,7 @@ description: >
6
6
  system, token lookup, spec-conformance, drift detection, or token authoring on custom data.
7
7
  metadata:
8
8
  author: adobe
9
- version: "1.14.0"
9
+ version: "1.14.2"
10
10
  when_to_use: >
11
11
  Trigger on: design system, design tokens, spec-conformant, drift, validate tokens, token
12
12
  authoring, custom dataset, DESIGN_DATA_PATH, design-data validate, design-data diff,