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
|
-
|
|
554
|
-
|
|
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
package/dist/index.js
CHANGED