@adobe/design-data-mcp 1.8.5 → 1.8.6
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 +20 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -69,6 +69,26 @@ any network failure (offline/air-gapped use is unaffected); set
|
|
|
69
69
|
| `design-data-guideline-list` | List available Spectrum design guideline pages, optionally filtered by category |
|
|
70
70
|
| `design-data-guideline` | Full guideline document by slug ID (purpose, rules, accessibility, examples) |
|
|
71
71
|
|
|
72
|
+
## Testing guideline content
|
|
73
|
+
|
|
74
|
+
Run `moon run design-data-mcp:test`. For the content contracts only, after
|
|
75
|
+
`moon run sdk-wasm:build`, run:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
pnpm --filter @adobe/design-data-mcp exec ava test/bundle-smoke.test.js test/ensure-bundle.test.js
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The smoke suite generates a fresh, private MCPB staging tree for each run and
|
|
82
|
+
calls the guideline tools over stdio with a minimal environment. Import guards
|
|
83
|
+
reject ESM imports and CommonJS requires outside that tree. Catalog assertions
|
|
84
|
+
compare against the current canonical manifest, not a fixed guideline count; every guideline response
|
|
85
|
+
must equal its checked-in JSON. Helper tests seed stale data and verify that
|
|
86
|
+
regeneration replaces it and removes orphan files.
|
|
87
|
+
The tests remove all private staging trees afterward.
|
|
88
|
+
|
|
89
|
+
These tests check transport, packaging, and content delivery. They do not assess
|
|
90
|
+
how a model interprets the guidance.
|
|
91
|
+
|
|
72
92
|
## License
|
|
73
93
|
|
|
74
94
|
Apache-2.0 — see the [project repository](https://github.com/adobe/spectrum-design-data) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-data-mcp",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.6",
|
|
4
4
|
"description": "MCP server for Spectrum design tokens, component schemas, and design guidelines (embedded, offline)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
31
|
-
"@adobe/design-data": "3.2.
|
|
32
|
-
"@adobe/design-data-wasm": "0.10.
|
|
33
|
-
"@adobe/spectrum-design-data": "3.
|
|
31
|
+
"@adobe/design-data": "3.2.4",
|
|
32
|
+
"@adobe/design-data-wasm": "0.10.3",
|
|
33
|
+
"@adobe/spectrum-design-data": "3.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@anthropic-ai/mcpb": "^2.1.2",
|