openclaw-mcp 1.2.1 → 1.3.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 CHANGED
@@ -4,6 +4,7 @@
4
4
  [![CI](https://github.com/freema/openclaw-mcp/workflows/CI/badge.svg)](https://github.com/freema/openclaw-mcp/actions/workflows/ci.yml)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
  [![GHCR](https://img.shields.io/badge/GHCR-ghcr.io%2Ffreema%2Fopenclaw--mcp-blue?logo=github)](https://github.com/freema/openclaw-mcp/pkgs/container/openclaw-mcp)
7
+ [![Website](https://img.shields.io/badge/Website-openclaw--mcp.cloud-e24b4a)](https://openclaw-mcp.cloud)
7
8
 
8
9
  <a href="https://glama.ai/mcp/servers/@freema/openclaw-mcp">
9
10
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@freema/openclaw-mcp/badge" />
@@ -46,6 +47,7 @@ services:
46
47
  environment:
47
48
  - OPENCLAW_URL=http://host.docker.internal:18789
48
49
  - OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
50
+ - OPENCLAW_MODEL=openclaw
49
51
  - AUTH_ENABLED=true
50
52
  - MCP_CLIENT_ID=openclaw
51
53
  - MCP_CLIENT_SECRET=${MCP_CLIENT_SECRET}
@@ -87,6 +89,7 @@ Add to your Claude Desktop config:
87
89
  "env": {
88
90
  "OPENCLAW_URL": "http://127.0.0.1:18789",
89
91
  "OPENCLAW_GATEWAY_TOKEN": "your-gateway-token",
92
+ "OPENCLAW_MODEL": "openclaw",
90
93
  "OPENCLAW_TIMEOUT_MS": "300000"
91
94
  }
92
95
  }
@@ -140,6 +143,7 @@ See [Installation Guide](docs/installation.md) for details.
140
143
  |------|-------------|
141
144
  | `openclaw_chat` | Send messages to OpenClaw and get responses |
142
145
  | `openclaw_status` | Check OpenClaw gateway health |
146
+ | `openclaw_instances` | List all configured OpenClaw instances |
143
147
 
144
148
  ### Async Tools (for long-running operations)
145
149
 
@@ -150,6 +154,80 @@ See [Installation Guide](docs/installation.md) for details.
150
154
  | `openclaw_task_list` | List all tasks with filtering |
151
155
  | `openclaw_task_cancel` | Cancel a pending task |
152
156
 
157
+ ## Multi-Instance Mode
158
+
159
+ Orchestrate multiple OpenClaw gateways from a single MCP server. One bridge, many claws — route requests to prod, staging, dev, or whatever you name them (lobster-supreme and the-claw-abides are perfectly valid names).
160
+
161
+ ```
162
+ ┌──────────────────────────────────────────────────────────────────────┐
163
+ │ Claude.ai / Claude Desktop │
164
+ │ (MCP Client) │
165
+ └──────────────────────┬───────────────────────────────────────────────┘
166
+
167
+
168
+ ┌──────────────────────────────────────────────────────────────────────┐
169
+ │ OpenClaw MCP Bridge Server │
170
+ │ │
171
+ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
172
+ │ │ Instance │ │ Instance │ │ Instance │ │
173
+ │ │ Registry │ │ Resolver │ │ Validator │ │
174
+ │ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
175
+ │ │ │ │ │
176
+ │ ┌──────┴─────────────────┴──────────────────┴───────┐ │
177
+ │ │ Per-Instance OpenClaw Clients │ │
178
+ │ │ (separate auth, timeout, URL per instance) │ │
179
+ │ └────────┬──────────────┬──────────────┬────────────┘ │
180
+ └───────────┼──────────────┼──────────────┼────────────────────────────┘
181
+ │ │ │
182
+ ▼ ▼ ▼
183
+ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
184
+ │ 🦞 prod │ │ 🦞 staging │ │ 🦞 dev │
185
+ │ (default) │ │ │ │ │
186
+ │ :18789 │ │ :18789 │ │ :18789 │
187
+ │ OpenClaw GW │ │ OpenClaw GW │ │ OpenClaw GW │
188
+ └──────────────┘ └──────────────┘ └──────────────┘
189
+ ```
190
+
191
+ ### Setup
192
+
193
+ ```bash
194
+ OPENCLAW_INSTANCES='[
195
+ {"name": "prod", "url": "http://prod:18789", "token": "tok1", "default": true},
196
+ {"name": "staging", "url": "http://staging:18789", "token": "tok2"},
197
+ {"name": "dev", "url": "http://dev:18789", "token": "tok3"}
198
+ ]'
199
+ ```
200
+
201
+ ### Usage
202
+
203
+ All tools accept an optional `instance` parameter to target a specific gateway:
204
+
205
+ ```
206
+ # Chat with staging instance
207
+ openclaw_chat message="Deploy status?" instance="staging"
208
+
209
+ # Check health of prod
210
+ openclaw_status instance="prod"
211
+
212
+ # List all configured instances
213
+ openclaw_instances
214
+
215
+ # Async task targeting dev
216
+ openclaw_chat_async message="Run tests" instance="dev"
217
+ ```
218
+
219
+ When `instance` is omitted, the default instance is used. Each instance has its own auth token, timeout, and URL — fully isolated.
220
+
221
+ ### Key Features
222
+
223
+ - **Zero-migration upgrade** — existing single-instance deployments work without any config change
224
+ - **Per-instance isolation** — separate auth tokens, timeouts, and URLs
225
+ - **Dynamic routing** — Claude picks the right instance per request
226
+ - **Task tracking** — async tasks remember which instance they target
227
+ - **Security** — tokens are never exposed via `openclaw_instances`
228
+
229
+ See [Configuration — Multi-Instance Mode](docs/configuration.md#multi-instance-mode) for the full reference.
230
+
153
231
  ## Documentation
154
232
 
155
233
  - [Installation](docs/installation.md) — Setup for Claude Desktop & Claude.ai