magpie-computer-use
Provides computer-use tools for local macOS applications, enabling agents to discover apps, read UI state and screenshots, click, type, scroll, drag, send key combinations, and manipulate interface elements.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
你的 Agent,多一双手
读取应用界面、查看截图、点击按钮、输入文字、滚动与拖动。插件自动识别本机完整的 Codex 桌面安装,使用其原始 Computer Use 组件;通过标准 MCP,把这些操作交给你在 magpie 中选择的 Agent。
本仓库是基于 wbb6517/magpie-computer-use 的社区维护版本,保留原项目和 LCU 的许可及来源;不是 OpenAI、Anthropic 或 magpie 官方产品。
安装一次 | 自动发现 | 原生授权 |
自动加入 magpie 资源库,按需分发给 Agent | 不用填写 Codex 路径,没有独立设置页 | 沿用本机 Codex 的持久应用批准,新请求仍由用户决定 |
适用环境: Apple Silicon Mac、magpie,以及包含完整 Computer Use 组件且签名有效的官方 Codex 桌面应用。部分安装名为 ChatGPT.app,完整的重命名安装也可识别。普通使用不需要另装 Node 或 LCU。
Related MCP server: mcp-desktop
开始使用
在 magpie 扩展 → 插件 添加
github:SammySnake-d/magpie-computer-use-agent并启用。打开 资源库 → MCP 服务器 → magpie-computer-use,选择需要使用的 Agent。
检测工具,确认列出十个操作,再重连 Agent 或新开会话。
让 Agent 先发现应用,再读取目标界面,最后执行操作。
例如:
列出当前可用应用。打开一个空白测试文稿,读取界面,然后输入「Hello from magpie」。
首次访问目标应用时,请按授权提示自行选择。Agent 支持 MCP 表单时使用其原有提示;不支持时,macOS 会显示本插件的人工确认窗口。截图展示仍取决于 Agent 的 MCP 支持。
当前版本为 0.5.1,通过上述 GitHub 来源安装;本社区版本未发布到 npm,不能将同名 npm 包当作本仓库版本。无需克隆仓库或执行插件安装命令。
十个工具
工具 | 能做什么 |
| 发现本机应用 |
| 获取目标界面树和截图,触发必要的原始授权 |
| 按元素索引或截图坐标点击 |
| 执行界面列出的辅助操作 |
| 修改可编辑元素的值 |
| 选中文字或放置光标 |
| 滚动指定元素 |
| 按截图坐标拖动 |
| 发送按键或组合键 |
| 输入文字 |
操作前读取 get_app_state,保持同一 app 标识,并使用最新的元素索引。点击等操作返回新的界面树,需要新截图时再读取状态。详见完整参数与示例。
授权留在本机
插件调用原始运行时,由它识别 Codex Always-allowed apps 中的持久批准。新应用的原始授权请求由 Agent 或 macOS 窗口交给用户;只有用户明确选择才返回批准。其他会话的临时允许不会自动借用。插件不读取登录 token、钥匙串或账号凭据,也不维护另一份应用批准清单。
macOS 辅助功能、屏幕录制及原生进程认证仍按官方流程处理。模型和账号继续在 magpie 中选择;本插件只提供本机操作工具。
更新与移除
更新扩展或 Codex 后,重新检测并重连 MCP。0.4 的精确旧条目可以保留 Agent 选择;旧 --config 参数只兼容命令格式,其选项文件不再读取。
在 magpie 中移除插件后,会自动清理本插件登记的 MCP,并由 magpie 同步撤销 Agent 分发。 普通宿主退出、关闭开关和版本更新不会触发删除;同名自定义 MCP 也不会被清理。实现与适用边界见停用与移除。
卸载不会撤销 Codex 的持久应用批准或 macOS 权限;需要调整时,在对应原生界面管理。
已验证到哪一步
本次在本机修复包中验证了 Claude Desktop 的 Chrome、Finder 和 TextEdit 只读访问,以及人工授权、永久批准复用和拒绝;0.5.1 发布源码的相关功能文件与该包逐字节一致。其他 Agent 与所有交互动作没有逐一实机验收。历史自动登记及卸载清理结果与当前结果分开记录,详见验证记录。
浏览器组件初始化成功也不等于已有可用浏览器会话;0.5.0 的历史只读检测返回零个浏览器,没有验证接管其他聊天的浏览器连接。
开发与来源
必要 macOS 网关与共享客户端基于 LCU 0.11.4 适配,保留第三方声明、网关来源及客户端修改记录。插件不分发、下载、复制或修改 OpenAI 官方二进制。
本插件通过 magpie.kind: "middleware" 声明为中间件类型。
GitHub 仓库已设置 magpie-plugin topic。npm 发布、GitHub 发现与官方推荐是不同状态;推荐列表需另向 magpie-community/plugins 申请。图标通过官方 magpie.icon 字段提供,发布标准见 magpie 插件文档。
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides native macOS computer control tools including mouse and keyboard simulation, screenshot capture, and application management for MCP-compatible agents. It enables AI assistants to directly interact with the macOS operating system and installed apps through standard tool calls.2444 npm8MIT
- FlicenseNot gradedqualityDmaintenancemacOS desktop automation enabling AI agents to screenshot, switch apps and tabs, click, type, and scroll. Offers two trust levels: read-only screenshot and full UI control.-
- AlicenseAqualityDmaintenanceEnables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.1112 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables macOS computer-use automation through public Apple APIs, supporting app and window discovery, clicking, typing, scrolling, and field setting via accessibility controls.5-