@adobe/design-data-mcp 1.8.1 → 1.8.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-mcp",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
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-wasm": "0.9.0",
32
- "@adobe/design-data": "3.1.0",
33
- "@adobe/spectrum-design-data": "3.2.4"
31
+ "@adobe/design-data": "3.2.1",
32
+ "@adobe/design-data-wasm": "0.10.0",
33
+ "@adobe/spectrum-design-data": "3.2.5"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@anthropic-ai/mcpb": "^2.1.2",
@@ -20,7 +20,7 @@ import { createRequire } from "module";
20
20
  import { readFileSync, existsSync } from "fs";
21
21
  import { join, dirname, resolve, sep } from "path";
22
22
 
23
- import { loadGuideline } from "@adobe/design-data/guideline";
23
+ import { listGuidelines, loadGuideline } from "@adobe/design-data/guideline";
24
24
 
25
25
  import { checkDatasetFreshness } from "../dataset-freshness.js";
26
26
 
@@ -110,14 +110,14 @@ function loadDataFile(subdir, id) {
110
110
 
111
111
  /**
112
112
  * Load the guidelines/manifest.json catalog.
113
- * Returns null when the file does not exist (guidelines not yet generated).
113
+ * Returns null when the package or manifest does not exist.
114
114
  */
115
115
  function loadGuidelineManifest() {
116
116
  const pkgRoot = resolveSpectrumDataPackage();
117
117
  if (!pkgRoot) return null;
118
- const manifestPath = join(pkgRoot, "guidelines", "manifest.json");
119
- if (!existsSync(manifestPath)) return null;
120
- return JSON.parse(readFileSync(manifestPath, "utf-8"));
118
+ const guidelinesDir = join(pkgRoot, "guidelines");
119
+ if (!existsSync(guidelinesDir)) return null;
120
+ return { guidelines: listGuidelines(guidelinesDir) };
121
121
  }
122
122
 
123
123
  export function createDesignDataTools() {
@@ -148,7 +148,9 @@ export function createDesignDataTools() {
148
148
  ? {
149
149
  count: manifest.guidelines.length,
150
150
  categories: [
151
- ...new Set(manifest.guidelines.map((g) => g.category)),
151
+ ...new Set(
152
+ manifest.guidelines.map((g) => g.category).filter(Boolean),
153
+ ),
152
154
  ].sort(),
153
155
  }
154
156
  : null;