@decantr/mcp-server 1.0.2 → 1.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Decantr AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # @decantr/mcp-server
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@decantr/mcp-server?style=flat-square)](https://www.npmjs.com/package/@decantr/mcp-server)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@decantr/mcp-server?style=flat-square)](https://www.npmjs.com/package/@decantr/mcp-server)
5
+ [![license](https://img.shields.io/npm/l/@decantr/mcp-server?style=flat-square)](./LICENSE)
6
+ [![MCP compatible](https://img.shields.io/badge/MCP-compatible-0096FF?style=flat-square)](https://modelcontextprotocol.io)
7
+
3
8
  Support status: `core-supported`
4
9
  Release channel: `stable`
5
10
 
6
11
  Design intelligence for AI-generated UI. Make Claude, Cursor, and Windsurf generate better code.
7
12
 
13
+ ![Decantr MCP demo](https://raw.githubusercontent.com/decantr-ai/decantr/main/packages/mcp-server/assets/decantr-demo.gif)
14
+
8
15
  - **Structured design context** -- gives your AI assistant patterns, layouts, and component specs instead of letting it guess
9
16
  - **Drift detection** -- catches when generated code deviates from your design intent
10
17
  - **Zero config** -- run with `npx`, no API keys or accounts required
@@ -60,6 +67,58 @@ Add to your Windsurf MCP config (`~/.windsurf/mcp.json`):
60
67
  }
61
68
  ```
62
69
 
70
+ ### VS Code
71
+
72
+ Create `.vscode/mcp.json` in your workspace (or add to your user profile `mcp.json`):
73
+
74
+ ```json
75
+ {
76
+ "servers": {
77
+ "decantr": {
78
+ "command": "npx",
79
+ "args": ["-y", "@decantr/mcp-server"]
80
+ }
81
+ }
82
+ }
83
+ ```
84
+
85
+ MCP tools are available in VS Code Copilot Chat agent mode.
86
+
87
+ ### Zed
88
+
89
+ Add to your Zed `settings.json`:
90
+
91
+ ```json
92
+ {
93
+ "context_servers": {
94
+ "decantr": {
95
+ "command": "npx",
96
+ "args": ["-y", "@decantr/mcp-server"],
97
+ "env": {}
98
+ }
99
+ }
100
+ }
101
+ ```
102
+
103
+ ### Continue.dev
104
+
105
+ Create `.continue/mcpServers/decantr.yaml` in your workspace:
106
+
107
+ ```yaml
108
+ name: Decantr MCP Server
109
+ version: 0.0.1
110
+ schema: v1
111
+ mcpServers:
112
+ - name: Decantr
113
+ type: stdio
114
+ command: npx
115
+ args:
116
+ - "-y"
117
+ - "@decantr/mcp-server"
118
+ ```
119
+
120
+ MCP tools are only available in Continue.dev agent mode.
121
+
63
122
  ## Key Tools
64
123
 
65
124
  The server exposes Decantr registry, context, benchmark, and verification tools. Highlights:
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-WN4I3BY6.js";
2
+ import "./chunk-UNVKE2YC.js";
@@ -1272,7 +1272,7 @@ async function handleTool(name, args) {
1272
1272
  meta: {
1273
1273
  archetype: bestMatch,
1274
1274
  target: framework,
1275
- platform: { type: "spa", routing: "hash" },
1275
+ platform: { type: "spa", routing: "history" },
1276
1276
  guard: { mode: "strict", dna_enforcement: "error", blueprint_enforcement: "warn" }
1277
1277
  }
1278
1278
  };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import "./chunk-WN4I3BY6.js";
1
+ import "./chunk-UNVKE2YC.js";
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "@decantr/mcp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
+ "mcpName": "io.github.decantr-ai/mcp-server",
4
5
  "description": "MCP server for Decantr — exposes design intelligence, packs, and verification to AI coding assistants",
6
+ "keywords": [
7
+ "mcp",
8
+ "mcp-server",
9
+ "model-context-protocol",
10
+ "ai",
11
+ "llm",
12
+ "ai-coding",
13
+ "claude",
14
+ "cursor",
15
+ "windsurf",
16
+ "design-system",
17
+ "design-intelligence",
18
+ "ui-generation",
19
+ "drift-detection"
20
+ ],
5
21
  "author": "Decantr AI",
6
22
  "license": "MIT",
7
23
  "bugs": {
@@ -25,15 +41,15 @@
25
41
  "publishConfig": {
26
42
  "access": "public"
27
43
  },
44
+ "dependencies": {
45
+ "@modelcontextprotocol/sdk": "^1.29.0",
46
+ "@decantr/essence-spec": "1.0.3",
47
+ "@decantr/registry": "1.0.2",
48
+ "@decantr/verifier": "1.0.2"
49
+ },
28
50
  "scripts": {
29
51
  "build": "tsup",
30
52
  "test": "vitest run",
31
53
  "test:watch": "vitest"
32
- },
33
- "dependencies": {
34
- "@decantr/essence-spec": "workspace:*",
35
- "@decantr/registry": "workspace:*",
36
- "@decantr/verifier": "workspace:*",
37
- "@modelcontextprotocol/sdk": "^1.29.0"
38
54
  }
39
- }
55
+ }