About Mira Harness
Mira Harness is an MCP server published by MiraWorkspace in the Science category: mira Harness 是一款本地优先的个人 AI 工作台:Agent 工作台、AI 小说创作与微应用宿主,数据与模型密钥不出本机。基于 Vue 3 + TypeScript + Vite + Electron。. Conduid read 35 tools from its source: desktop_apps, desktop_click, desktop_drag, desktop_find_text, desktop_key, desktop_launch and 29 more. No package is published for it, so it installs from a source checkout.
The repository has 7 stars and 0 forks, and its last commit was on 18 Nov 2026. Conduid has no tagged release on record for it. Its topics include agent-harness, ai-workspace, ai-writing, desktop-app, electron and local-first.
Install
git clone https://github.com/MiraWorkspace/Mira-HarnessTools (35)
desktop_apps列出正在运行的应用(pid + 名字 + bundleId,* = 当前前台)。想操作某个应用先用它拿 pid。desktop_click点击。**优先用 text**(OCR 找屏幕上的文字再点,最稳、不怕界面挪位置);找不到文字再用 x/y 坐标(来自 desktop_screenshot 或 desktop_windows)。默认**投递给目标进程**(不移动你的真实鼠标、不抢前台);某些应用不响应时加 global=true 走系统事件。点完会附一句窗口变化(新开 / 不见 / 标题变了 / 没变化);输入、按键、拖拽也一样。desktop_drag从 (x1,y1) 拖到 (x2,y2)。用于拖文件、拖滑块、选中文本。desktop_find_textOCR 找屏幕上的文字,返回它的屏幕坐标(可以直接喂给 desktop_click)。界面里找不到元素、又不想靠猜坐标时用它。可以指定 pid 只在那个窗口里找。desktop_key给目标进程发按键。keycode 用 macOS 虚拟键码(回车 36、Tab 48、Esc 53、空格 49、方向键 123-126、删除 51)。可加修饰键:cmd / shift / alt / ctrl,例如 cmd+shift 就是 ["cmd","shift"]。目标在后台时,带 cmd 的全选 / 复制 / 粘贴这类系统快捷键多半不生效。desktop_launch在**后台**启动一个应用(不会抢前台、不打断用户)。参数可以是应用名(如 "TextEdit"、"计算器")或 bundleId(如 "com.apple.TextEdit")。desktop_observe可选的无障碍辅助观察:截取目标窗口,并把所有可点元素(按钮/输入框/链接/勾选框…)在图上用蓝色编号标出来,同时返回编号清单(编号 / 类型 / 文字 / 坐标)。看完直接 `desktop_click(pid, index=N)` 点第 N 个 —— 比猜坐标可靠得多。(原理:走 macOS 无障碍树枚举元素;锁屏时拿不到,那种情况请改用 desktop_screenshot + desktop_find_text。)desktop_screenshot给屏幕或某个窗口截图,图片直接返回给你看。给了 pid 就只截那个应用最前面的窗口(在哪块屏都行,被别的窗口挡住也截得到它本身),否则截主显示器。图按「点」出(1 像素 = 1 点):全屏图上的坐标就是屏幕坐标;窗口图的换算方式写在返回文字里。**先截图、看清按钮位置,再用 desktop_click 按坐标点** —— 这是推荐的工作方式。desktop_scroll在目标窗口的 (x, y) 处滚动,单位是「行」(一般 3~10)。dy 为正向下滚、为负向上滚;dx 为正向右、为负向左(默认 0)。desktop_type往目标进程输入文字(支持中文)。输入前通常要先用 desktop_click 点一下输入框。desktop_windows列出当前屏幕上所有可见窗口,含 pid、窗口 id、应用名、标题和**屏幕坐标**(左上角 x,y 和宽高)。桌面操作前先用它拿到目标和坐标。不依赖无障碍权限,始终可用。windows_computer_use_accessibility_treeRead the UI Automation tree without taking a screenshot.windows_computer_use_activate_windowBring a top-level window to the foreground by title substring, process id, or native HWND. This tool always activates its target; the shared activate flag cannot suppress it. With browserTab, bring that tab to the front of its browser window.windows_computer_use_clickClick a screen coordinate or the center of a UI Automation element. dispatch:'auto' (default) = a left click on an element runs in the background (BM_CLICK on a Win32 button, else its UIA Invoke/Toggle pattern); a coordinate click is real SendInput input: the target comes forward for it, a point that shows another window is refused (POINT_COVERED), then the pointer and the foreground go back; dispatch:'background' = PostMessage into the target window's queue (no foreground steal, delivery unverified — Chromium/Electron/UWP may drop it, then retry with foreground); dispatch:'foreground' = always foreground SendInput. Raw-coordinate clicks home-correct if the target window moved since it was observed (reported as 'homed'). A browser-lane page element id (t1a2b:57) is clicked inside the page itself, in the background; a covered element is refused and the covering element is named.windows_computer_use_close_windowClose a window gracefully by posting WM_CLOSE (the app can veto with a save dialog). Safer than killing the process; use close_window instead of alt+f4 when the app may have unsaved state you want to handle. The shared activate flag is ignored: WM_CLOSE is posted in the background and needs no foreground switch. With browserTab, close that tab; the page may still ask to confirm leaving.windows_computer_use_double_clickDouble click a screen coordinate or the center of a UI Automation element. Supports the same dispatch modes as click (background posts a real WM_LBUTTONDBLCLK). Browser-lane page element ids are double-clicked inside the page.windows_computer_use_dragDrag through a path of screen coordinates.windows_computer_use_element_infoReturn UI Automation information for an element id or a screen point. A browser-lane page element id (t1a2b:57) returns its tag, text, value, link and page box.windows_computer_use_findFind UIA elements by name, automation id, class, value or type. When UIA is sparse or incomplete and no match is found, automatically read visible text with OCR. OCR candidates have SCREEN coordinates and source:'ocr', not UIA element ids. If the literal query misses, inspect ocr.lines and reformulate using the visible text (a search box may say '大家都在搜'). With browserTab, search that page's accessibility outline instead and return page element ids.windows_computer_use_focusSet keyboard focus to a UI Automation element, or to a browser-lane page element inside its page.windows_computer_use_healthCheck that the Windows UI Automation backend, screenshot capture, and input stack are available.windows_computer_use_invokeInvoke a UI Automation element in the background: BM_CLICK on a Win32 button, else its Invoke, Toggle, SelectionItem, or ExpandCollapse pattern, with click fallback. action expands, collapses or scrolls the element into view instead. A browser-lane page element id is clicked inside the page.windows_computer_use_keypressPress a key or key chord, such as Ctrl+L, Enter, Alt+F4, or Shift+Tab. The Windows key is blocked by design. The keys go to the target (or active) window, which comes forward for them and then gives the foreground back, unless a menu or dialog they opened is showing. dispatch:'background' supports only a single printable character (posted as WM_CHAR into the target window, no foreground steal); chords and functional keys must use dispatch:'foreground' (SendKeys). With browserTab, the key goes to that page inside the browser: Alt+Left/Alt+Right/F5 go back/forward/reload, Enter/Escape answer an open JavaScript dialog, and browser-window shortcuts such as Ctrl+L or Ctrl+T are refused.windows_computer_use_launch_appLaunch an executable, shortcut or installed application through the interactive Windows desktop Shell. The app outlives the tool call and MCP server; it uses the desktop's environment. Requires Explorer. A successful result means dispatched; verify the intended window with list_windows/wait_for. Applications may activate themselves even with activate:false. Runs no commands: command interpreters and script hosts (cmd, PowerShell, wscript, mshta…) start only without arguments. Does not request elevation.windows_computer_use_list_windowsList top-level windows visible to Windows UI Automation. browserLane lists the tabs of connected Chromium browsers with ids for browserTab, and explains how to open a background tab (set_value elementId new-tab).windows_computer_use_moveMove the mouse pointer to a screen coordinate or the center of an element. A browser-lane page element id hovers it inside the page without moving the desktop pointer.windows_computer_use_move_windowMove (not resize) a window to screen coordinates without activating it. Useful for arranging windows, and it also refreshes the homing cache for coordinate-based actions.windows_computer_use_ocrRead visible text with Windows.Media.Ocr, independent of UIA by default. Returns text, lines and word boxes in SCREEN coordinates. query is literal text matching, not semantic recognition; inspect lines if 'search' misses a placeholder. Click matched.word.x/y using foreground dispatch, then type_text with focusMode:'preserve'. Optional resolveControl performs a potentially blocking UIA hit-test; its control may be the whole page rather than the text input.windows_computer_use_screenshotCapture a window or desktop without querying UIA. Returns an image plus bounds and imageScale for mapping image pixels to SCREEN coordinates: screen = bounds origin + image / imageScale. Use when the accessibility provider is unavailable, or to locate icons visually. Capture does not prove an action succeeded; inspect the resulting state. With browserTab, capture that tab's viewport inside the browser, also in the background; its pixels are page pixels, not screen coordinates.windows_computer_use_scrollScroll at a screen coordinate or an element. An element scrolls in the background first (WM_VSCROLL on a Win32 scroll bar, else the UIA ScrollPattern of the element or of its nearest scrolling ancestor) and reports scrollPercent before/after; otherwise the wheel is real input at the point, with the foreground and pointer given back. Positive deltaY scrolls down; 120 is one wheel notch. With browserTab (the page) or a browser-lane page element id, scroll inside the page in the background.windows_computer_use_set_valueSet a value in the background (EM_REPLACESEL on a Win32 edit, else the UI Automation ValuePattern), or focus and type as fallback. Browser lane: a page element id fills that field, selects that option or sets that checkbox inside the page; <tab>:address (for example t1a2b:address) navigates the tab to a web address; new-tab opens the address in a background tab, in a separate DSH browser without sign-ins or, when the user turned on sign-ins, in their own browser; <browser>:new-tab opens it in that connected browser.windows_computer_use_snapshotCapture a screenshot and a UI Automation tree for the active window or desktop.windows_computer_use_type_textType text into the focused control of the target (or active) window. method:'auto' (default) = a focused Win32 edit takes the text in the background (EM_REPLACESEL at the caret: no clipboard, keyboard or foreground; text with line breaks is pasted instead); any other control gets a clipboard paste with the window borrowed for it (reliable for CJK; the clipboard is restored and the paste kept out of clipboard history); method:'clipboard' always pastes; method:'sendinput' sends each character as a KEYEVENTF_UNICODE SendInput event (no clipboard, best for ASCII/short text); method:'background' posts WM_CHAR straight into the target window's message queue — no clipboard, no foreground steal, delivery unverified. After a background write, or with a window target and focusMode:'main', the result includes verifyValue (the text control's value after typing, truncated to 200 chars). With browserTab, insert the text at that page's focused field inside the browser: no clipboard, pointer or foreground change.windows_computer_use_waitWait for a short period before observing the UI again.windows_computer_use_wait_forWait for a window, a UIA element, or literal visible OCR text to appear/disappear. condition:'window' uses native window enumeration; 'element' uses a bounded UIA query; 'text' uses OCR without UIA. Returns verification:'observed' only when the condition was observed; truncated UIA absence is inconclusive. Text is literal, so use the actual expected text, not an inferred semantic label. With browserTab, element/text conditions poll that page's accessibility outline.Security checks
6 checks have not been run yet.