@adobe/design-data-mcp 1.7.30 → 1.7.32

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
@@ -23,7 +23,7 @@ Add to `.cursor/mcp-servers.json` in your project root:
23
23
  "mcpServers": {
24
24
  "design-data": {
25
25
  "command": "npx",
26
- "args": ["-y", "@adobe/design-data-mcp"]
26
+ "args": ["-y", "@adobe/design-data-mcp@latest"]
27
27
  }
28
28
  }
29
29
  }
@@ -38,12 +38,20 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
38
38
  "mcpServers": {
39
39
  "design-data": {
40
40
  "command": "npx",
41
- "args": ["-y", "@adobe/design-data-mcp"]
41
+ "args": ["-y", "@adobe/design-data-mcp@latest"]
42
42
  }
43
43
  }
44
44
  }
45
45
  ```
46
46
 
47
+ ## Staying current
48
+
49
+ The embedded Spectrum snapshot is baked into the wasm at build time and travels with the
50
+ package version — there's no separate data update to run. Pin `@latest` (as above) so `npx`
51
+ fetches the newest published version rather than reusing whatever it last cached; `-y` alone
52
+ only skips the install confirmation, it doesn't force a re-fetch. Call `design-data-primer` and
53
+ check `provenance.designDataVersion` to see which dataset version is embedded.
54
+
47
55
  ## Tools
48
56
 
49
57
  | Tool | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-mcp",
3
- "version": "1.7.30",
3
+ "version": "1.7.32",
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,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@modelcontextprotocol/sdk": "^1.27.1",
31
- "@adobe/design-data-wasm": "0.7.0",
32
- "@adobe/spectrum-design-data": "2.3.0"
31
+ "@adobe/spectrum-design-data": "2.4.0",
32
+ "@adobe/design-data-wasm": "0.7.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@anthropic-ai/mcpb": "^2.1.2",
package/src/index.js CHANGED
@@ -34,10 +34,18 @@ const packageJson = JSON.parse(
34
34
  readFileSync(resolve(__dirname, "../package.json"), "utf8"),
35
35
  );
36
36
 
37
+ const SERVER_INSTRUCTIONS =
38
+ `This server bundles a snapshot of Spectrum design data (tokens, ` +
39
+ `components, guidelines) baked into its wasm at build time. The data version travels with ` +
40
+ `the package version, so there is nothing to update separately. To get newer Spectrum data, ` +
41
+ `install the latest published package (npx -y @adobe/design-data-mcp@latest — plain ` +
42
+ `"npx -y @adobe/design-data-mcp" can reuse a cached older build). Call design-data-primer ` +
43
+ `and read provenance.designDataVersion to see the embedded dataset version.`;
44
+
37
45
  export function createMCPServer() {
38
46
  const server = new Server(
39
47
  { name: "design-data", version: packageJson.version },
40
- { capabilities: { tools: {} } },
48
+ { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS },
41
49
  );
42
50
 
43
51
  const tools = createDesignDataTools();