kojee-mcp 0.1.2 → 0.1.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.
@@ -522,12 +522,6 @@ var BUILTIN_TOOL_NAMES = /* @__PURE__ */ new Set([
522
522
  "kojee_revoke_request",
523
523
  "kojee_send_feedback"
524
524
  ]);
525
- function extractConnector(toolName) {
526
- if (BUILTIN_TOOL_NAMES.has(toolName)) return null;
527
- const idx = toolName.indexOf("_");
528
- if (idx === -1) return null;
529
- return toolName.substring(0, idx);
530
- }
531
525
  var ToolRegistry = class {
532
526
  constructor(gateway) {
533
527
  this.gateway = gateway;
@@ -550,8 +544,12 @@ var ToolRegistry = class {
550
544
  }
551
545
  for (const tool of toolList) {
552
546
  this.allToolNames.add(tool.name);
553
- const connector = extractConnector(tool.name);
554
- if (!connector) continue;
547
+ if (BUILTIN_TOOL_NAMES.has(tool.name)) continue;
548
+ const connector = tool._connector_id ?? (tool.name.includes("_") ? tool.name.substring(0, tool.name.indexOf("_")) : null);
549
+ if (!connector) {
550
+ console.error(`[tools] Skipping tool with no connector: ${tool.name}`);
551
+ continue;
552
+ }
555
553
  let info = this.connectors.get(connector);
556
554
  if (!info) {
557
555
  info = { id: connector, tools: [] };
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startProxy
4
- } from "./chunk-WIXI3EVR.js";
4
+ } from "./chunk-AYJ6WN2K.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startProxy
3
- } from "./chunk-WIXI3EVR.js";
3
+ } from "./chunk-AYJ6WN2K.js";
4
4
  export {
5
5
  startProxy
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kojee-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Local MCP proxy for Kojee — handles DPoP auth, tool discovery, and governance transparently",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",