@adobe/design-data-agent-mcp 1.14.1 → 1.14.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/README.md +23 -2
- package/llms.txt +26 -0
- package/package.json +5 -4
- package/skills/design-data/SKILL.md +1 -1
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
|
|
78
|
-
> json`, run from the config's directory)
|
|
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/llms.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @adobe/design-data-agent-mcp
|
|
2
|
+
|
|
3
|
+
> MCP server and Claude Code skill for the design-data agent surface — read tools run in-process via wasm
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
`npm install @adobe/design-data-agent-mcp`
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
- [README](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md): usage and API overview
|
|
14
|
+
- [Testing guideline content](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#testing-guideline-content)
|
|
15
|
+
- [Install](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#install)
|
|
16
|
+
- [MCP server](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#mcp-server)
|
|
17
|
+
- [Tools exposed](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#tools-exposed)
|
|
18
|
+
- [Skill](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#skill)
|
|
19
|
+
- [License](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/README.md#license)
|
|
20
|
+
- [Repository index](https://github.com/adobe/spectrum-design-data/blob/main/docs/repo-index.md): how this package fits in the repository
|
|
21
|
+
|
|
22
|
+
## Optional
|
|
23
|
+
|
|
24
|
+
- [Changelog](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/CHANGELOG.md)
|
|
25
|
+
- [npm package](https://www.npmjs.com/package/@adobe/design-data-agent-mcp)
|
|
26
|
+
- [Source](https://github.com/adobe/spectrum-design-data/blob/main/tools/design-data-agent-mcp/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-data-agent-mcp",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
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",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"src/",
|
|
12
12
|
".claude-plugin/",
|
|
13
13
|
"skills/",
|
|
14
|
+
"llms.txt",
|
|
14
15
|
"README.md",
|
|
15
16
|
"LICENSE"
|
|
16
17
|
],
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
33
|
-
"@adobe/design-data": "3.2.
|
|
34
|
-
"@adobe/design-data-wasm": "0.10.
|
|
35
|
-
"@adobe/spectrum-design-data": "3.
|
|
34
|
+
"@adobe/design-data": "3.2.5",
|
|
35
|
+
"@adobe/design-data-wasm": "0.10.4",
|
|
36
|
+
"@adobe/spectrum-design-data": "3.5.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"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.
|
|
9
|
+
version: "1.14.3"
|
|
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,
|