# bileneret/mcp-hands architecture

> Architecture diagram of the GitHub repository bileneret/mcp-hands, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bileneret/mcp-hands
- Repository: https://github.com/bileneret/mcp-hands

## Overview

MCP-Hands is a Windows desktop execution layer for computer-use agents, with an MCP tool server and a local voice assistant sharing the same capabilities. The main workflow is a voice or text goal → local routing or LLM planning → guarded execution → verification against desktop or file state. The graph also preserves the documented perception, Office, file, checkpoint, and live-browser capabilities. Relationships use README statements and SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`mcp_hands/mcp_server.py`](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/mcp_server.py) (MCP server), [`mcp_hands/assistant/agent.py`](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/agent.py) (Jarvis agent), [`mcp_hands/brain/runner.py`](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/runner.py) (Plan executor), [`mcp_hands/browser.py`](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/browser.py) (Browser scenarios)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_assistant["Local assistant"]
  node_voice["Voice input<br/>[voice.py]"]
  node_assistant_agent["Jarvis agent<br/>[agent.py]"]
  node_router["Local intent router<br/>[router.py]"]
  node_recipes[("Saved goal recipes<br/>[memory.py]")]
  node_speech["Speech output<br/>[tts.py]"]
end

subgraph group_planning["Planning and verification"]
  node_llm["Senior LLM planner<br/>[llm.py]"]
  node_plan["Plan schema<br/>[plan.py]"]
  node_runner["Plan executor<br/>[runner.py]"]
  node_inspector["Artifact inspector<br/>[inspector.py]"]
  node_checkpoints[("Artifact checkpoints<br/>[checkpoints.py]")]
end

subgraph group_mcp["MCP tool layer"]
  node_mcp_server["MCP server<br/>[mcp_server.py]"]
end

subgraph group_desktop["Desktop interaction"]
  node_uia["UI Automation<br/>[uia.py]"]
  node_ocr["Windows OCR<br/>[ocr.py]"]
  node_screen["Screen capture<br/>[screen.py]"]
  node_geometry["Coordinate geometry<br/>[geometry.py]"]
  node_input["Guarded input<br/>[input.py]"]
  node_events["Window events<br/>[events.py]"]
end

subgraph group_domains["Domain tools"]
  node_office["Office automation<br/>[office.py]"]
  node_files["File operations<br/>[files.py]"]
  node_live["Live browser CDP<br/>[live.py]"]
  node_browser["Browser scenarios<br/>[browser.py]"]
  node_scenarios["Scenario runner<br/>[runner.py]"]
  node_probe["Isolated worker supervisor<br/>[probe.py]"]
  node_probe_worker["Worker process<br/>[probe_worker.py]"]
end

node_user(("Voice or text user"))

node_user -->|"speaks"| node_voice
node_voice -.->|"provides input"| node_assistant_agent
node_assistant_agent -->|"routes intent"| node_router
node_assistant_agent -->|"plans complex goals"| node_llm
node_assistant_agent -->|"uses recipes"| node_recipes
node_assistant_agent -->|"calls tools"| node_mcp_server
node_assistant_agent -.->|"speaks response"| node_speech
node_router -.->|"dispatches browser actions"| node_live
node_llm -->|"produces plan"| node_plan
node_runner -->|"dispatches tools"| node_mcp_server
node_runner -->|"reads plan"| node_plan
node_runner -->|"manages rollback"| node_checkpoints
node_runner -.->|"verifies artifacts"| node_inspector
node_mcp_server -->|"queries UI"| node_uia
node_mcp_server -->|"reads text"| node_ocr
node_mcp_server -->|"captures screen"| node_screen
node_mcp_server -->|"sends guarded input"| node_input
node_input -->|"uses coordinates"| node_geometry
node_mcp_server -->|"dispatches Office tools"| node_office
node_mcp_server -->|"dispatches file tools"| node_files
node_mcp_server -->|"dispatches browser tools"| node_live
node_mcp_server -->|"dispatches browser tools"| node_browser
node_mcp_server -->|"runs scenarios"| node_scenarios
node_office -->|"delegates COM calls"| node_probe
node_probe -->|"supervises process"| node_probe_worker
node_probe_worker -->|"executes input"| node_input
node_probe_worker -->|"queries UI"| node_uia
node_browser -->|"uses CDP"| node_live
node_browser -.->|"records run"| node_scenarios

