@decantr/mcp-server 1.0.0-beta.8 → 1.0.0
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 +28 -6
- package/dist/bin.js +1 -1
- package/dist/chunk-WN4I3BY6.js +2063 -0
- package/dist/critique-VEROHUF4.js +5 -0
- package/dist/index.js +1 -1
- package/package.json +15 -10
- package/LICENSE +0 -21
- package/dist/chunk-NZBC33FN.js +0 -1166
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @decantr/mcp-server
|
|
2
2
|
|
|
3
|
+
Support status: `core-supported`
|
|
4
|
+
Release channel: `stable`
|
|
5
|
+
|
|
3
6
|
Design intelligence for AI-generated UI. Make Claude, Cursor, and Windsurf generate better code.
|
|
4
7
|
|
|
5
8
|
- **Structured design context** -- gives your AI assistant patterns, layouts, and component specs instead of letting it guess
|
|
@@ -57,24 +60,40 @@ Add to your Windsurf MCP config (`~/.windsurf/mcp.json`):
|
|
|
57
60
|
}
|
|
58
61
|
```
|
|
59
62
|
|
|
60
|
-
## Tools
|
|
63
|
+
## Key Tools
|
|
64
|
+
|
|
65
|
+
The server exposes Decantr registry, context, benchmark, and verification tools. Highlights:
|
|
61
66
|
|
|
62
67
|
| Tool | Description | Example Input |
|
|
63
68
|
|------|-------------|---------------|
|
|
64
69
|
| `decantr_create_essence` | Generate an Essence spec skeleton from a project description | `{ "description": "SaaS dashboard with analytics and billing", "framework": "react" }` |
|
|
65
70
|
| `decantr_read_essence` | Read the current `decantr.essence.json` from the working directory | `{}` or `{ "path": "./custom.essence.json" }` |
|
|
66
71
|
| `decantr_validate` | Validate an Essence file against the schema and guard rules | `{ "path": "./decantr.essence.json" }` |
|
|
67
|
-
| `decantr_search_registry` | Search the community registry for patterns, archetypes,
|
|
72
|
+
| `decantr_search_registry` | Search the community registry for patterns, archetypes, themes, and shells | `{ "query": "kanban", "type": "pattern" }` |
|
|
68
73
|
| `decantr_resolve_pattern` | Get full pattern details: layout spec, components, presets, code examples | `{ "id": "data-table", "preset": "product" }` |
|
|
69
74
|
| `decantr_resolve_archetype` | Get archetype details: default pages, layouts, features, suggested theme | `{ "id": "saas-dashboard" }` |
|
|
70
|
-
| `decantr_resolve_recipe` | Get recipe decoration rules: shell styles, spatial hints, visual effects | `{ "id": "auradecantism" }` |
|
|
71
75
|
| `decantr_resolve_blueprint` | Get a full app composition with page structure and personality traits | `{ "id": "ecommerce" }` |
|
|
72
76
|
| `decantr_suggest_patterns` | Given a page description, get ranked pattern suggestions | `{ "description": "dashboard with metrics and charts" }` |
|
|
73
77
|
| `decantr_check_drift` | Check if generated code violates the design intent in the Essence spec | `{ "page_id": "overview", "components_used": ["Card", "LineChart"], "theme_used": "auradecantism" }` |
|
|
78
|
+
| `decantr_get_execution_pack` | Read compiled scaffold, section, page, review, or mutation execution packs, with hosted fallback when local context is missing | `{ "pack_type": "page", "id": "overview", "format": "json" }` |
|
|
79
|
+
| `decantr_compile_execution_packs` | Compile a hosted execution-pack bundle from a local or inline essence document | `{ "path": "./decantr.essence.json", "namespace": "@official" }` |
|
|
80
|
+
| `decantr_audit_project` | Run the schema-backed Decantr project audit against essence and compiled packs, with hosted fallback when local pack artifacts are missing | `{ "namespace": "@official" }` |
|
|
81
|
+
| `decantr_critique` | Critique a file against the compiled review contract, with hosted fallback when local review packs are missing | `{ "file_path": "./src/pages/Overview.tsx", "namespace": "@official" }` |
|
|
82
|
+
| `decantr_get_showcase_benchmarks` | Read the audited showcase corpus manifest, shortlist, or verification report | `{ "view": "verification" }` |
|
|
83
|
+
|
|
84
|
+
For the broader product surface and support policy, see the root Decantr docs and package support matrix.
|
|
85
|
+
|
|
86
|
+
## Compatibility
|
|
87
|
+
|
|
88
|
+
`@decantr/mcp-server` is stable in the `1.x` line for the documented MCP tool surface.
|
|
89
|
+
|
|
90
|
+
- new tools may be added in compatible releases
|
|
91
|
+
- existing documented tool names and envelopes should not break without a major version
|
|
92
|
+
- breaking changes to established tool contracts require a major version and migration note
|
|
74
93
|
|
|
75
94
|
## How It Works
|
|
76
95
|
|
|
77
|
-
An Essence spec (`decantr.essence.json`) captures your design intent -- archetype, theme, page structure, patterns, and guard rules -- in a single declarative file. The MCP server exposes this spec and the Decantr registry to your AI assistant, giving it concrete layout specs, component lists, and
|
|
96
|
+
An Essence spec (`decantr.essence.json`) captures your design intent -- archetype, theme, page structure, patterns, and guard rules -- in a single declarative file. The MCP server exposes this spec and the Decantr registry to your AI assistant, giving it concrete layout specs, component lists, and visual treatments instead of relying on the model's generic training data. The result is generated code that follows a coherent design system, and drift detection that catches deviations before they ship.
|
|
78
97
|
|
|
79
98
|
## Example Workflow
|
|
80
99
|
|
|
@@ -86,8 +105,11 @@ The AI assistant calls these tools behind the scenes:
|
|
|
86
105
|
2. `decantr_resolve_archetype` -- pulls default pages, layouts, and features for a SaaS dashboard
|
|
87
106
|
3. `decantr_suggest_patterns` -- recommends `kpi-grid`, `chart-grid`, `data-table`, and `form-sections` for the described pages
|
|
88
107
|
4. `decantr_resolve_pattern` -- fetches layout specs and component lists for each pattern
|
|
89
|
-
5. `
|
|
90
|
-
6. `
|
|
108
|
+
5. `decantr_get_execution_pack` -- loads the compiled scaffold/page/review packs as the task contract, falling back to hosted compilation when local pack artifacts are missing
|
|
109
|
+
6. `decantr_compile_execution_packs` -- compiles the hosted pack bundle when the task needs a fresh remote contract from the essence document
|
|
110
|
+
7. `decantr_check_drift` -- validates the generated code against the Essence spec before presenting it
|
|
111
|
+
8. `decantr_critique` -- critiques a specific file, falling back to the hosted verifier when the local review pack is missing
|
|
112
|
+
9. `decantr_audit_project` -- runs the stronger project-level audit once the implementation is in place
|
|
91
113
|
|
|
92
114
|
The AI now generates code with the right layout structure, correct components, and consistent styling -- not a generic guess.
|
|
93
115
|
|
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-WN4I3BY6.js";
|