World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Read and act on Safari — history, tabs and reading list, writes off by default
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 22/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 34/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 18 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Apple Safari。按照 https://mcp.popnx.com/i/mgcrea-mcp-apple-safari.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月18日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Apple Safari 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Apple Safari,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "apple-safari": { "command": "npx", "args": [ "-y", "@mgcrea/mcp-apple-safari" ], "env": { "APPLE_SAFARI_COOKIE_HOSTS": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_SAFARI_COOKIE_HOSTS 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Safari 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
SettingsDeveloperEdit Config
{
"mcpServers": {
"apple-safari": {
"command": "npx",
"args": [
"-y",
"@mgcrea/mcp-apple-safari"
],
"env": {
"APPLE_SAFARI_COOKIE_HOSTS": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Apple Safari 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Apple Safari,或回答中出现 Apple Safari 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。 APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。 APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。 APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Apple Safari
Apple Safari 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Apple Safari 的应用
B · 其他 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 Apple Safari 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Apple Safari,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user apple-safari --env APPLE_SAFARI_COOKIE_HOSTS=your-value -- npx -y @mgcrea/mcp-apple-safari 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_SAFARI_COOKIE_HOSTS 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Safari 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user apple-safari --env APPLE_SAFARI_COOKIE_HOSTS=your-value -- npx -y @mgcrea/mcp-apple-safari按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Apple Safari 在列表中并显示已连接
用 Apple Safari 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Apple Safari,或回答中出现 Apple Safari 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。 APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。 APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。 APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Apple Safari 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Apple Safari,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "apple-safari": { "command": "npx", "args": [ "-y", "@mgcrea/mcp-apple-safari" ], "env": { "APPLE_SAFARI_COOKIE_HOSTS": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_SAFARI_COOKIE_HOSTS 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Safari 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
在 Apple Safari 的设置中,APPLE_SAFARI_COOKIE_HOSTS 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Apple Safari 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Apple Safari,或回答中出现 Apple Safari 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。 APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。 APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。 APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Apple Safari 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Apple Safari,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "apple-safari": { "type": "stdio", "command": "npx", "args": [ "-y", "@mgcrea/mcp-apple-safari" ], "env": { "APPLE_SAFARI_COOKIE_HOSTS": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_SAFARI_COOKIE_HOSTS 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Safari 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
在 Apple Safari 的设置中,APPLE_SAFARI_COOKIE_HOSTS 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Apple Safari 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Apple Safari,或回答中出现 Apple Safari 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。 APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。 APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。 APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user apple-safari --env APPLE_SAFARI_COOKIE_HOSTS=your-value -- npx -y @mgcrea/mcp-apple-safariClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"apple-safari": {
"command": "npx",
"args": [
"-y",
"@mgcrea/mcp-apple-safari"
],
"env": {
"APPLE_SAFARI_COOKIE_HOSTS": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"apple-safari": {
"command": "npx",
"args": [
"-y",
"@mgcrea/mcp-apple-safari"
],
"env": {
"APPLE_SAFARI_COOKIE_HOSTS": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"apple-safari": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mgcrea/mcp-apple-safari"
],
"env": {
"APPLE_SAFARI_COOKIE_HOSTS": "your-value"
}
}
}
}APPLE_SAFARI_ALLOW_WRITES envAPPLE_SAFARI_ALLOW_CODES envAPPLE_SAFARI_ALLOW_NETWORK envAPPLE_SAFARI_ALLOW_COOKIES envAPPLE_SAFARI_COOKIE_HOSTS 机密 必填 envAPPLE_SAFARI_DOWNLOAD_DIR envAPPLE_SAFARI_NETWORK_CHUNK_CHARS env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日
注册名称已通过 GitHub 账户 mgcrea 验证,该账户拥有此仓库
代码最后更新于昨天
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
尚未检查
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/mgcrea-mcp-apple-safari)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:APPLE_SAFARI_COOKIE_HOSTS
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于昨天,最新版本(1.42.0)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| 本项 Apple Safari | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| 许可证 | MIT | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP server for the macOS Safari browser: what you have visited, what is open now, and what is on the page in front of you.
{
"mcpServers": { "apple-safari": { "command": "npx", "args": ["-y", "@mgcrea/mcp-apple-safari"] } } }
This is the thing to understand before anything else. Every other surface in this bundle has two routes to the same data and the choice is about speed. Safari's lanes see almost disjoint things, and each needs a different permission — so an ungranted Safari server is not a slower Safari server, it is a different and much smaller one.
| Lane | Needs | Answers |
|---|---|---|
| File | Full Disk Access | the past: history, bookmarks, the Reading List |
| Apple Events | an Automation grant, Safari running | the present: which tabs are open |
| Extension | the extension enabled AND allowed on that site | the page: its text, its elements, acting on it |
The extension lane needs no TCC grant of any kind. Safari consents to it one website at a time, which the user can see and revoke per site.
Read
| Tool | What |
|---|---|
apple_safari_search_history | history by text or date range, with visit counts |
apple_safari_get_page | one history item by ref |
apple_safari_list_tabs | tabs open right now, optionally enriched from history |
apple_safari_list_bookmarks | the bookmark tree |
apple_safari_list_reading_list | saved items, and which are unread |
apple_safari_read_page | a captured page as text or HTML |
apple_safari_page_elements | what is clickable or typeable on a live page |
apple_safari_wait_for | wait until some text appears on a page, or leaves it |
apple_safari_diagnostics | which lanes work, and why one does not |
Opt-in read — APPLE_SAFARI_ALLOW_CODES
| Tool | What |
|---|---|
apple_safari_find_codes | a one-time 2FA code in the TEXT of an open page |
Opt-in read — APPLE_SAFARI_ALLOW_NETWORK
| Tool | What |
|---|---|
apple_safari_network_record | arm, stop, clear or report recording on a page (reload needs writes) |
apple_safari_network_list | what the page fetched: method, URL, status, timing, no bodies |
apple_safari_network_get | one request's headers and body; saveAs writes a file (needs writes) |
Opt-in read — APPLE_SAFARI_ALLOW_COOKIES, and only for sites in APPLE_SAFARI_COOKIE_HOSTS
| Tool | What |
|---|---|
apple_safari_cookies | a page's cookies, HttpOnly included, as metadata; saveAs writes named ones |
Write — APPLE_SAFARI_ALLOW_WRITES
| Tool | What |
|---|---|
apple_safari_open_url | open a URL, in a new tab or the current |
apple_safari_add_reading_list_item | save a URL for later |
apple_safari_close_tabs | close tabs an agent opened, if unmoved |
apple_safari_click | click an element on a live page |
apple_safari_fill | type into one |
apple_safari_scroll | scroll a page |
apple_safari_submit | submit the form an element belongs to |
| Variable | Default | ||||
|---|---|---|---|---|---|
APPLE_SAFARI_ALLOW_WRITES | off | Register the seven write tools at all. | |||
APPLE_SAFARI_ALLOW_CODES | off | One-time codes — see below. | |||
APPLE_SAFARI_ALLOW_NETWORK | off | Network capture — see below. | |||
APPLE_SAFARI_ALLOW_COOKIES | off | Reading cookies — see below. | |||
APPLE_SAFARI_COOKIE_HOSTS | empty | Sites whose cookies may be read. Empty = none. | |||
APPLE_SAFARI_DOWNLOAD_DIR | ~/Downloads | Where saveAs writes. | |||
APPLE_SAFARI_NETWORK_CHUNK_CHARS | 262144 | Characters per native message when pulling a body. | |||
APPLE_SAFARI_LIVE_TABS | on | Use the Apple Events lane. Off = no Apple Event. | |||
APPLE_SAFARI_STORE | auto | Explicit History.db path. | |||
APPLE_SAFARI_BOOKMARKS | auto | Explicit Bookmarks.plist path. | |||
APPLE_SAFARI_PAGES | auto | Explicit extension capture directory. | |||
APPLE_SAFARI_OPENED_TABS | auto | Explicit record of tabs open_url opened. | |||
APPLE_SAFARI_ACTION_TIMEOUT_MS | 12000 | How long an action waits for the page to answer. | |||
APPLE_SAFARI_LIVE_READ_TIMEOUT_MS | 2500 | How long read_page waits on the tab. 0 = capture. | |||
APPLE_SAFARI_READING_LIST_CONFIRM_MS | 1500 | Beat before re-reading to confirm a Reading List add. | |||
APPLE_SAFARI_INDEX_MODE | auto | auto \ | ro \ | immutable \ | off. |
APPLE_SAFARI_DEFAULT_RANGE_DAYS | 30 | Window when only a start is given. | |||
APPLE_SAFARI_MAX_RANGE_DAYS | 3660 | Hard ceiling on a single range. | |||
APPLE_SAFARI_MAX_RESULTS | — | Default page size. | |||
APPLE_SAFARI_EXPOSE_PROMPTS | off | Register prompts and cupertino:// resources. | |||
APPLE_SAFARI_DEBUG | off | Verbose logging. |
APPLE_SAFARI_ALLOW_CODESTwo things move together when it is on: find_codes is registered, and page_elements returns the value of a one-time-code field. It is a read, and deliberately not folded into ALLOW_WRITES — reaching a read through the write gate would mean granting the right to click a button in order to see a number.
A credential field is withheld either way. A password, a card number or a CVC comes back redacted: "credential" with no value and no setting that returns it. This flag is named for codes and does not widen past them. In both cases hasValue still says whether the field is filled, which is usually what you needed.
It is weaker than the Messages gate of the same name, and worth knowing which. There, off means the tool does not exist and the alternative is sifting whole threads. Here read_page stays ungated, so off removes the targeted field read and the live DOM scan — not every byte of a page.
See docs/passwords.md in the repo for why the Passwords app itself is unreachable by any lane, and why reading a code a _website shows_ is a different question from reading the vault.
APPLE_SAFARI_ALLOW_NETWORKRegisters network_record, network_list and network_get, which show what a page you have allowed the extension on fetched: fetch and XMLHttpRequest calls from the top frame, console errors, and resource-timing entries. It is a read gate and is not folded into ALLOW_WRITES, for the reason ALLOW_CODES is not: the traffic of a signed-in page is session material, and that is a different exposure from a one-time code.
authorization, proxy-authorization, cookie or set-cookie, or containing token, secret, api-key or apikey, come back as . A body has no names to match, so it is returned as the page saw it, and URLs are returned in full, query strings included, so a token in one comes back too. Turn the gate on knowing that.network_record starts, recording survives a reload for 15 minutes by default (120 at most), and stop ends it at once.reload: true on network_record, which re-runs the page, and saveAs on network_get, which writes into APPLE_SAFARI_DOWNLOAD_DIR (a bare filename, and never over an existing file unless overwrite: true). Each fails with an error naming APPLE_SAFARI_ALLOW_WRITES. / bodies and WebSockets. Request ids die when the page reloads or navigates. On a page whose Content-Security-Policy refuses inline scripts there is a fallback that loads the recorder by URL instead. It has not been verified in Safari; if it works it arrives late, so the page's first requests can be missing, and if it does not, hook.injection says "blocked".network_get with jsonPath to the field, decode: "base64" and saveAs. The bytes go to disk, not into the conversation.APPLE_SAFARI_ALLOW_COOKIES and APPLE_SAFARI_COOKIE_HOSTSRegisters cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, so a signed-in session can be handed to a local tool without copying it out of Safari by hand. It reads through browser.cookies in the extension's background worker, so the values never enter the page's own process.
APPLE_SAFARI_COOKIE_HOSTS decides which sites it may read. A login cookie is the login, so the flag alone would hand any agent any session in the browser. The list is comma-separated registrable domains (yahoo.com), each covering the domain and its subdomains on a label boundary (never notyahoo.com). Empty, the default, refuses every page, and a refusal names the setting. An entry with no dot is ignored; there is no public-suffix list, so do not list one like co.uk.secure, httpOnly, sameSite and expires (null for a session cookie).names plus saveAs writes the named cookies into APPLE_SAFARI_DOWNLOAD_DIR as one Cookie header value — A3=…; T=…; Y=…, with no Cookie: prefix and no trailing newline, so a tool that takes a cookie string reads the file as is — mode 0600. A bare filename, never over an existing file unless overwrite: true, and it needs ALLOW_WRITES. A name the page lacks writes nothing and says which.