@vincemakes/kiso-mcp-ext 0.14.0 → 0.15.1

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.
Files changed (2) hide show
  1. package/dist/kiso-mcp.mjs +19 -17
  2. package/package.json +2 -2
package/dist/kiso-mcp.mjs CHANGED
@@ -7518,6 +7518,25 @@ var require_content_type = __commonJS({
7518
7518
  }
7519
7519
  });
7520
7520
 
7521
+ // src/status.ts
7522
+ function statusTool(status) {
7523
+ return {
7524
+ name: "mcp__status",
7525
+ description: "list MCP server connection status",
7526
+ parameters: { type: "object", properties: {}, additionalProperties: false },
7527
+ execute: async () => ({
7528
+ content: status.map((s) => {
7529
+ const tail = s.stderr?.tail();
7530
+ if (tail === void 0 || tail === "") return `${s.server}: ${s.state} \u2014 ${s.detail}`;
7531
+ return `${s.server}: ${s.state} \u2014 ${s.detail}
7532
+ stderr tail:
7533
+ ${tail.trimEnd().split("\n").map((line) => ` ${line}`).join("\n")}`;
7534
+ }).join("\n"),
7535
+ isError: false
7536
+ })
7537
+ };
7538
+ }
7539
+
7521
7540
  // src/index.ts
7522
7541
  import { readFileSync, writeFileSync } from "node:fs";
7523
7542
  import { homedir } from "node:os";
@@ -18134,23 +18153,6 @@ function readConfig(path) {
18134
18153
  }
18135
18154
  return cfg;
18136
18155
  }
18137
- function statusTool(status) {
18138
- return {
18139
- name: "mcp__status",
18140
- description: "list MCP server connection status",
18141
- parameters: { type: "object", properties: {} },
18142
- execute: async () => ({
18143
- content: status.map((s) => {
18144
- const tail = s.stderr?.tail();
18145
- if (tail === void 0 || tail === "") return `${s.server}: ${s.state} \u2014 ${s.detail}`;
18146
- return `${s.server}: ${s.state} \u2014 ${s.detail}
18147
- stderr tail:
18148
- ${tail.trimEnd().split("\n").map((line) => ` ${line}`).join("\n")}`;
18149
- }).join("\n"),
18150
- isError: false
18151
- })
18152
- };
18153
- }
18154
18156
  async function connectServer(name, cfg, clients) {
18155
18157
  const client = new Client({ name: "kiso-mcp", version: "0.1.7" });
18156
18158
  clients.push(client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-mcp-ext",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "kiso official MCP bridge extension — MCP servers become mcp__ tools, kernel untouched",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@modelcontextprotocol/sdk": "^1.0.0",
27
- "@vincemakes/kiso-core": "0.14.0",
27
+ "@vincemakes/kiso-core": "0.15.1",
28
28
  "@types/node": "^26.1.2",
29
29
  "esbuild": "^0.24.0",
30
30
  "typescript": "^5.7.2",