@public-ui/mcp 4.0.0-alpha.9 → 4.0.0-beta.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 CHANGED
@@ -111,16 +111,18 @@ kolibri-mcp
111
111
 
112
112
  #### VS Code Copilot (Local)
113
113
 
114
- ````json
114
+ ```json
115
115
  {
116
- "servers": {
117
- "kolibri": {
118
- "command": "kolibri-mcp"
119
- }
120
- },
121
- "inputs": []
116
+ "servers": {
117
+ "kolibri": {
118
+ "command": "kolibri-mcp"
119
+ }
120
+ },
121
+ "inputs": []
122
122
  }
123
- ```#### Claude Desktop (Local)
123
+ ```
124
+
125
+ #### Claude Desktop (Local)
124
126
 
125
127
  ```json
126
128
  {
@@ -131,7 +133,7 @@ kolibri-mcp
131
133
  }
132
134
  }
133
135
  }
134
- ````
136
+ ```
135
137
 
136
138
  ### Self-Hosted HTTP Server
137
139
 
package/dist/cli.mjs CHANGED
@@ -12,8 +12,8 @@ import 'zod';
12
12
  import './search.mjs';
13
13
  import 'fuse.js';
14
14
 
15
- const require = createRequire(import.meta.url);
16
- const { version: PACKAGE_VERSION = "0.0.0" } = require("../package.json");
15
+ const require$1 = createRequire(import.meta.url);
16
+ const { version: PACKAGE_VERSION = "0.0.0" } = require$1("../package.json");
17
17
  const ENABLE_LOGGING = process.env.MCP_LOGGING === "true" || process.env.MCP_LOGGING === "1";
18
18
  async function main() {
19
19
  const server = createKolibriMcpServer();
package/dist/data.cjs CHANGED
@@ -8,8 +8,7 @@ let cachedData;
8
8
  function calculateCounts(entries) {
9
9
  const byKind = {};
10
10
  for (const entry of entries) {
11
- const key = entry.kind;
12
- byKind[key] = (byKind[key] ?? 0) + 1;
11
+ byKind[entry.kind] = (byKind[entry.kind] ?? 0) + 1;
13
12
  }
14
13
  return {
15
14
  total: entries.length,
@@ -55,10 +54,8 @@ function loadSampleData() {
55
54
  return cachedData;
56
55
  }
57
56
  try {
58
- const sharedIndexUrl = new URL("../shared/sample-index.json", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('data.cjs', document.baseURI).href)));
59
- const filePath = node_url.fileURLToPath(sharedIndexUrl);
60
- const raw = node_fs.readFileSync(filePath, "utf8");
61
- const parsed = JSON.parse(raw);
57
+ const indexPath = node_url.fileURLToPath(new URL("../shared/sample-index.json", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('data.cjs', document.baseURI).href))));
58
+ const parsed = JSON.parse(node_fs.readFileSync(indexPath, "utf8"));
62
59
  const entries = Array.isArray(parsed.entries) ? parsed.entries.map(normalizeEntry) : [];
63
60
  if (entries.length === 0) {
64
61
  throw new Error("Sample index does not contain any entries.");
@@ -67,9 +64,8 @@ function loadSampleData() {
67
64
  cachedData = { entries, metadata };
68
65
  return cachedData;
69
66
  } catch (error) {
70
- const message = error instanceof Error ? error.message : String(error);
71
67
  throw new Error(
72
- `Failed to load sample index from shared/sample-index.json. Please run 'pnpm generate-index' to create the index file. Error: ${message}`
68
+ `Failed to load sample index from shared/sample-index.json. Please run 'pnpm generate-index' to create the index file. Error: ${error instanceof Error ? error.message : String(error)}`
73
69
  );
74
70
  }
75
71
  }
package/dist/data.mjs CHANGED
@@ -5,8 +5,7 @@ let cachedData;
5
5
  function calculateCounts(entries) {
6
6
  const byKind = {};
7
7
  for (const entry of entries) {
8
- const key = entry.kind;
9
- byKind[key] = (byKind[key] ?? 0) + 1;
8
+ byKind[entry.kind] = (byKind[entry.kind] ?? 0) + 1;
10
9
  }
11
10
  return {
12
11
  total: entries.length,
@@ -52,10 +51,8 @@ function loadSampleData() {
52
51
  return cachedData;
53
52
  }
54
53
  try {
55
- const sharedIndexUrl = new URL("../shared/sample-index.json", import.meta.url);
56
- const filePath = fileURLToPath(sharedIndexUrl);
57
- const raw = readFileSync(filePath, "utf8");
58
- const parsed = JSON.parse(raw);
54
+ const indexPath = fileURLToPath(new URL("../shared/sample-index.json", import.meta.url));
55
+ const parsed = JSON.parse(readFileSync(indexPath, "utf8"));
59
56
  const entries = Array.isArray(parsed.entries) ? parsed.entries.map(normalizeEntry) : [];
60
57
  if (entries.length === 0) {
61
58
  throw new Error("Sample index does not contain any entries.");
@@ -64,9 +61,8 @@ function loadSampleData() {
64
61
  cachedData = { entries, metadata };
65
62
  return cachedData;
66
63
  } catch (error) {
67
- const message = error instanceof Error ? error.message : String(error);
68
64
  throw new Error(
69
- `Failed to load sample index from shared/sample-index.json. Please run 'pnpm generate-index' to create the index file. Error: ${message}`
65
+ `Failed to load sample index from shared/sample-index.json. Please run 'pnpm generate-index' to create the index file. Error: ${error instanceof Error ? error.message : String(error)}`
70
66
  );
71
67
  }
72
68
  }
package/dist/mcp.mjs CHANGED
@@ -20,12 +20,12 @@ function formatTagsForText(tags) {
20
20
  const normalized = normalizeTags(tags);
21
21
  return normalized.length > 0 ? normalized.join(", ") : "none";
22
22
  }
23
- const require = createRequire(import.meta.url);
23
+ const require$1 = createRequire(import.meta.url);
24
24
  const {
25
25
  version: PACKAGE_VERSION = "0.0.0",
26
26
  name: PACKAGE_NAME = "@public-ui/mcp",
27
27
  description: PACKAGE_DESCRIPTION
28
- } = require("../package.json");
28
+ } = require$1("../package.json");
29
29
  const ENABLE_LOGGING = process.env.MCP_LOGGING === "true" || process.env.MCP_LOGGING === "1";
30
30
  function log(type, message, data) {
31
31
  if (!ENABLE_LOGGING) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/mcp",
3
- "version": "4.0.0-alpha.9",
3
+ "version": "4.0.0-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -46,20 +46,19 @@
46
46
  "express": "5.2.1",
47
47
  "fuse.js": "7.1.0",
48
48
  "zod": "3.25.76",
49
- "@public-ui/components": "4.0.0-alpha.9"
49
+ "@public-ui/components": "4.0.0-beta.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@modelcontextprotocol/inspector": "0.17.5",
53
53
  "@types/express": "5.0.6",
54
- "@types/node": "24.10.1",
54
+ "@types/node": "24.10.4",
55
55
  "@typescript-eslint/eslint-plugin": "7.18.0",
56
56
  "@typescript-eslint/parser": "7.18.0",
57
57
  "eslint": "8.57.1",
58
58
  "eslint-config-prettier": "9.1.2",
59
59
  "eslint-plugin-html": "8.1.3",
60
- "eslint-plugin-jsdoc": "50.8.0",
61
60
  "eslint-plugin-json": "3.1.0",
62
- "knip": "5.71.0",
61
+ "knip": "5.73.4",
63
62
  "nodemon": "3.1.11",
64
63
  "prettier": "3.7.4",
65
64
  "prettier-plugin-organize-imports": "4.3.0",