periscope

io.github.oskar-szulc由 GitHub 账号 oskar-szulc 发布v0.2.5更新于 Oct 24, 2026

A real Safari-engine (WebKit) browser for agents on macOS: sessions, extraction, bot checks.

概览

AI 生成的概览

macOS 上的命令行浏览器,使用 Safari 的 WebKit 引擎,为智能体提供持久会话、页面读取、数据提取与点击操作。

可以做什么
  • 打开网址,并在命令之间保持命名会话
  • 以 markdown 读取页面正文,或查看网址、标题、标题层级与可点击元素
  • 以 JSON 提取重复条目、结构化数据与下一页链接,并列出全部链接
  • 截取页面显示效果的 PNG 截图
  • 通过 click、fill、type、select、scroll、mouse 操作页面,可用 CSS 或可见文字与标签定位
  • 接管窗口完成登录,并识别 CAPTCHA 与机器人检测页面
适用场景
适合需要让智能体在 Mac 上以普通 Safari 访客身份浏览真实网站的场景,例如抓取商品、职位或搜索结果列表,以及需要保持登录状态的多步流程。
运行要求
需在 macOS 26 或更新版本上本地运行,处于已登录的桌面会话且显示器开启,不能位于 shell 沙箱内。可通过 Homebrew、安装脚本、使用 Xcode 26 从源码构建或 .mcpb 包安装;MCP 命令为 periscope mcp。未声明任何账号、API 密钥或环境变量。
安装前请注意
它驱动真实浏览器并保留已登录会话,凭据与 Cookie 存于这些会话中;click、fill、type 等操作会改变远端网站状态。遇到机器人检测或 CAPTCHA 页面时仅以退出码提示,不会自动解决。安装脚本会把远程脚本直接交给 shell 执行,运行前应先审阅。

安装

在 SourceWeft 中

  1. 打开 控制台中的 periscope,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

periscope

A command-line browser for AI agents on macOS. It runs Safari's engine (WebKit), so websites see a normal Safari, and it keeps sessions open between commands.

bash
periscope navigate https://books.toscrape.com/ --session demoperiscope text --session demo        # the page as markdownperiscope extract --session demo     # the page's records as JSONperiscope click "text:Next" --session demo

Install

bash
brew install oskar-szulc/tap/periscopeperiscope install-skill    # adds the agent skill to this project

Without Homebrew: curl -fsSL https://raw.githubusercontent.com/oskar-szulc/periscope/main/install.sh | sh

To build from source instead (Xcode 26): swift build -c release, then copy .build/release/periscope onto your PATH.

For agents

  • Claude Desktop: download periscope-<version>.mcpb from the latest release and open it
  • Claude Code: /plugin marketplace add oskar-szulc/periscope, then /plugin install periscope@periscope
  • Codex, Cursor and others: npx skills add oskar-szulc/periscope
  • MCP clients: listed in the MCP Registry as io.github.oskar-szulc/periscope; the command is periscope mcp, e.g. claude mcp add periscope -- periscope mcp, or in a JSON config: {"mcpServers": {"periscope": {"command": "periscope", "args": ["mcp"]}}}
  • Any agent with a shell: periscope docs prints the full reference

Reading a page

CommandReturnsUse it to
textThe page's main content as markdown, links includedRead an article or a post
stateURL, title, headings, the start of the content, and every clickable element with a selector and a number (@3)Decide what to click or fill next
extractJSON: the page's repeated items (cards, results, table rows), its structured data, and the next-page linkScrape a list of jobs, products or results
linksEvery link on the page as an absolute URL (--match to filter)Collect URLs to visit next
screenshotA PNG of the page as displayedSee the layout, or check visual content

What else you can do

  • Act: click, fill, type, select, scroll, mouse, targeting CSS or what a person sees (text:Next, label:Email)
  • Stay logged in: named sessions persist; login and show let you take over the window
  • Know when you're blocked: CAPTCHA and bot-check pages exit with code 5

Full reference: PERISCOPE.md. Why and how it was built: Building periscope.

Requirements

  • macOS 26 or newer, in a logged-in desktop session with the display on
  • Not inside a shell sandbox (periscope exits with a message if it is)

License

MIT. Contributions: see CONTRIBUTING.md. Made by Oskar Szulc.

来源:README.md,提交 7d4a01e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.2.5最新Oct 1, 2026
  2. v0.2.4Oct 1, 2026
  3. v0.2.1Sep 30, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分