@redonvn/openclaw-mcp-bridge 0.1.1

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/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # openclaw-mcp-bridge
2
+
3
+ `@redonvn/openclaw-mcp-bridge` exposes selected MCP tools as OpenClaw tools.
4
+
5
+ Example config:
6
+
7
+ ```json
8
+ {
9
+ "plugins": {
10
+ "allow": ["mcp-bridge"],
11
+ "entries": {
12
+ "mcp-bridge": {
13
+ "enabled": true,
14
+ "config": {
15
+ "servers": {
16
+ "chrome-devtools": {
17
+ "enabled": true,
18
+ "transport": "stdio",
19
+ "command": "npx",
20
+ "args": ["chrome-devtools-mcp@latest"],
21
+ "includeTools": ["navigate", "click", "evaluate_script"]
22
+ },
23
+ "filesystem": {
24
+ "enabled": true,
25
+ "transport": "stdio",
26
+ "command": "npx",
27
+ "args": [
28
+ "@modelcontextprotocol/server-filesystem",
29
+ "C:\\Users\\Acer\\.openclaw\\workspace"
30
+ ],
31
+ "includeTools": ["read_file", "list_directory"]
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ Each MCP tool is exposed as:
42
+
43
+ - `mcp_<serverKey>_<toolName>`
44
+
45
+ Examples:
46
+
47
+ - `mcp_chrome_devtools_navigate`
48
+ - `mcp_filesystem_read_file`
package/dist/index.cjs ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var import_open_claw_mcp_sdk = require("@redonvn/open-claw-mcp-sdk");
27
+ var index_default = (0, import_open_claw_mcp_sdk.createMcpBridgePlugin)({
28
+ pluginId: "mcp-bridge",
29
+ pluginName: "MCP Bridge",
30
+ optional: true,
31
+ clientInfo: {
32
+ name: "openclaw-mcp-bridge",
33
+ version: "0.1.0"
34
+ }
35
+ });
36
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import { createMcpBridgePlugin } from \"@redonvn/open-claw-mcp-sdk\";\n\nexport default createMcpBridgePlugin({\n pluginId: \"mcp-bridge\",\n pluginName: \"MCP Bridge\",\n optional: true,\n clientInfo: {\n name: \"openclaw-mcp-bridge\",\n version: \"0.1.0\"\n }\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAsC;AAEtC,IAAO,oBAAQ,gDAAsB;AAAA,EACnC,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF,CAAC;","names":[]}
@@ -0,0 +1,5 @@
1
+ import * as _redonvn_open_claw_mcp_sdk from '@redonvn/open-claw-mcp-sdk';
2
+
3
+ declare const _default: (api: _redonvn_open_claw_mcp_sdk.OpenClawApiLike) => void;
4
+
5
+ export { _default as default };
@@ -0,0 +1,5 @@
1
+ import * as _redonvn_open_claw_mcp_sdk from '@redonvn/open-claw-mcp-sdk';
2
+
3
+ declare const _default: (api: _redonvn_open_claw_mcp_sdk.OpenClawApiLike) => void;
4
+
5
+ export { _default as default };
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ // index.ts
2
+ import { createMcpBridgePlugin } from "@redonvn/open-claw-mcp-sdk";
3
+ var index_default = createMcpBridgePlugin({
4
+ pluginId: "mcp-bridge",
5
+ pluginName: "MCP Bridge",
6
+ optional: true,
7
+ clientInfo: {
8
+ name: "openclaw-mcp-bridge",
9
+ version: "0.1.0"
10
+ }
11
+ });
12
+ export {
13
+ index_default as default
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import { createMcpBridgePlugin } from \"@redonvn/open-claw-mcp-sdk\";\n\nexport default createMcpBridgePlugin({\n pluginId: \"mcp-bridge\",\n pluginName: \"MCP Bridge\",\n optional: true,\n clientInfo: {\n name: \"openclaw-mcp-bridge\",\n version: \"0.1.0\"\n }\n});\n"],"mappings":";AAAA,SAAS,6BAA6B;AAEtC,IAAO,gBAAQ,sBAAsB;AAAA,EACnC,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF,CAAC;","names":[]}
@@ -0,0 +1,130 @@
1
+ {
2
+ "id": "mcp-bridge",
3
+ "name": "MCP Bridge",
4
+ "version": "0.1.0",
5
+ "description": "Expose selected MCP tools as OpenClaw tools.",
6
+ "configSchema": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "servers": {
11
+ "type": "object",
12
+ "description": "MCP servers keyed by server name.",
13
+ "additionalProperties": {
14
+ "oneOf": [
15
+ {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "properties": {
19
+ "enabled": {
20
+ "type": "boolean",
21
+ "default": true
22
+ },
23
+ "transport": {
24
+ "type": "string",
25
+ "enum": ["stdio"]
26
+ },
27
+ "command": {
28
+ "type": "string"
29
+ },
30
+ "args": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "env": {
37
+ "type": "object",
38
+ "additionalProperties": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "cwd": {
43
+ "type": "string"
44
+ },
45
+ "includeTools": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "excludeTools": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "startupTimeoutMs": {
58
+ "type": "number",
59
+ "default": 10000
60
+ },
61
+ "callTimeoutMs": {
62
+ "type": "number",
63
+ "default": 60000
64
+ },
65
+ "reconnectDelayMs": {
66
+ "type": "number",
67
+ "default": 3000
68
+ }
69
+ },
70
+ "required": ["transport", "command"]
71
+ },
72
+ {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "enabled": {
77
+ "type": "boolean",
78
+ "default": true
79
+ },
80
+ "transport": {
81
+ "type": "string",
82
+ "enum": ["http", "sse"]
83
+ },
84
+ "url": {
85
+ "type": "string"
86
+ },
87
+ "headers": {
88
+ "type": "object",
89
+ "additionalProperties": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "includeTools": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "excludeTools": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "startupTimeoutMs": {
106
+ "type": "number",
107
+ "default": 10000
108
+ },
109
+ "callTimeoutMs": {
110
+ "type": "number",
111
+ "default": 60000
112
+ },
113
+ "reconnectDelayMs": {
114
+ "type": "number",
115
+ "default": 3000
116
+ }
117
+ },
118
+ "required": ["transport", "url"]
119
+ }
120
+ ]
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "uiHints": {
126
+ "servers": {
127
+ "label": "MCP Servers"
128
+ }
129
+ }
130
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@redonvn/openclaw-mcp-bridge",
3
+ "version": "0.1.1",
4
+ "description": "OpenClaw plugin that exposes MCP tools",
5
+ "keywords": [
6
+ "openclaw",
7
+ "plugin",
8
+ "mcp",
9
+ "bridge"
10
+ ],
11
+ "license": "MIT",
12
+ "author": "Redon",
13
+ "type": "module",
14
+ "main": "dist/index.cjs",
15
+ "module": "dist/index.js",
16
+ "types": "dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "openclaw.plugin.json",
27
+ "README.md"
28
+ ],
29
+ "engines": {
30
+ "node": ">=18"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "dependencies": {
36
+ "@redonvn/open-claw-mcp-sdk": "^0.1.1"
37
+ },
38
+ "openclaw": {
39
+ "extensions": [
40
+ "./dist/index.js"
41
+ ]
42
+ },
43
+ "scripts": {
44
+ "build": "tsup",
45
+ "clean": "tsup --clean",
46
+ "typecheck": "tsc -p tsconfig.json --noEmit"
47
+ }
48
+ }