native-devtools-mcp 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +42 -11
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,22 +1,33 @@
1
1
  # native-devtools-mcp
2
2
 
3
- <div align="center">
3
+ `native-devtools-mcp` is a Model Context Protocol (MCP) server for computer use on macOS, Windows, and Android. It gives AI agents and MCP clients direct control over native desktop apps and Android devices through screenshots, OCR, accessibility-based text lookup, input simulation, window management, and ADB.
4
4
 
5
- ![Version](https://img.shields.io/npm/v/native-devtools-mcp?style=flat-square)
6
- ![License](https://img.shields.io/npm/l/native-devtools-mcp?style=flat-square)
7
- ![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Android-blue?style=flat-square)
8
- ![Downloads](https://img.shields.io/npm/dt/native-devtools-mcp?style=flat-square)
5
+ Use it when browser-only automation is not enough: Electron apps, system dialogs, desktop tools, native app testing, and Android device workflows. It works with [Claude Desktop](https://claude.ai/download), [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://cursor.com), and other MCP-compatible clients.
9
6
 
10
- **Give your AI agent "eyes" and "hands" for native desktop and mobile applications.**
7
+ Useful for MCP-based computer use, desktop automation, UI automation, native app testing, e2e testing, RPA, screen reading, mouse and keyboard control, and Android device automation.
11
8
 
12
- A Model Context Protocol (MCP) server that provides **Computer Use** capabilities: screenshots, OCR, input simulation, and window management — for **native desktop apps** and **Android devices**, not just browsers.
9
+ ```bash
10
+ npx -y native-devtools-mcp
11
+ ```
13
12
 
14
- **Works with:** [Claude Desktop](https://claude.ai/download) • [Claude Code](https://docs.anthropic.com/en/docs/claude-code) • [Cursor](https://cursor.com) • Any MCP-compatible client
13
+ **Core capabilities**
14
+ - Screenshots, OCR, and accessibility-first `find_text`
15
+ - `click`, `type_text`, `scroll`, `launch_app`, `quit_app`, and window management
16
+ - `element_at_point` for inspecting accessible UI elements at screen coordinates
17
+ - `load_image` + `find_image` for non-text UI elements such as icons and custom controls
18
+ - Android screenshots, text lookup, input, and app control over ADB
19
+ - Local execution: screenshots and input stay on the machine
15
20
 
16
- [//]: # "Search keywords: MCP, MCP server, Model Context Protocol, computer use, desktop automation, UI automation, native app testing, test automation, e2e testing, RPA, screenshots, OCR, template matching, accessibility, mouse, keyboard, screen reading, macOS, Windows, Android, ADB, mobile testing, Claude, Claude Code, Cursor, AI agent, native-devtools-mcp"
21
+ **For AI agents:** Read [`AGENTS.md`](./AGENTS.md) for tool definitions, workflow patterns, and machine-readable usage guidance.
17
22
 
18
- [Features](#-features) • [Installation](#-installation) • [Getting Started](#-getting-started) • [Security & Trust](#-security--trust) • [For AI Agents](#-for-ai-agents-llms) • [Android](#-android-support)
23
+ ![Version](https://img.shields.io/npm/v/native-devtools-mcp?style=flat-square)
24
+ ![License](https://img.shields.io/npm/l/native-devtools-mcp?style=flat-square)
25
+ ![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Android-blue?style=flat-square)
26
+ ![Downloads](https://img.shields.io/npm/dt/native-devtools-mcp?style=flat-square)
27
+
28
+ [Features](#-features) • [Installation](#-installation) • [Getting Started](#-getting-started) • [Recipes](#-recipes-and-examples) • [Security & Trust](#-security--trust) • [For AI Agents](#-for-ai-agents-llms) • [Android](#-android-support)
19
29
 
30
+ <div align="center">
20
31
  <table>
21
32
  <tr>
22
33
  <td align="center"><strong>macOS</strong></td>
@@ -27,7 +38,6 @@ A Model Context Protocol (MCP) server that provides **Computer Use** capabilitie
27
38
  <td><img src="windows-demo-1.gif" width="450" alt="Windows Demo"></td>
28
39
  </tr>
29
40
  </table>
30
-
31
41
  </div>
32
42
 
33
43
  ---
@@ -40,6 +50,7 @@ A Model Context Protocol (MCP) server that provides **Computer Use** capabilitie
40
50
  - **🧩 Template Matching:** Find non-text UI elements (icons, shapes) using `load_image` + `find_image`, returning precise click coordinates.
41
51
  - **🔒 Local & Private:** 100% local execution. No screenshots or data are ever sent to external servers.
42
52
  - **📱 Android Support:** Connect to Android devices over ADB for screenshots, input simulation, UI element search, and app management — all from the same MCP server.
53
+ - **🔍 Hover Tracking:** Track cursor hover transitions across UI elements in real-time. Configurable dwell threshold filters pass-through noise — designed for LLMs observing user navigation patterns.
43
54
  - **🔌 Dual-Mode Interaction:**
44
55
  1. **Visual/Native:** Works with *any* app via screenshots & coordinates (Universal).
45
56
  2. **AppDebugKit:** Deep integration for supported apps to inspect the UI tree (DOM-like structure).
@@ -56,6 +67,9 @@ This MCP server is designed to be **highly discoverable and usable** by AI model
56
67
  3. `find_text`: A shortcut to find text on screen and get its coordinates immediately. Uses the platform **accessibility API** (macOS Accessibility / Windows UI Automation) for precise element-level matching, with OCR fallback.
57
68
  4. `element_at_point`: Inspect the accessibility element at given screen coordinates — returns name, role, label, value, bounds, pid, and app_name. Note: privacy-focused Electron apps (e.g. Signal) may restrict their AX tree, returning only a container — use `take_screenshot` with OCR as a fallback.
58
69
  5. `load_image` / `find_image`: Template matching for non-text UI elements (icons, shapes), returning screen coordinates for clicking.
70
+ 6. `start_hover_tracking` / `get_hover_events` / `stop_hover_tracking`: Track cursor hover transitions across UI elements. Configurable dwell threshold filters pass-throughs.
71
+ 7. `start_recording` / `stop_recording`: Record the frontmost app's window at ~5fps as timestamped JPEG frames. Automatically follows app switches.
72
+ 8. `launch_app` / `quit_app`: Launch apps with optional CLI args, or gracefully/forcefully quit them.
59
73
 
60
74
  ## 📦 Installation
61
75
 
@@ -119,6 +133,18 @@ Then restart your MCP client and you're ready to go.
119
133
  > { "permissions": { "allow": ["mcp__native-devtools__*"] } }
120
134
  > ```
121
135
 
136
+ ## 📚 Recipes and Examples
137
+
138
+ - [Recipes and Examples Index](./examples/README.md)
139
+ - [Claude Desktop Setup](./examples/claude-desktop-setup.md)
140
+ - [Claude Code Setup](./examples/claude-code-setup.md)
141
+ - [Cursor Setup](./examples/cursor-setup.md)
142
+ - [End-to-End Desktop Flow](./examples/end-to-end-desktop-flow.md)
143
+ - [Native App Click Flow](./examples/native-app-click-flow.md)
144
+ - [OCR Fallback and Element Inspection](./examples/ocr-fallback-and-element-inspection.md)
145
+ - [Template Matching Flow](./examples/template-matching-flow.md)
146
+ - [Android Quickstart](./examples/android-quickstart.md)
147
+
122
148
  <details>
123
149
  <summary><strong>Manual configuration (without setup)</strong></summary>
124
150
 
@@ -319,11 +345,15 @@ graph TD
319
345
  | | Input | `CGEvent` (CoreGraphics) |
320
346
  | | Text Search (`find_text`) | `Accessibility API` (primary), Vision OCR (fallback) |
321
347
  | | Element Inspection (`element_at_point`) | `AXUIElementCopyElementAtPosition` + AX tree walk fallback (Accessibility API) |
348
+ | | Hover Tracking (`start_hover_tracking`) | `CGEvent` cursor + Accessibility API polling |
349
+ | | Screen Recording (`start_recording`) | `CGWindowListCreateImage` at configurable fps |
322
350
  | | OCR | `VNRecognizeTextRequest` (Vision Framework) |
323
351
  | **Windows** | Screenshots | `BitBlt` (GDI) |
324
352
  | | Input | `SendInput` (Win32) |
325
353
  | | Text Search (`find_text`) | `UI Automation` (primary), WinRT OCR (fallback) |
326
354
  | | Element Inspection (`element_at_point`) | `IUIAutomation::ElementFromPoint` (UI Automation) |
355
+ | | Hover Tracking (`start_hover_tracking`) | `GetCursorPos` + UI Automation polling |
356
+ | | Screen Recording (`start_recording`) | `BitBlt` (GDI) at configurable fps |
327
357
  | | OCR | `Windows.Media.Ocr` (WinRT) |
328
358
  | **Android** | Screenshots | `screencap` / ADB framebuffer |
329
359
  | | Input | `adb shell input` (tap, swipe, text, keyevent) |
@@ -364,6 +394,7 @@ Works out of the box on **Windows 10/11**.
364
394
  * `find_text` uses **UI Automation (UIA)** as the primary search mechanism, querying the accessibility tree for element names. This is the same accessibility-first approach used on macOS (with the Accessibility API). Falls back to OCR automatically when UIA finds no matches.
365
395
  * OCR uses the built-in Windows Media OCR engine (offline).
366
396
  * **Note:** Cannot interact with "Run as Administrator" windows unless the MCP server itself is also running as Administrator.
397
+ * **Screen Recording Performance:** Screen recording uses GDI/BitBlt at configurable fps (default 5). For higher fps requirements or game capture scenarios, DXGI Desktop Duplication API would provide hardware-accelerated capture — this is a planned future upgrade.
367
398
 
368
399
  ## 📜 License
369
400
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-devtools-mcp",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "mcpName": "io.github.sh3ll3x3c/native-devtools",
5
5
  "description": "MCP server for native app testing — screenshot, OCR, click, type, find_text, template matching. macOS, Windows & Android.",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@
53
53
  "bin"
54
54
  ],
55
55
  "optionalDependencies": {
56
- "@sh3ll3x3c/native-devtools-mcp-darwin-arm64": "0.5.0",
57
- "@sh3ll3x3c/native-devtools-mcp-win32-x64": "0.5.0"
56
+ "@sh3ll3x3c/native-devtools-mcp-darwin-arm64": "0.6.0",
57
+ "@sh3ll3x3c/native-devtools-mcp-win32-x64": "0.6.0"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=18"