@collectui/cli 0.2.17 → 0.2.18
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 +1 -1
- package/src/catalog.mjs +11 -0
- package/src/mcp.mjs +4 -0
package/package.json
CHANGED
package/src/catalog.mjs
CHANGED
|
@@ -97,6 +97,15 @@ export const MCP_PRODUCTS = {
|
|
|
97
97
|
serverName: "21st",
|
|
98
98
|
keyPrefix: "21st_mcp",
|
|
99
99
|
},
|
|
100
|
+
boardui: {
|
|
101
|
+
id: "boardui",
|
|
102
|
+
label: "BoardUI",
|
|
103
|
+
kind: "stdio",
|
|
104
|
+
packageName: "@collectui/bdui",
|
|
105
|
+
args: ["mcp"],
|
|
106
|
+
serverName: "boardui",
|
|
107
|
+
keyPrefix: "bdui",
|
|
108
|
+
},
|
|
100
109
|
};
|
|
101
110
|
|
|
102
111
|
/** 官方 shadcn 通用 MCP(读 components.json 里全部 registries)。 */
|
|
@@ -336,6 +345,8 @@ export const LIBS = [
|
|
|
336
345
|
},
|
|
337
346
|
],
|
|
338
347
|
env: [{ name: "BOARDUI_API_KEY", from: "cliKey" }],
|
|
348
|
+
// 专属 stdio MCP(bdui mcp)+ shadcn 通用 MCP 备选(远端目录同款)
|
|
349
|
+
mcp: "boardui",
|
|
339
350
|
shadcnUiMcp: true,
|
|
340
351
|
verify: ["@boardui/theme"],
|
|
341
352
|
freeVerify: ["@boardui/theme"],
|
package/src/mcp.mjs
CHANGED
|
@@ -70,6 +70,10 @@ export function buildMcpEntries({ units, me, dashToken, registryBase, dashBase,
|
|
|
70
70
|
kind: "stdio",
|
|
71
71
|
serverName: product.serverName ?? product.id,
|
|
72
72
|
packageName: product.packageName,
|
|
73
|
+
// 子命令尾参(boardui mcp 首例):拼进完整 args,renderEntry 原样用
|
|
74
|
+
...(product.args?.length
|
|
75
|
+
? { args: ["-y", `${product.packageName}@latest`, ...product.args] }
|
|
76
|
+
: {}),
|
|
73
77
|
env: { API_KEY: key, ...(product.extraEnv ?? {}) },
|
|
74
78
|
site: unit.site,
|
|
75
79
|
product: product.id,
|