@robota-sdk/agent-transport-mcp 3.0.0-beta.43 → 3.0.0-beta.44
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/package.json +2 -2
- package/dist/node/index.d.cts +0 -42
- package/dist/node/index.d.ts +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-transport-mcp",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.44",
|
|
4
4
|
"description": "MCP transport adapter for exposing InteractiveSession as an MCP server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
26
26
|
"zod": "^3.24.4",
|
|
27
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
27
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.44"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"rimraf": "^5.0.5",
|
package/dist/node/index.d.cts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
-
import { InteractiveSession, SystemCommandExecutor } from '@robota-sdk/agent-sdk';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* MCP transport adapter — exposes InteractiveSession as an MCP server.
|
|
6
|
-
*
|
|
7
|
-
* Uses the low-level MCP Server class to avoid TypeScript depth issues
|
|
8
|
-
* with McpServer.registerTool() generics. Registers tools/list and
|
|
9
|
-
* tools/call handlers directly.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface IAgentMcpOptions {
|
|
13
|
-
/** Name for the MCP server. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Version string. */
|
|
16
|
-
version: string;
|
|
17
|
-
/** InteractiveSession to expose. */
|
|
18
|
-
session: InteractiveSession;
|
|
19
|
-
/** System command executor. */
|
|
20
|
-
commandExecutor: SystemCommandExecutor;
|
|
21
|
-
/** If true, register each system command as a separate MCP tool. Default: true. */
|
|
22
|
-
exposeCommands?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Create an MCP server that exposes InteractiveSession over Model Context Protocol.
|
|
26
|
-
*
|
|
27
|
-
* Usage:
|
|
28
|
-
* ```typescript
|
|
29
|
-
* const server = createAgentMcpServer({
|
|
30
|
-
* name: 'robota-agent',
|
|
31
|
-
* version: '1.0.0',
|
|
32
|
-
* session: interactiveSession,
|
|
33
|
-
* commandExecutor,
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
37
|
-
* await server.connect(new StdioServerTransport());
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
declare function createAgentMcpServer(options: IAgentMcpOptions): Server;
|
|
41
|
-
|
|
42
|
-
export { type IAgentMcpOptions, createAgentMcpServer };
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
-
import { InteractiveSession, SystemCommandExecutor } from '@robota-sdk/agent-sdk';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* MCP transport adapter — exposes InteractiveSession as an MCP server.
|
|
6
|
-
*
|
|
7
|
-
* Uses the low-level MCP Server class to avoid TypeScript depth issues
|
|
8
|
-
* with McpServer.registerTool() generics. Registers tools/list and
|
|
9
|
-
* tools/call handlers directly.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface IAgentMcpOptions {
|
|
13
|
-
/** Name for the MCP server. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** Version string. */
|
|
16
|
-
version: string;
|
|
17
|
-
/** InteractiveSession to expose. */
|
|
18
|
-
session: InteractiveSession;
|
|
19
|
-
/** System command executor. */
|
|
20
|
-
commandExecutor: SystemCommandExecutor;
|
|
21
|
-
/** If true, register each system command as a separate MCP tool. Default: true. */
|
|
22
|
-
exposeCommands?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Create an MCP server that exposes InteractiveSession over Model Context Protocol.
|
|
26
|
-
*
|
|
27
|
-
* Usage:
|
|
28
|
-
* ```typescript
|
|
29
|
-
* const server = createAgentMcpServer({
|
|
30
|
-
* name: 'robota-agent',
|
|
31
|
-
* version: '1.0.0',
|
|
32
|
-
* session: interactiveSession,
|
|
33
|
-
* commandExecutor,
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
37
|
-
* await server.connect(new StdioServerTransport());
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
declare function createAgentMcpServer(options: IAgentMcpOptions): Server;
|
|
41
|
-
|
|
42
|
-
export { type IAgentMcpOptions, createAgentMcpServer };
|