kibi-mcp 3.16.1 → 3.16.3

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/bin/kibi-mcp CHANGED
@@ -16,6 +16,17 @@
16
16
  You should have received a copy of the GNU Affero General Public License
17
17
  along with this program. If not, see <https://www.gnu.org/licenses/>.
18
18
  */
19
+ // Kibi needs Node.js 22+ (package "engines"), but npm only warns on a
20
+ // mismatch. Fail before loading anything, with the Node that was found.
21
+ const nodeMajor = Number(process.versions.node.split(".")[0]);
22
+ if (!globalThis.Bun && nodeMajor < 22) {
23
+ process.stderr.write(
24
+ `kibi-mcp requires Node.js 22 or later, but was started with Node.js ${process.versions.node} (${process.execPath}). ` +
25
+ "Put Node.js 22+ first on PATH, including for the host that launches it, and retry.\n",
26
+ );
27
+ process.exit(1);
28
+ }
29
+
19
30
  const args = globalThis.Bun?.argv?.slice(2) ?? process.argv.slice(2);
20
31
 
21
32
  async function importStartupResolution() {
@@ -132,11 +132,14 @@ export function buildDiagnosticToolCall(input) {
132
132
  business_args: payload.businessArgs,
133
133
  raw_args_redacted: redactDiagnosticArgs(input.args),
134
134
  retry_key: deriveDiagnosticRetryKey(input.tool, input.args),
135
- hint: deriveDiagnosticHints({
136
- tool: input.tool,
137
- error: input.error ?? new Error("diagnostic tool call"),
138
- businessArgs: payload.businessArgs,
139
- }),
135
+ // A successful call has no error to explain, so it carries no hint.
136
+ hint: input.error
137
+ ? deriveDiagnosticHints({
138
+ tool: input.tool,
139
+ error: input.error,
140
+ businessArgs: payload.businessArgs,
141
+ })
142
+ : "",
140
143
  diagnostic_error: diagnosticError,
141
144
  diagnostic_telemetry: input.telemetry ?? payload.telemetry,
142
145
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kibi-mcp",
3
- "version": "3.16.1",
3
+ "version": "3.16.3",
4
4
  "mcpName": "io.github.Looted/kibi-mcp",
5
5
  "dependencies": {
6
6
  "@modelcontextprotocol/sdk": "^1.32.1",
@@ -10,8 +10,8 @@
10
10
  "fast-glob": "^3.2.12",
11
11
  "gray-matter": "^4.0.3",
12
12
  "js-yaml": "^4.1.0",
13
- "kibi-runtime": "^2.18.1",
14
- "kibi-core": "^0.22.4",
13
+ "kibi-runtime": "^2.19.0",
14
+ "kibi-core": "^0.22.5",
15
15
  "zod": "^4.6.7"
16
16
  },
17
17
  "type": "module",