@elizaos/plugin-mcp 1.8.1 → 1.8.2
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/cjs/index.cjs +36 -13
- package/dist/cjs/index.js.map +3 -3
- package/dist/index.js +37 -14
- package/dist/index.js.map +3 -3
- package/dist/service.d.ts +9 -0
- package/dist/service.d.ts.map +1 -1
- package/package.json +5 -2
package/dist/service.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ export declare class McpService extends Service {
|
|
|
36
36
|
getProviderData(): McpProvider;
|
|
37
37
|
getRegisteredActions(): McpToolAction[];
|
|
38
38
|
isLazyConnection(serverName: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get connection key for a server. Returns user-specific key for HTTP transports
|
|
41
|
+
* (per-user isolation), or base serverName for stdio (shared connection).
|
|
42
|
+
*/
|
|
43
|
+
private getConnectionKey;
|
|
44
|
+
/**
|
|
45
|
+
* Get connection for a server, checking user-specific first then shared.
|
|
46
|
+
*/
|
|
47
|
+
private getConnection;
|
|
39
48
|
ensureConnected(serverName: string): Promise<void>;
|
|
40
49
|
callTool(serverName: string, toolName: string, args?: Record<string, unknown>): Promise<CallToolResult>;
|
|
41
50
|
readResource(serverName: string, uri: string): Promise<any>;
|
package/dist/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,aAAa,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,aAAa,EAAE,OAAO,EAA6B,MAAM,eAAe,CAAC;AAKpG,OAAO,KAAK,EAAE,cAAc,EAAoC,MAAM,oCAAoC,CAAC;AAE3G,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE1F,OAAO,EAQL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G,OAAO,CAAC,IAAI,CAAC;IAmBlD,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IAavG,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAQ3D,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO3D"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-mcp",
|
|
3
3
|
"description": "ElizaOS plugin to integrate with MCP (Model Context Protocol) servers",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@biomejs/biome": "1.9.4",
|
|
63
|
+
"@elizaos/core": "^1.7.0",
|
|
63
64
|
"@types/bun": "1.2.5",
|
|
64
65
|
"@types/json-schema": "^7.0.15",
|
|
65
66
|
"@types/node": "^22.10.0",
|
|
@@ -69,9 +70,11 @@
|
|
|
69
70
|
"typescript": "^5.7.2"
|
|
70
71
|
},
|
|
71
72
|
"dependencies": {
|
|
72
|
-
"@elizaos/core": "^1.7.0",
|
|
73
73
|
"@modelcontextprotocol/sdk": "^1.7.0"
|
|
74
74
|
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"@elizaos/core": "*"
|
|
77
|
+
},
|
|
75
78
|
"agentConfig": {
|
|
76
79
|
"pluginType": "elizaos:plugin:1.0.0",
|
|
77
80
|
"pluginParameters": {
|