@olane/o-mcp 0.7.6 → 0.7.8

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;IAgD/D,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+B9D,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;CAuBpB"}
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;IAkD/D,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAiC9D,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"}
@@ -55,9 +55,11 @@ export class McpBridgeTool extends oLaneTool {
55
55
  headers: headers,
56
56
  });
57
57
  await mcpClient.connect(transport);
58
- await this.createMcpTool(mcpClient, mcpServerUrl, name, description);
58
+ const mcpTool = await this.createMcpTool(mcpClient, mcpServerUrl, name, description);
59
59
  this.addedRemoteServers.add(mcpServerUrl);
60
60
  return {
61
+ _save: true,
62
+ address_to_index: mcpTool.address,
61
63
  message: 'Successfully added MCP server with ' +
62
64
  this.hierarchyManager.getChildren().length +
63
65
  ' tools',
@@ -85,9 +87,10 @@ export class McpBridgeTool extends oLaneTool {
85
87
  version: '1.0.0',
86
88
  });
87
89
  await mcpClient.connect(transport);
88
- await this.createMcpTool(mcpClient, args.join(' '), name);
90
+ const mcpTool = await this.createMcpTool(mcpClient, args.join(' '), name);
89
91
  return {
90
92
  _save: true,
93
+ address_to_index: mcpTool.address,
91
94
  message: 'Successfully added local MCP server',
92
95
  };
93
96
  }
@@ -102,7 +105,7 @@ export class McpBridgeTool extends oLaneTool {
102
105
  messages: [
103
106
  {
104
107
  role: 'user',
105
- content: `Search for model context protocol servers. Return all of the information necessary to connect or run the MCP server. Necessary information may include: command to run the MCP server, arguments to run the MCP server, headers to send to the MCP server, remote mcp url, and any other information necessary to run the MCP server. The MCP server is described by:
108
+ content: `Search for model context protocol servers that help with the user's intent. Once an MCP server is found, return the ways to connect or run the MCP server. Include concise instructions around parameters and dependencies if there are any. List MCP endpoint urls that point to the server at the very beginnging of the response.Endpoint values or runtime instructions with arguments or commands must be returned if there are any. Instructions must include: the remote mcp url endpoint, the command to run the MCP server, arguments to run the MCP server, headers to send to the MCP server, and any other information necessary to run the MCP server. If there is a local and a remote option, prefer the remote option.The MCP server is described by:
106
109
  ${provider ? `${++count}. Provider: ${provider}` : ''}
107
110
  ${name ? `${++count}. Name: ${name}` : ''}
108
111
  ${functionality ? `${++count}. Functionality: ${functionality}` : ''}`,
@@ -128,10 +131,6 @@ export class McpBridgeTool extends oLaneTool {
128
131
  await mcpTool.setupTools();
129
132
  await mcpTool.start();
130
133
  this.addChildNode(mcpTool);
131
- await this.useChild(mcpTool.address, {
132
- method: 'index_network',
133
- params: {},
134
- });
135
134
  return mcpTool;
136
135
  }
137
136
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-bridge.methods.d.ts","sourceRoot":"","sources":["../../../src/methods/mcp-bridge.methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CA8GxD,CAAC"}
1
+ {"version":3,"file":"mcp-bridge.methods.d.ts","sourceRoot":"","sources":["../../../src/methods/mcp-bridge.methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CA+GxD,CAAC"}
@@ -30,7 +30,7 @@ export const MCP_BRIDGE_METHODS = {
30
30
  type: 'string',
31
31
  value: 'string',
32
32
  description: 'The name for the MCP server. Generate this in lowercase snake_case if not provided.',
33
- required: true,
33
+ required: false,
34
34
  },
35
35
  {
36
36
  name: 'description',
@@ -50,7 +50,7 @@ export const MCP_BRIDGE_METHODS = {
50
50
  },
51
51
  search: {
52
52
  name: 'search',
53
- description: 'Search for MCP servers',
53
+ description: 'Search for MCP servers based upon the name, provider, or functionality. This returns the MCP server urls or runtime instructions with arguments or commands if there are any.',
54
54
  dependencies: [],
55
55
  parameters: [
56
56
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-mcp",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
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
  "description": "oLane Core",
38
38
  "peerDependencies": {
39
39
  "@modelcontextprotocol/sdk": "^1.18.1",
40
- "@olane/o-config": "^0.7.5",
41
- "@olane/o-core": "^0.7.5",
42
- "@olane/o-intelligence": "^0.7.5",
43
- "@olane/o-lane": "^0.7.5",
44
- "@olane/o-leader": "^0.7.5",
45
- "@olane/o-node": "^0.7.5",
46
- "@olane/o-protocol": "^0.7.5",
47
- "@olane/o-storage": "^0.7.5",
48
- "@olane/o-tool": "^0.7.5"
40
+ "@olane/o-config": "^0.7.7",
41
+ "@olane/o-core": "^0.7.7",
42
+ "@olane/o-intelligence": "^0.7.7",
43
+ "@olane/o-lane": "^0.7.7",
44
+ "@olane/o-leader": "^0.7.7",
45
+ "@olane/o-node": "^0.7.7",
46
+ "@olane/o-protocol": "^0.7.7",
47
+ "@olane/o-storage": "^0.7.7",
48
+ "@olane/o-tool": "^0.7.7"
49
49
  },
50
50
  "dependencies": {
51
51
  "debug": "^4.4.1",