@opute/host-agent 0.2.3 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +5 -3
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @opute/host-agent
2
2
 
3
- Downloads and launches the checksum-verified Opute Go host agent as a local
3
+ Downloads and launches the checksum-verified Opute host agent as a local
4
4
  **Streamable HTTP** MCP server. Cursor, VS Code, and Claude Desktop snippets
5
5
  below are copy/paste examples, not named-client certifications.
6
6
 
@@ -39,7 +39,7 @@ stdio MCP transport is not supported.
39
39
 
40
40
  Safe first-run sequence once the client is connected: `tools/list` → read-only
41
41
  host/VM inspection tools (for example `get_host_info`, `list_vms`). Mutating
42
- tools stay denied until `OPUTE_STANDALONE_ALLOW_MUTATIONS=true`.
42
+ tools stay denied until `OPUTE_HOST_ALLOW_MUTATIONS=true` (0.3.x read `OPUTE_STANDALONE_ALLOW_MUTATIONS`).
43
43
 
44
44
  ## Commands
45
45
 
@@ -60,7 +60,7 @@ tools stay denied until `OPUTE_STANDALONE_ALLOW_MUTATIONS=true`.
60
60
  | `OPUTE_REMOTE_AGENT_ID` | Required explicit opaque canonical agent identity |
61
61
  | `MCP_AUTH_TOKEN` | Bearer bootstrap token for `/mcp` |
62
62
  | `OPUTE_HOST_AGENT_BINARY` | Use a local binary instead of downloading a release |
63
- | `OPUTE_STANDALONE_ALLOW_MUTATIONS=true` | Enable mutating infrastructure tools |
63
+ | `OPUTE_HOST_ALLOW_MUTATIONS=true` | Enable mutating infrastructure tools (0.4.0 and later) |
64
64
  | `OPUTE_STANDALONE_STATE_DIR` | Local SQLite / operation journal directory |
65
65
 
66
66
  The launcher deliberately strips most other `OPUTE_*` variables so a
package/index.js CHANGED
@@ -306,6 +306,7 @@ function buildAgentEnv(instanceId = '') {
306
306
  || key === 'OPUTE_LOCAL_HOST_AGENT_RUNTIME_DIR'
307
307
  || key === 'OPUTE_STANDALONE_STATE_DIR'
308
308
  || key === 'OPUTE_STANDALONE_ALLOW_MUTATIONS'
309
+ || key === 'OPUTE_HOST_ALLOW_MUTATIONS'
309
310
  || key === 'OPUTE_STANDALONE_ALLOW_INSECURE_DOWNLOADS'
310
311
  || key === 'OPUTE_INFRA_PROVIDER_ID'
311
312
  ) {
@@ -344,7 +345,8 @@ Environment:
344
345
  OPUTE_REMOTE_AGENT_ID Required explicit opaque canonical agent id
345
346
  MCP_AUTH_TOKEN Bearer token required by /mcp when set
346
347
  OPUTE_HOST_AGENT_BINARY Use a local binary instead of downloading a release
347
- OPUTE_STANDALONE_ALLOW_MUTATIONS=true Enable mutating tools
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)
348
350
 
349
351
  MCP client config (include Authorization when MCP_AUTH_TOKEN is set):
350
352
  {
@@ -360,7 +362,7 @@ async function startForeground(binary, passthroughArgs) {
360
362
  const port = mcpPort()
361
363
  const url = mcpUrl(host, port)
362
364
  console.error(`starting standalone Streamable HTTP MCP at ${url}`)
363
- const child = spawn(binary, ['--mode=standalone', '--transport=http', ...passthroughArgs], {
365
+ const child = spawn(binary, ['--transport=http', ...passthroughArgs], {
364
366
  stdio: 'inherit',
365
367
  env: buildAgentEnv(),
366
368
  })
@@ -402,7 +404,7 @@ async function startBackground(binary, passthroughArgs) {
402
404
  fs.mkdirSync(runtimeDir(), { recursive: true, mode: 0o700 })
403
405
  const logPath = path.join(runtimeDir(), 'daemon.log')
404
406
  const logFd = fs.openSync(logPath, 'a')
405
- const child = spawn(binary, ['--mode=standalone', '--transport=http', ...passthroughArgs], {
407
+ const child = spawn(binary, ['--transport=http', ...passthroughArgs], {
406
408
  detached: true,
407
409
  stdio: ['ignore', logFd, logFd],
408
410
  env: buildAgentEnv(instanceId),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opute/host-agent",
3
- "version": "0.2.3",
4
- "description": "Local Streamable HTTP launcher for the Opute Go host agent",
3
+ "version": "0.4.0",
4
+ "description": "Local Streamable HTTP launcher for the Opute host agent",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",