@mindstone/mcp-server-browser-automation 0.2.2 → 0.2.3

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
@@ -9,7 +9,7 @@ Browser control you can watch: open pages, sign in, click around, fill forms, ta
9
9
 
10
10
  ## Status
11
11
 
12
- - **Version:** [0.2.2](./CHANGELOG.md) · [npm](https://www.npmjs.com/package/@mindstone/mcp-server-browser-automation)
12
+ - **Version:** [0.2.3](./CHANGELOG.md) · [npm](https://www.npmjs.com/package/@mindstone/mcp-server-browser-automation)
13
13
  - **Auth:** None ([`server.json`](./server.json))
14
14
  - **Tools:** [21](./src/tools/) (navigation, observation, interaction, sessions, files)
15
15
  - **Surface:** browser-automation
@@ -117,6 +117,7 @@ No API keys or credentials are required. The server communicates with the browse
117
117
  |---|---|---|
118
118
  | `AGENT_BROWSER_SESSION_NAME` | No | Session name for browser persistence (default: `mcp`) |
119
119
  | `AGENT_BROWSER_SHOW_WINDOW` | No | Set to `false` to run without a visible browser window. Default is visible (`true`). |
120
+ | `AGENT_BROWSER_AUTOSAVE_INTERVAL_MS` | No | Periodic session autosave interval in milliseconds (needs `agent-browser` 0.31.2 or later). Default `0` (off), because each periodic save briefly opens a tab that brings a visible browser window in front of other apps. The session is still saved when the browser closes (`browser_close`). Any value you set is passed through as-is; an empty or non-numeric value gets the CLI's 30-second default. The `agent-browser` daemon reads it when it starts, so an already-running daemon keeps its previous setting until it exits (for example after `browser_close`). |
120
121
  | `MCP_WORKSPACE_PATH` | No | Workspace directory that `browser_pdf` writes into and `browser_upload` reads from. Defaults to the system temp directory. See [Security notes](#security-notes). |
121
122
 
122
123
  ### MCP Host Configuration
@@ -18,6 +18,16 @@ function buildEnv() {
18
18
  if (!env.AGENT_BROWSER_SESSION_NAME) {
19
19
  env.AGENT_BROWSER_SESSION_NAME = SESSION_NAME;
20
20
  }
21
+ // A session name turns on the CLI's periodic autosave (every 30s by
22
+ // default, agent-browser >= 0.31.2). Each save opens a temporary tab, which
23
+ // brings a visible browser window in front of the user's other apps.
24
+ // Save-on-close still persists the session, so periodic saves stay off
25
+ // unless the host sets an interval. A host value, including an empty
26
+ // string, passes through untouched; the CLI treats empty or non-numeric
27
+ // values as its 30s default. The daemon reads this only when it starts.
28
+ if (env.AGENT_BROWSER_AUTOSAVE_INTERVAL_MS === undefined) {
29
+ env.AGENT_BROWSER_AUTOSAVE_INTERVAL_MS = '0';
30
+ }
21
31
  return env;
22
32
  }
23
33
  /**
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@
11
11
  *
12
12
  * Environment variables:
13
13
  * - AGENT_BROWSER_SESSION_NAME: Session name for persistence (default: "mcp")
14
+ * - AGENT_BROWSER_AUTOSAVE_INTERVAL_MS: Periodic session autosave interval in ms (default: "0", off;
15
+ * the session is still saved on close). Read when the agent-browser daemon starts.
14
16
  * - MCP_DISABLE_GRACEFUL_FS=1: Disable the graceful-fs EMFILE mitigation patch
15
17
  */
16
18
  import './installGracefulFs.js';
package/dist/index.js CHANGED
@@ -11,6 +11,8 @@
11
11
  *
12
12
  * Environment variables:
13
13
  * - AGENT_BROWSER_SESSION_NAME: Session name for persistence (default: "mcp")
14
+ * - AGENT_BROWSER_AUTOSAVE_INTERVAL_MS: Periodic session autosave interval in ms (default: "0", off;
15
+ * the session is still saved on close). Read when the agent-browser daemon starts.
14
16
  * - MCP_DISABLE_GRACEFUL_FS=1: Disable the graceful-fs EMFILE mitigation patch
15
17
  */
16
18
  // MUST be the very first import — installs the graceful-fs EMFILE mitigation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstone/mcp-server-browser-automation",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "mcpName": "io.github.mindstone/mcp-server-browser-automation",
5
5
  "description": "Browser automation MCP server — visible-by-default browser control via accessibility snapshots, navigation, form filling, screenshots, and tab management. Set AGENT_BROWSER_SHOW_WINDOW=false to run quietly.",
6
6
  "license": "FSL-1.1-MIT",