safari-mcp 2.16.3 → 2.17.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 +16 -8
- package/extension/background.js +1896 -481
- package/extension/command-content.js +484 -33
- package/extension/content.js +103 -0
- package/extension/manifest.json +1 -1
- package/index.js +931 -126
- 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
|
@@ -15,14 +15,9 @@
|
|
|
15
15
|
[](https://opensource.org/licenses/MIT)
|
|
16
16
|
[](https://www.apple.com/macos/)
|
|
17
17
|
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[](https://mcpscoreboard.com/server/05977769-8762-4e89-aff3-a0c5776843bb/)
|
|
22
|
-
|
|
23
|
-
<a href="vscode:mcp/install?%7B%22safari-mcp%22%3A%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D%7D"><img src="https://img.shields.io/badge/VS_Code-Install_Server-0078d4?logo=visual-studio-code&logoColor=white" alt="Install in VS Code"></a>
|
|
24
|
-
<a href="https://insiders.vscode.dev/redirect?url=vscode-insiders:mcp/install?%7B%22safari-mcp%22%3A%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D%7D"><img src="https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?logo=visual-studio-code&logoColor=white" alt="Install in VS Code Insiders"></a>
|
|
25
|
-
<a href="cursor://anysphere.cursor-deeplink/mcp/install?name=safari-mcp&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D"><img src="https://img.shields.io/badge/Cursor-Install_Server-f97316?logo=cursor&logoColor=white" alt="Install in Cursor"></a>
|
|
18
|
+
[Install in VS Code](vscode:mcp/install?%7B%22safari-mcp%22%3A%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D%7D) ·
|
|
19
|
+
[VS Code Insiders](https://insiders.vscode.dev/redirect?url=vscode-insiders:mcp/install?%7B%22safari-mcp%22%3A%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D%7D) ·
|
|
20
|
+
[Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=safari-mcp&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22safari-mcp%22%5D%7D)
|
|
26
21
|
|
|
27
22
|
**97 tools** · **No Chrome/Puppeteer/Playwright needed** · **~5ms per command** · **60% less CPU than Chrome**
|
|
28
23
|
|
|
@@ -353,6 +348,19 @@ Prefer stdio (one process per agent) over a persistent daemon? That works too
|
|
|
353
348
|
|
|
354
349
|
---
|
|
355
350
|
|
|
351
|
+
## Environment variables
|
|
352
|
+
|
|
353
|
+
| Variable | Default | What it does |
|
|
354
|
+
|----------|---------|--------------|
|
|
355
|
+
| `SAFARI_MCP_HTTP` | off | Run one shared HTTP daemon instead of a process per client (see above). |
|
|
356
|
+
| `SAFARI_MCP_HTTP_PORT` | `9225` | Port for that daemon. |
|
|
357
|
+
| `SAFARI_PROFILE` | unset | Bind sessions to a named Safari profile. Unset = your ordinary windows. |
|
|
358
|
+
| `SAFARI_MCP_RAISE_ON_NAVIGATE` | off | Let navigation bring Safari to the front, and stop the focus guard from putting your previous app back. |
|
|
359
|
+
|
|
360
|
+
`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.
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
356
364
|
## Tools (97)
|
|
357
365
|
|
|
358
366
|
<details>
|