@opute/host-agent 0.4.0 → 0.5.0
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 +4 -3
- package/index.js +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,8 +38,9 @@ Point your MCP client at the printed URL (default port **3014**). When
|
|
|
38
38
|
stdio MCP transport is not supported.
|
|
39
39
|
|
|
40
40
|
Safe first-run sequence once the client is connected: `tools/list` → read-only
|
|
41
|
-
host/VM inspection tools (for example `get_host_info`, `list_vms`).
|
|
42
|
-
|
|
41
|
+
host/VM inspection tools (for example `get_host_info`, `list_vms`). The
|
|
42
|
+
`MCP_AUTH_TOKEN` bearer stays read-only unless the agent starts with
|
|
43
|
+
`--allow-mutations`; an OAuth client mutates only with the `mutate` scope.
|
|
43
44
|
|
|
44
45
|
## Commands
|
|
45
46
|
|
|
@@ -47,6 +48,7 @@ tools stay denied until `OPUTE_HOST_ALLOW_MUTATIONS=true` (0.3.x read `OPUTE_STA
|
|
|
47
48
|
|---------|-------------|
|
|
48
49
|
| `start` | Start standalone Streamable HTTP (foreground by default) |
|
|
49
50
|
| `start --background` / `-d` | Daemonize, write pid state, print MCP URL |
|
|
51
|
+
| `start --allow-mutations` | Let the `MCP_AUTH_TOKEN` bearer run tools that change the host |
|
|
50
52
|
| `stop` | Stop a background daemon started by this launcher |
|
|
51
53
|
| `status` | JSON status (`running`, `healthy`, `url`) |
|
|
52
54
|
| `url` | Print the MCP URL |
|
|
@@ -60,7 +62,6 @@ tools stay denied until `OPUTE_HOST_ALLOW_MUTATIONS=true` (0.3.x read `OPUTE_STA
|
|
|
60
62
|
| `OPUTE_REMOTE_AGENT_ID` | Required explicit opaque canonical agent identity |
|
|
61
63
|
| `MCP_AUTH_TOKEN` | Bearer bootstrap token for `/mcp` |
|
|
62
64
|
| `OPUTE_HOST_AGENT_BINARY` | Use a local binary instead of downloading a release |
|
|
63
|
-
| `OPUTE_HOST_ALLOW_MUTATIONS=true` | Enable mutating infrastructure tools (0.4.0 and later) |
|
|
64
65
|
| `OPUTE_STANDALONE_STATE_DIR` | Local SQLite / operation journal directory |
|
|
65
66
|
|
|
66
67
|
The launcher deliberately strips most other `OPUTE_*` variables so a
|
package/index.js
CHANGED
|
@@ -305,8 +305,6 @@ function buildAgentEnv(instanceId = '') {
|
|
|
305
305
|
|| key === 'OPUTE_HOST_AGENT_SHA256'
|
|
306
306
|
|| key === 'OPUTE_LOCAL_HOST_AGENT_RUNTIME_DIR'
|
|
307
307
|
|| key === 'OPUTE_STANDALONE_STATE_DIR'
|
|
308
|
-
|| key === 'OPUTE_STANDALONE_ALLOW_MUTATIONS'
|
|
309
|
-
|| key === 'OPUTE_HOST_ALLOW_MUTATIONS'
|
|
310
308
|
|| key === 'OPUTE_STANDALONE_ALLOW_INSECURE_DOWNLOADS'
|
|
311
309
|
|| key === 'OPUTE_INFRA_PROVIDER_ID'
|
|
312
310
|
) {
|
|
@@ -315,7 +313,6 @@ function buildAgentEnv(instanceId = '') {
|
|
|
315
313
|
delete env[key]
|
|
316
314
|
}
|
|
317
315
|
}
|
|
318
|
-
env.OPUTE_AGENT_MODE = 'standalone'
|
|
319
316
|
if (instanceId) env.OPUTE_LOCAL_HOST_AGENT_INSTANCE_ID = instanceId
|
|
320
317
|
env.HOST_MCP_BIND_HOST = bindHost()
|
|
321
318
|
env.HOST_MCP_PORT = String(mcpPort())
|
|
@@ -334,7 +331,10 @@ function printUsage() {
|
|
|
334
331
|
console.log(`Usage: opute-host-agent <command>
|
|
335
332
|
|
|
336
333
|
Commands:
|
|
337
|
-
start [--background|-d]
|
|
334
|
+
start [--background|-d] [--allow-mutations]
|
|
335
|
+
Start standalone Streamable HTTP MCP (default: foreground).
|
|
336
|
+
--allow-mutations lets MCP_AUTH_TOKEN run tools that change
|
|
337
|
+
the host; without it the agent is read-only.
|
|
338
338
|
stop Stop a background daemon started by this launcher
|
|
339
339
|
status Show daemon/listener status and MCP URL
|
|
340
340
|
url Print the MCP URL (http://127.0.0.1:3014/mcp by default)
|
|
@@ -345,8 +345,6 @@ Environment:
|
|
|
345
345
|
OPUTE_REMOTE_AGENT_ID Required explicit opaque canonical agent id
|
|
346
346
|
MCP_AUTH_TOKEN Bearer token required by /mcp when set
|
|
347
347
|
OPUTE_HOST_AGENT_BINARY Use a local binary instead of downloading a release
|
|
348
|
-
OPUTE_HOST_ALLOW_MUTATIONS=true Enable mutating tools (0.4.0 and later)
|
|
349
|
-
OPUTE_STANDALONE_ALLOW_MUTATIONS=true Enable mutating tools (0.3.x; ignored from 0.4.0)
|
|
350
348
|
|
|
351
349
|
MCP client config (include Authorization when MCP_AUTH_TOKEN is set):
|
|
352
350
|
{
|