@olane/o-mcp 0.6.12 → 0.6.13

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.
@@ -7,6 +7,7 @@ export declare class McpBridgeTool extends oVirtualTool {
7
7
  _tool_validate_url(request: oRequest): Promise<ToolResult>;
8
8
  _tool_add_remote_server(request: oRequest): Promise<ToolResult>;
9
9
  _tool_add_local_server(request: oRequest): Promise<ToolResult>;
10
+ _tool_search(request: oRequest): Promise<ToolResult>;
10
11
  createMcpTool(mcpClient: Client, url: string, name?: string): Promise<McpTool>;
11
12
  }
12
13
  //# sourceMappingURL=mcp-bridge.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-bridge.tool.d.ts","sourceRoot":"","sources":["../../src/mcp-bridge.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAY,QAAQ,EAAc,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAIxC,qBAAa,aAAc,SAAQ,YAAY;gBACjC,MAAM,EAAE,WAAW;IASzB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAsB1D,uBAAuB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAuC/D,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+B9D,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,GACZ,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,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAY,QAAQ,EAAc,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAIxC,qBAAa,aAAc,SAAQ,YAAY;gBACjC,MAAM,EAAE,WAAW;IASzB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAsB1D,uBAAuB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAuC/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,GACZ,OAAO,CAAC,OAAO,CAAC;CAuBpB"}
@@ -86,6 +86,29 @@ export class McpBridgeTool extends oVirtualTool {
86
86
  message: 'Successfully added local MCP server',
87
87
  };
88
88
  }
89
+ async _tool_search(request) {
90
+ const params = request.params;
91
+ const { name, provider, functionality } = params;
92
+ let count = 0;
93
+ const response = await this.use(new oAddress('o://perplexity'), {
94
+ method: 'completion',
95
+ params: {
96
+ model: 'sonar',
97
+ messages: [
98
+ {
99
+ role: 'user',
100
+ 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:
101
+ ${provider ? `${++count}. Provider: ${provider}` : ''}
102
+ ${name ? `${++count}. Name: ${name}` : ''}
103
+ ${functionality ? `${++count}. Functionality: ${functionality}` : ''}`,
104
+ },
105
+ ],
106
+ },
107
+ });
108
+ return {
109
+ result: response.result.data.message,
110
+ };
111
+ }
89
112
  async createMcpTool(mcpClient, url, name) {
90
113
  this.logger.debug('Creating MCP tool: ', name, url);
91
114
  const mcpTool = new McpTool({
@@ -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;CAkExD,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+FxD,CAAC"}
@@ -34,6 +34,34 @@ export const MCP_BRIDGE_METHODS = {
34
34
  },
35
35
  ],
36
36
  },
37
+ search: {
38
+ name: 'search',
39
+ description: 'Search for MCP servers',
40
+ dependencies: [],
41
+ parameters: [
42
+ {
43
+ name: 'name',
44
+ type: 'string',
45
+ value: 'string',
46
+ description: 'The mcp server name to search for',
47
+ required: false,
48
+ },
49
+ {
50
+ name: 'provider',
51
+ type: 'string',
52
+ value: 'string',
53
+ description: 'Who the MCP server is provided by. This is inferred from the user intent.',
54
+ required: false,
55
+ },
56
+ {
57
+ name: 'functionality',
58
+ type: 'string',
59
+ value: 'string',
60
+ description: 'Description of the functionality of the MCP server',
61
+ required: false,
62
+ },
63
+ ],
64
+ },
37
65
  add_local_server: {
38
66
  name: 'add_local_server',
39
67
  description: 'Add a local MCP server to the bridge using command and arguments',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-mcp",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -57,12 +57,12 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@modelcontextprotocol/sdk": "^1.13.0",
60
- "@olane/o-config": "^0.6.11",
61
- "@olane/o-core": "^0.6.11",
60
+ "@olane/o-config": "^0.6.12",
61
+ "@olane/o-core": "^0.6.12",
62
62
  "@olane/o-intelligence": "^0.6.7",
63
- "@olane/o-leader": "^0.6.11",
64
- "@olane/o-protocol": "^0.6.11",
65
- "@olane/o-tool": "^0.6.11"
63
+ "@olane/o-leader": "^0.6.12",
64
+ "@olane/o-protocol": "^0.6.12",
65
+ "@olane/o-tool": "^0.6.12"
66
66
  },
67
67
  "dependencies": {
68
68
  "debug": "^4.4.1",