@jive-ai/cli 0.0.18 → 0.0.20
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/dist/index.mjs +38 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1281,6 +1281,15 @@ var McpConnectionManager = class {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
return results;
|
|
1283
1283
|
}
|
|
1284
|
+
serverIsActive(serverName) {
|
|
1285
|
+
return this.clients.has(serverName);
|
|
1286
|
+
}
|
|
1287
|
+
listActiveServers() {
|
|
1288
|
+
return Array.from(this.clients.keys()).map((server) => ({
|
|
1289
|
+
id: server,
|
|
1290
|
+
name: server
|
|
1291
|
+
}));
|
|
1292
|
+
}
|
|
1284
1293
|
listTools(serverName) {
|
|
1285
1294
|
return Array.from(this.tools.values()).filter((tool) => tool.serverName === serverName).map((tool) => ({
|
|
1286
1295
|
id: tool.id,
|
|
@@ -1420,6 +1429,22 @@ async function startMcpServer() {
|
|
|
1420
1429
|
properties: {}
|
|
1421
1430
|
}
|
|
1422
1431
|
},
|
|
1432
|
+
{
|
|
1433
|
+
name: "get_mcp_servers",
|
|
1434
|
+
description: "Get full MCP server details by their IDs",
|
|
1435
|
+
inputSchema: {
|
|
1436
|
+
type: "object",
|
|
1437
|
+
properties: { ids: {
|
|
1438
|
+
type: "array",
|
|
1439
|
+
items: {
|
|
1440
|
+
type: "string",
|
|
1441
|
+
description: "MCP server ID to retrieve"
|
|
1442
|
+
},
|
|
1443
|
+
description: "Array of MCP server IDs to retrieve"
|
|
1444
|
+
} },
|
|
1445
|
+
required: ["ids"]
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1423
1448
|
{
|
|
1424
1449
|
name: "list_tools",
|
|
1425
1450
|
description: "List all MCP tools for the selected team. Returns lightweight list of tool names, descriptions and IDs.",
|
|
@@ -1523,8 +1548,18 @@ async function startMcpServer() {
|
|
|
1523
1548
|
text: (await apiRequest(`/api/subagents/${args.id}/call`, { prompt: args.prompt })).prompt
|
|
1524
1549
|
}] };
|
|
1525
1550
|
case "list_mcp_servers": {
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1551
|
+
const results = mcpServers.filter((server$1) => connectionManager.serverIsActive(server$1.name)).map((server$1) => ({
|
|
1552
|
+
name: server$1.name,
|
|
1553
|
+
description: truncateString(server$1.description, 100),
|
|
1554
|
+
id: server$1.id
|
|
1555
|
+
}));
|
|
1556
|
+
return { content: [{
|
|
1557
|
+
type: "text",
|
|
1558
|
+
text: JSON.stringify(results, null, 2)
|
|
1559
|
+
}] };
|
|
1560
|
+
}
|
|
1561
|
+
case "get_mcp_servers": {
|
|
1562
|
+
const results = mcpServers.filter((server$1) => args.ids.includes(server$1.id) && connectionManager.serverIsActive(server$1.name));
|
|
1528
1563
|
return { content: [{
|
|
1529
1564
|
type: "text",
|
|
1530
1565
|
text: JSON.stringify(results, null, 2)
|
|
@@ -2103,7 +2138,7 @@ async function checkTeamMembership() {
|
|
|
2103
2138
|
|
|
2104
2139
|
//#endregion
|
|
2105
2140
|
//#region package.json
|
|
2106
|
-
var version = "0.0.
|
|
2141
|
+
var version = "0.0.20";
|
|
2107
2142
|
|
|
2108
2143
|
//#endregion
|
|
2109
2144
|
//#region src/index.ts
|