safari-mcp 2.16.3 → 2.17.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 +13 -0
- package/extension/background.js +1874 -483
- package/extension/command-content.js +138 -0
- package/extension/content.js +103 -0
- package/index.js +929 -124
- package/ownership-match.js +17 -2
- package/ownership-state.js +22 -7
- package/package.json +2 -2
- package/safari-helper +0 -0
- package/safari-helper.swift +434 -0
- package/safari.js +300 -17
package/README.md
CHANGED
|
@@ -353,6 +353,19 @@ Prefer stdio (one process per agent) over a persistent daemon? That works too
|
|
|
353
353
|
|
|
354
354
|
---
|
|
355
355
|
|
|
356
|
+
## Environment variables
|
|
357
|
+
|
|
358
|
+
| Variable | Default | What it does |
|
|
359
|
+
|----------|---------|--------------|
|
|
360
|
+
| `SAFARI_MCP_HTTP` | off | Run one shared HTTP daemon instead of a process per client (see above). |
|
|
361
|
+
| `SAFARI_MCP_HTTP_PORT` | `9225` | Port for that daemon. |
|
|
362
|
+
| `SAFARI_PROFILE` | unset | Bind sessions to a named Safari profile. Unset = your ordinary windows. |
|
|
363
|
+
| `SAFARI_MCP_RAISE_ON_NAVIGATE` | off | Let navigation bring Safari to the front, and stop the focus guard from putting your previous app back. |
|
|
364
|
+
|
|
365
|
+
`SAFARI_MCP_RAISE_ON_NAVIGATE=1` is for agents whose whole point is *showing* you a page — a voice assistant answering "open YouTube", a demo driver. Everything else should leave it off: by default Safari MCP works in the background and hands focus back to whatever app you were using, so an agent can drive a page while you keep typing somewhere else.
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
356
369
|
## Tools (97)
|
|
357
370
|
|
|
358
371
|
<details>
|