@adobe/design-data-agent-mcp 1.6.6 → 1.7.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/package.json +2 -2
- package/skills/design-data/SKILL.md +3 -0
- package/src/tools/read.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-data-agent-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
33
33
|
"@adobe/design-data": "2.0.3",
|
|
34
34
|
"@adobe/design-data-wasm": "0.4.0",
|
|
35
|
-
"@adobe/spectrum-design-data": "0.7.
|
|
35
|
+
"@adobe/spectrum-design-data": "0.7.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"ava": "^6.0.1"
|
|
@@ -4,6 +4,9 @@ description: >
|
|
|
4
4
|
Validate, query, resolve, diff, and author spec-conformant design tokens and components using the
|
|
5
5
|
design-data MCP tools against a local dataset. Use when the user asks about design tokens, a design
|
|
6
6
|
system, token lookup, spec-conformance, drift detection, or token authoring on custom data.
|
|
7
|
+
metadata:
|
|
8
|
+
author: adobe
|
|
9
|
+
version: "1.7.2"
|
|
7
10
|
when_to_use: >
|
|
8
11
|
Trigger on: design system, design tokens, spec-conformant, drift, validate tokens, token
|
|
9
12
|
authoring, custom dataset, DESIGN_DATA_PATH, design-data validate, design-data diff,
|
package/src/tools/read.js
CHANGED
|
@@ -77,11 +77,16 @@ export function createReadTools() {
|
|
|
77
77
|
// shape uses keyed objects (matching the sibling design-data-mcp), which agents
|
|
78
78
|
// and the SKILL.md skill prompt consume by key name. Skill contract:
|
|
79
79
|
// tokenCount, modeSets.{colorScheme,scale,contrast}, components[],
|
|
80
|
-
// taxonomyFields.{indexed,advisory}.
|
|
81
|
-
//
|
|
80
|
+
// taxonomyFields.{indexed,advisory}. provenance is included for metrics:
|
|
81
|
+
// for the embedded dataset it carries designDataVersion (@adobe/spectrum-design-data
|
|
82
|
+
// version baked in at wasm build time); for custom datasets the source differs.
|
|
82
83
|
const wasm = await getWasm();
|
|
83
84
|
const ds = await getDataset();
|
|
85
|
+
const { provenance } = ds.primer();
|
|
84
86
|
return {
|
|
87
|
+
// top-level source is the legacy skill-contract field; provenance.source
|
|
88
|
+
// duplicates it intentionally — provenance is the richer metrics object
|
|
89
|
+
// and consumers should prefer it going forward.
|
|
85
90
|
source: "embedded",
|
|
86
91
|
tokenCount: ds.tokenCount(),
|
|
87
92
|
modeSets: {
|
|
@@ -95,6 +100,7 @@ export function createReadTools() {
|
|
|
95
100
|
},
|
|
96
101
|
components: wasm.getFieldValues("component") ?? [],
|
|
97
102
|
properties: wasm.getFieldValues("property") ?? [],
|
|
103
|
+
provenance,
|
|
98
104
|
};
|
|
99
105
|
},
|
|
100
106
|
},
|