@public-ui/mcp 4.1.1-rc.0 → 4.1.1-rc.2
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/dist/mcp.cjs +21 -0
- package/dist/mcp.mjs +21 -0
- package/package.json +5 -5
- package/shared/sample-index.json +249 -25
package/dist/mcp.cjs
CHANGED
|
@@ -33,6 +33,7 @@ const {
|
|
|
33
33
|
name: PACKAGE_NAME = "@public-ui/mcp",
|
|
34
34
|
description: PACKAGE_DESCRIPTION
|
|
35
35
|
} = require$1("../package.json");
|
|
36
|
+
const VERSION_INFO_JSON = JSON.stringify({ name: PACKAGE_NAME, version: PACKAGE_VERSION }, null, 2);
|
|
36
37
|
const ENABLE_LOGGING = process.env.MCP_LOGGING === "true" || process.env.MCP_LOGGING === "1";
|
|
37
38
|
function log(type, message, data) {
|
|
38
39
|
if (!ENABLE_LOGGING) return;
|
|
@@ -219,6 +220,26 @@ ${PACKAGE_DESCRIPTION ?? ""}
|
|
|
219
220
|
};
|
|
220
221
|
}
|
|
221
222
|
);
|
|
223
|
+
server.registerResource(
|
|
224
|
+
"version",
|
|
225
|
+
new mcp_js.ResourceTemplate("kolibri://version", { list: void 0 }),
|
|
226
|
+
{
|
|
227
|
+
title: "KoliBri MCP Server Version",
|
|
228
|
+
description: "Get the current version of the KoliBri MCP Server"
|
|
229
|
+
},
|
|
230
|
+
(uri) => {
|
|
231
|
+
log("resource", "version accessed", { uri: uri.href });
|
|
232
|
+
return {
|
|
233
|
+
contents: [
|
|
234
|
+
{
|
|
235
|
+
uri: uri.href,
|
|
236
|
+
mimeType: "application/json",
|
|
237
|
+
text: VERSION_INFO_JSON
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
);
|
|
222
243
|
server.registerResource(
|
|
223
244
|
"best-practices",
|
|
224
245
|
new mcp_js.ResourceTemplate("kolibri://best-practices", { list: void 0 }),
|
package/dist/mcp.mjs
CHANGED
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
name: PACKAGE_NAME = "@public-ui/mcp",
|
|
27
27
|
description: PACKAGE_DESCRIPTION
|
|
28
28
|
} = require$1("../package.json");
|
|
29
|
+
const VERSION_INFO_JSON = JSON.stringify({ name: PACKAGE_NAME, version: PACKAGE_VERSION }, null, 2);
|
|
29
30
|
const ENABLE_LOGGING = process.env.MCP_LOGGING === "true" || process.env.MCP_LOGGING === "1";
|
|
30
31
|
function log(type, message, data) {
|
|
31
32
|
if (!ENABLE_LOGGING) return;
|
|
@@ -212,6 +213,26 @@ ${PACKAGE_DESCRIPTION ?? ""}
|
|
|
212
213
|
};
|
|
213
214
|
}
|
|
214
215
|
);
|
|
216
|
+
server.registerResource(
|
|
217
|
+
"version",
|
|
218
|
+
new ResourceTemplate("kolibri://version", { list: void 0 }),
|
|
219
|
+
{
|
|
220
|
+
title: "KoliBri MCP Server Version",
|
|
221
|
+
description: "Get the current version of the KoliBri MCP Server"
|
|
222
|
+
},
|
|
223
|
+
(uri) => {
|
|
224
|
+
log("resource", "version accessed", { uri: uri.href });
|
|
225
|
+
return {
|
|
226
|
+
contents: [
|
|
227
|
+
{
|
|
228
|
+
uri: uri.href,
|
|
229
|
+
mimeType: "application/json",
|
|
230
|
+
text: VERSION_INFO_JSON
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
);
|
|
215
236
|
server.registerResource(
|
|
216
237
|
"best-practices",
|
|
217
238
|
new ResourceTemplate("kolibri://best-practices", { list: void 0 }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/mcp",
|
|
3
|
-
"version": "4.1.1-rc.
|
|
3
|
+
"version": "4.1.1-rc.2",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"express": "5.2.1",
|
|
47
47
|
"fuse.js": "7.1.0",
|
|
48
48
|
"zod": "4.3.6",
|
|
49
|
-
"@public-ui/components": "4.1.1-rc.
|
|
49
|
+
"@public-ui/components": "4.1.1-rc.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@eslint/js": "9.39.3",
|
|
53
|
-
"@modelcontextprotocol/inspector": "0.21.
|
|
53
|
+
"@modelcontextprotocol/inspector": "0.21.1",
|
|
54
54
|
"@types/express": "5.0.6",
|
|
55
|
-
"@types/node": "25.3.
|
|
55
|
+
"@types/node": "25.3.5",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
57
57
|
"@typescript-eslint/parser": "8.56.1",
|
|
58
58
|
"eslint": "9.39.3",
|
|
59
59
|
"eslint-plugin-json": "4.0.1",
|
|
60
|
-
"globals": "17.
|
|
60
|
+
"globals": "17.4.0",
|
|
61
61
|
"knip": "5.85.0",
|
|
62
62
|
"nodemon": "3.1.14",
|
|
63
63
|
"prettier": "3.8.1",
|