Fish121380/auto-mouse

Windows desktop UI context picker for AI agents: select windows, UI elements, or screen regions with hover highlighting, UI Automation, screenshots, local OCR, and user-approved MCP output. Works with OpenAI Codex, DeepSeek Harness, and other MCP-compatible clients.

Project Overview项目介绍

Little Mouse Pointer is a Windows desktop UI context picker for AI agents. It lets users select windows, UI elements, or screen regions and captures context via UI Automation, screenshots, and native OCR, then delivers the result to MCP clients like Codex and DeepSeek Harness after confirmation. Use it when an agent needs real desktop UI state as model input. It runs only on Windows x64, defaults to port 49153, ships self-contained, and requires closing prior instances before launch.

Little Mouse Pointer 是一款面向 AI agent 的 Windows 桌面 UI context picker。鼠标可选窗口、UI 元素或屏幕区域,通过 UI Automation、截图和本机 OCR 获取上下文,确认后经 MCP 投递给 Codex、Harness 等客户端。适用于需把桌面 UI 状态作为模型输入的自动化与辅助场景。仅支持 Windows x64,默认端口 49153,发行包已 self-contained,运行前需关闭旧实例。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile demo add github:Fish121380/auto-mouse#v0.1.1

Fish121380/auto-mouse 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Little Mouse Pointer

English README

本仓库提供 Little Mouse Pointer:一个面向 AI agent 的 Windows 桌面 UI context picker。用户可以用鼠标选择窗口、UI 元素或屏幕区域,通过 UI Automation、截图和本机 OCR 获取上下文,并在确认后通过 MCP 提供给 OpenAI Codex、DeepSeek Harness 或其他兼容客户端。

插件目录为 plugins/little-mouse-pointer。完整功能、协议和运行时说明见插件目录中的 README

文档导航

从 GitHub 安装到 Codex

在 PowerShell 中执行下面的命令,把 OWNER/REPOSITORY 替换成实际 GitHub 仓库:

codex plugin marketplace add OWNER/REPOSITORY --ref main
codex plugin add little-mouse-pointer@auto-mouse

如果只需要下载插件目录,可以使用 GitHub release zip,或在本地安装 plugins/little-mouse-pointer 这一层。不要把仓库根目录误当成直接插件根目录。

接入 DeepSeek Harness

复制 中文安装检查表English installation checklist,再参考 DeepSeek Harness 配置,把路径改成实际目录。MCP stdio 必须直接启动:

plugins/little-mouse-pointer/app/MousePointer.Windows.exe

不要通过 run.ps1 作为 MCP stdio bridge;run.ps1 只用于手动启动 GUI 和 self-test。

从 GitHub 直接安装 Harness bundle

仓库根目录同时提供符合 Harness dsh.bundle 规范的安装包。建议固定发行版 tag:

dsh plugin --profile demo add github:Fish121380/auto-mouse#v0.1.1
dsh --profile demo --dump-config

该 bundle 会自动定位自己携带的 Windows x64 exe,并注册 @deepseek-ai/dsh-mcp-client。它只适用于 Windows x64;端口可在 profile 的 cordis.patch.yml 中覆盖:

- replace:
    - id: little-mouse-pointer
      config:
        port: 49154

安装前检查

  • Windows 10/11 x64。
  • 不需要安装 .NET,发行包已经 self-contained。
  • 保留 plugins/little-mouse-pointer/app 的全部文件。
  • 默认端口为 49153,endpoint 和 MOUSE_POINTER_HTTP_PORT 必须一致。
  • Codex/Harness 运行前关闭旧的 Little Mouse Pointer 实例。
  • MCP 工具为 ui_context_pickui_context_currentui_context_clear
上一个 Prev dsh-minimax-usage 下一个 Next dsh-coding-companion