click node_voice "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/voice.py"
click node_assistant_agent "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/agent.py"
click node_router "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/router.py"
click node_recipes "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/memory.py"
click node_speech "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/tts.py"
click node_llm "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/llm.py"
click node_plan "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/plan.py"
click node_runner "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/runner.py"
click node_inspector "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/inspector.py"
click node_checkpoints "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/checkpoints.py"
click node_mcp_server "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/mcp_server.py"
click node_uia "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/uia.py"
click node_ocr "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/ocr.py"
click node_screen "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/screen.py"
click node_geometry "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/geometry.py"
click node_input "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/input.py"
click node_events "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/events.py"
click node_office "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/office.py"
click node_files "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/files.py"
click node_live "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/live.py"
click node_browser "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/browser.py"
click node_scenarios "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/scenarios/runner.py"
click node_probe "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/probe.py"
click node_probe_worker "https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/probe_worker.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_voice,node_assistant_agent,node_router,node_recipes,node_speech,node_user toneBlue
class node_llm,node_plan,node_runner,node_inspector,node_checkpoints toneAmber
class node_mcp_server toneMint
class node_uia,node_ocr,node_screen,node_geometry,node_input,node_events toneRose
class node_office,node_files,node_live,node_browser,node_scenarios,node_probe,node_probe_worker toneIndigo
```

## Components

### Local assistant

- [Voice input](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/voice.py): `mcp_hands/assistant/voice.py`
- [Jarvis agent](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/agent.py): `mcp_hands/assistant/agent.py`
- [Local intent router](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/router.py): `mcp_hands/assistant/router.py`
- [Saved goal recipes](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/memory.py): `mcp_hands/memory.py`
- [Speech output](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/assistant/tts.py): `mcp_hands/assistant/tts.py`

### Planning and verification

- [Senior LLM planner](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/llm.py): `mcp_hands/brain/llm.py`
- [Plan schema](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/plan.py): `mcp_hands/brain/plan.py`
- [Plan executor](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/runner.py): `mcp_hands/brain/runner.py`
- [Artifact inspector](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/brain/inspector.py): `mcp_hands/brain/inspector.py`
- [Artifact checkpoints](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/checkpoints.py): `mcp_hands/checkpoints.py`

### MCP tool layer

- [MCP server](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/mcp_server.py): `mcp_hands/mcp_server.py`

### Desktop interaction

- [UI Automation](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/uia.py): `mcp_hands/uia.py`
- [Windows OCR](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/ocr.py): `mcp_hands/ocr.py`
- [Screen capture](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/screen.py): `mcp_hands/screen.py`
- [Coordinate geometry](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/geometry.py): `mcp_hands/geometry.py`
- [Guarded input](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/input.py): `mcp_hands/input.py`
- [Window events](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/events.py): `mcp_hands/events.py`

### Domain tools

- [Office automation](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/office.py): `mcp_hands/office.py`
- [File operations](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/files.py): `mcp_hands/files.py`
- [Live browser CDP](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/live.py): `mcp_hands/live.py`
- [Browser scenarios](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/browser.py): `mcp_hands/browser.py`
- [Scenario runner](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/scenarios/runner.py): `mcp_hands/scenarios/runner.py`
- [Isolated worker supervisor](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/probe.py): `mcp_hands/probe.py`
- [Worker process](https://github.com/bileneret/mcp-hands/blob/main/mcp_hands/probe_worker.py): `mcp_hands/probe_worker.py`

### Other components

- **Voice or text user**

## Connections

- Voice or text user → Voice input: speaks (evidence: `README.md`)
- Voice input → Jarvis agent: provides input
- Jarvis agent → Local intent router: routes intent (evidence: `mcp_hands/assistant/agent.py`)
- Jarvis agent → Senior LLM planner: plans complex goals (evidence: `mcp_hands/assistant/agent.py`)
- Jarvis agent → Saved goal recipes: uses recipes (evidence: `mcp_hands/assistant/agent.py`)
- Jarvis agent → MCP server: calls tools (evidence: `mcp_hands/assistant/agent.py`)
- Jarvis agent → Speech output: speaks response
- Local intent router → Live browser CDP: dispatches browser actions
- Senior LLM planner → Plan schema: produces plan (evidence: `mcp_hands/brain/llm.py`)
- Plan executor → MCP server: dispatches tools (evidence: `mcp_hands/brain/runner.py`)
- Plan executor → Plan schema: reads plan (evidence: `mcp_hands/brain/runner.py`)
- Plan executor → Artifact checkpoints: manages rollback (evidence: `mcp_hands/brain/runner.py`)
- Plan executor → Artifact inspector: verifies artifacts
- MCP server → UI Automation: queries UI (evidence: `mcp_hands/mcp_server.py`)
- MCP server → Windows OCR: reads text (evidence: `mcp_hands/mcp_server.py`)
- MCP server → Screen capture: captures screen (evidence: `README.md`)
- MCP server → Guarded input: sends guarded input (evidence: `mcp_hands/mcp_server.py`)
- Guarded input → Coordinate geometry: uses coordinates (evidence: `mcp_hands/input.py`)
- MCP server → Office automation: dispatches Office tools (evidence: `mcp_hands/mcp_server.py`)
- MCP server → File operations: dispatches file tools (evidence: `mcp_hands/mcp_server.py`)
- MCP server → Live browser CDP: dispatches browser tools (evidence: `mcp_hands/mcp_server.py`)
- MCP server → Browser scenarios: dispatches browser tools (evidence: `mcp_hands/mcp_server.py`)
- MCP server → Scenario runner: runs scenarios (evidence: `mcp_hands/mcp_server.py`)
- Office automation → Isolated worker supervisor: delegates COM calls (evidence: `mcp_hands/office.py`)
- Isolated worker supervisor → Worker process: supervises process (evidence: `mcp_hands/probe.py`)
- Worker process → Guarded input: executes input (evidence: `mcp_hands/probe_worker.py`)
- Worker process → UI Automation: queries UI (evidence: `mcp_hands/probe_worker.py`)
- Browser scenarios → Live browser CDP: uses CDP (evidence: `mcp_hands/browser.py`)
- Browser scenarios → Scenario runner: records run
