@treeui/mcp 0.1.0 → 0.2.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/LICENSE +22 -0
- package/dist/{chunk-SNF26WKA.js → chunk-HN245XRN.js} +482 -356
- package/dist/cli.cjs +482 -356
- package/dist/cli.js +1 -1
- package/dist/index.cjs +485 -361
- package/dist/index.js +4 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
recommendComponents,
|
|
10
10
|
searchComponents,
|
|
11
11
|
searchRecipes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HN245XRN.js";
|
|
13
13
|
|
|
14
14
|
// src/catalog-source.ts
|
|
15
15
|
import fs from "fs";
|
|
@@ -279,11 +279,9 @@ var buildCatalogFromRepo = (repoRoot) => {
|
|
|
279
279
|
const setup2 = normalizeSetupEntry(componentSetup[name]);
|
|
280
280
|
const aliases = Array.from(
|
|
281
281
|
new Set(
|
|
282
|
-
[
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
name.startsWith("T") ? `Tree${name.slice(1)}` : void 0
|
|
286
|
-
].filter((value) => Boolean(value))
|
|
282
|
+
[...normalizeStringList(document.aliases), aliasMap[name]].filter(
|
|
283
|
+
(value) => Boolean(value)
|
|
284
|
+
)
|
|
287
285
|
)
|
|
288
286
|
);
|
|
289
287
|
const componentRecipes = recipes.filter((recipe) => recipe.compose.includes(name)).map((recipe) => recipe.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeui/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Model Context Protocol server and AI catalog for TreeUI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
24
|
+
"yaml": "^2.9.0"
|
|
25
|
+
},
|
|
22
26
|
"scripts": {
|
|
23
27
|
"generate:catalog": "node --import tsx scripts/generate-catalog.ts",
|
|
24
28
|
"build": "pnpm run generate:catalog && pnpm exec rimraf dist && pnpm exec tsup src/index.ts src/cli.ts --format esm,cjs --dts",
|
|
25
29
|
"start": "node --import tsx src/cli.ts",
|
|
26
30
|
"test": "pnpm -w exec vitest run packages/mcp/src/catalog.test.ts packages/mcp/src/server.test.ts",
|
|
27
31
|
"typecheck": "pnpm exec tsc -p tsconfig.json --noEmit"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
31
|
-
"yaml": "^2.8.1"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|