@olane/o-mcp 0.7.12-alpha.9 → 0.7.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-bridge.tool.d.ts","sourceRoot":"","sources":["../../src/mcp-bridge.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAE7D,qBAAa,aAAc,SAAQ,SAAS;IAC1C,OAAO,CAAC,kBAAkB,CAA0B;gBAExC,MAAM,EAAE,WAAW;IAUzB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAsB1D,uBAAuB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-bridge.tool.d.ts","sourceRoot":"","sources":["../../src/mcp-bridge.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAE7D,qBAAa,aAAc,SAAQ,SAAS;IAC1C,OAAO,CAAC,kBAAkB,CAA0B;gBAExC,MAAM,EAAE,WAAW;IAUzB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAsB1D,uBAAuB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA8C/D,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAkC9D,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwBpD,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC;CAkBpB"}
|
|
@@ -52,7 +52,6 @@ export class McpBridgeTool extends oLaneTool {
|
|
|
52
52
|
const mcpClient = new Client({
|
|
53
53
|
name: 'o-node:mcp:' + this.peerId.toString(),
|
|
54
54
|
version: '1.0.0',
|
|
55
|
-
headers: headers,
|
|
56
55
|
});
|
|
57
56
|
await mcpClient.connect(transport);
|
|
58
57
|
const mcpTool = await this.createMcpTool(mcpClient, mcpServerUrl, name, description);
|
|
@@ -60,9 +59,7 @@ export class McpBridgeTool extends oLaneTool {
|
|
|
60
59
|
return {
|
|
61
60
|
_save: true,
|
|
62
61
|
address_to_index: mcpTool.address,
|
|
63
|
-
message: 'Successfully added MCP server
|
|
64
|
-
this.hierarchyManager.getChildren().length +
|
|
65
|
-
' tools',
|
|
62
|
+
message: 'Successfully added MCP server: ' + mcpTool.address.toString(),
|
|
66
63
|
};
|
|
67
64
|
}
|
|
68
65
|
catch (e) {
|
|
@@ -91,7 +88,7 @@ export class McpBridgeTool extends oLaneTool {
|
|
|
91
88
|
return {
|
|
92
89
|
_save: true,
|
|
93
90
|
address_to_index: mcpTool.address,
|
|
94
|
-
message: 'Successfully added local MCP server',
|
|
91
|
+
message: 'Successfully added local MCP server: ' + mcpTool.address.toString(),
|
|
95
92
|
};
|
|
96
93
|
}
|
|
97
94
|
async _tool_search(request) {
|
package/dist/src/mcp.tool.js
CHANGED
|
@@ -15,7 +15,7 @@ export class McpTool extends oLaneTool {
|
|
|
15
15
|
async setupTools() {
|
|
16
16
|
this.logger.debug('Setting up MCP tools');
|
|
17
17
|
const tools = await this.mcpClient.listTools();
|
|
18
|
-
this.logger.debug('MCP tools: ', tools);
|
|
18
|
+
// this.logger.debug('MCP tools: ', tools);
|
|
19
19
|
tools.tools.forEach((tool) => {
|
|
20
20
|
this.logger.debug('Setting up MCP server tool: ' + tool.name);
|
|
21
21
|
this.methods[tool.name] = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-mcp",
|
|
3
|
-
"version": "0.7.12
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.18.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@olane/o-config": "0.7.12
|
|
41
|
-
"@olane/o-core": "0.7.12
|
|
42
|
-
"@olane/o-intelligence": "0.7.12
|
|
43
|
-
"@olane/o-lane": "0.7.12
|
|
44
|
-
"@olane/o-leader": "0.7.12
|
|
45
|
-
"@olane/o-node": "0.7.12
|
|
46
|
-
"@olane/o-protocol": "0.7.12
|
|
47
|
-
"@olane/o-storage": "0.7.12
|
|
48
|
-
"@olane/o-tool": "0.7.12
|
|
40
|
+
"@olane/o-config": "0.7.12",
|
|
41
|
+
"@olane/o-core": "0.7.12",
|
|
42
|
+
"@olane/o-intelligence": "0.7.12",
|
|
43
|
+
"@olane/o-lane": "0.7.12",
|
|
44
|
+
"@olane/o-leader": "0.7.12",
|
|
45
|
+
"@olane/o-node": "0.7.12",
|
|
46
|
+
"@olane/o-protocol": "0.7.12",
|
|
47
|
+
"@olane/o-storage": "0.7.12",
|
|
48
|
+
"@olane/o-tool": "0.7.12",
|
|
49
49
|
"debug": "^4.4.1",
|
|
50
50
|
"dotenv": "^16.5.0",
|
|
51
51
|
"express": "^4.18.2",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"tsx": "^4.20.3",
|
|
73
73
|
"typescript": "5.4.5"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3ae788ffdde8a9ea7d01245cfda5e67052ec263f"
|
|
76
76
|
}
|