# hellohub1212/dsh-windows-mcp architecture

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

- Interactive diagram: https://gitdiagram.com/hellohub1212/dsh-windows-mcp
- Repository: https://github.com/hellohub1212/dsh-windows-mcp

## Overview

This is a DeepSeek Harness Windows desktop-automation plugin: it configures DSH’s in-box MCP bridge to launch Windows-MCP, rather than implementing the MCP client or desktop tools itself. The user installs the dependency and restarts DSH; the agent then uses bridged tools to inspect or control the desktop. The plugin also provides session-scoped Computer Use controls, settings, diagnostics, version management, and a featured-plugins entry point. Edges reflect README statements or visible imports/calls; unsampled implementation details are not inferred.

Main entry points: [`lib/index.js`](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js) (DSH Host), [`lib/updater.js`](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/updater.js) (Version Manager), [`lib/dependency.js`](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/dependency.js) (Dependency Lifecycle), [`lib/mirrors.js`](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/mirrors.js) (Mirror Discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["DSH Integration"]
  node_host["DSH Host<br/>[index.js]"]
  node_bridge_config["Bridge Loader Row<br/>[cordis.patch.yml]"]
  node_featured["Featured Plugins Entry<br/>[index.js]"]
end

subgraph group_controls["User Controls"]
  node_client["Computer Use Pill<br/>[client.js]"]
  node_settings_ui["Settings UI<br/>[client.js]"]
  node_settings["Host Settings<br/>[settings.js]"]
  node_doctor["Doctor Diagnostics<br/>[index.js]"]
  node_desktop_probe["Desktop Probe<br/>[desktop-probe.js]"]
end

subgraph group_dependency["Dependency Lifecycle"]
  node_dependency["Dependency Lifecycle<br/>[dependency.js]"]
  node_installer["Managed Installer<br/>[dependency.js]"]
end

subgraph group_versions["Version Management"]
  node_updater["Version Manager<br/>[updater.js]"]
  node_mirror_probe["Mirror Discovery<br/>[mirrors.js]"]
  node_pypi["PyPI Index Parser<br/>[pypi.js]"]
  node_install_state[("Managed Version State<br/>[installs.js]")]
  node_process_scan["Running Process Scan<br/>[processes.js]"]
end

subgraph group_upstream["Desktop Automation"]
  node_mcp_client["DSH MCP Bridge"]
  node_windows_mcp["Windows-MCP Server"]
end

node_user(("User"))
node_agent(("DSH Agent"))
node_desktop["Windows Desktop"]
node_uv["uv Toolchain"]
node_pypi_service["PyPI Mirrors"]
node_curation["Plugin Curation"]

node_user -->|"installs plugin"| node_host
node_host -->|"mounts loader"| node_bridge_config
node_bridge_config -->|"configures bridge"| node_mcp_client
node_mcp_client -->|"spawns server"| node_windows_mcp
node_windows_mcp -->|"automates desktop"| node_desktop
node_agent -->|"calls tools"| node_mcp_client
node_user -->|"toggles session"| node_client
node_user -->|"configures plugin"| node_settings_ui
node_settings_ui -->|"reads and writes"| node_settings
node_host -->|"reads settings"| node_settings
node_host -->|"reports and installs"| node_dependency
node_host -->|"registers diagnostics"| node_doctor
node_doctor -->|"probes desktop"| node_desktop_probe
node_user -->|"installs dependency"| node_dependency
node_dependency -->|"runs tool install"| node_uv
node_user -->|"manages versions"| node_updater
node_updater -->|"checks mirrors"| node_mirror_probe
node_mirror_probe -->|"parses indexes"| node_pypi
node_mirror_probe -->|"fetches package indexes"| node_pypi_service
node_updater -->|"updates version state"| node_install_state
node_updater -->|"checks running processes"| node_process_scan
node_updater -->|"uses dependency helpers"| node_dependency
node_updater -->|"installs versions"| node_uv
node_host -->|"serves version controls"| node_updater
node_host -->|"provides plugins entry"| node_featured
node_featured -->|"displays curated plugins"| node_curation

click node_host "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js"
click node_bridge_config "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/cordis.patch.yml"
click node_featured "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js"
click node_client "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/client.js"
click node_settings_ui "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/client.js"
click node_settings "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/settings.js"
click node_doctor "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js"
click node_desktop_probe "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/desktop-probe.js"
click node_dependency "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/dependency.js"
click node_installer "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/dependency.js"
click node_updater "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/updater.js"
click node_mirror_probe "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/mirrors.js"
click node_pypi "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/pypi.js"
click node_install_state "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/installs.js"
click node_process_scan "https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/processes.js"

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_host,node_bridge_config,node_featured,node_user toneBlue
class node_client,node_settings_ui,node_settings,node_doctor,node_desktop_probe toneAmber
class node_dependency,node_installer toneMint
class node_updater,node_mirror_probe,node_pypi,node_install_state,node_process_scan toneRose
class node_mcp_client,node_windows_mcp,node_agent,node_desktop,node_uv,node_pypi_service,node_curation toneIndigo
```

## Components

### DSH Integration

- [DSH Host](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js): `lib/index.js`
- [Bridge Loader Row](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/cordis.patch.yml): `cordis.patch.yml`
- [Featured Plugins Entry](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js): `lib/index.js`

### User Controls

- [Computer Use Pill](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/client.js): `lib/client.js`
- [Settings UI](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/client.js): `lib/client.js`
- [Host Settings](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/settings.js): `lib/settings.js`
- [Doctor Diagnostics](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/index.js): `lib/index.js`
- [Desktop Probe](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/desktop-probe.js): `lib/desktop-probe.js`

### Dependency Lifecycle

- [Dependency Lifecycle](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/dependency.js): `lib/dependency.js`
- [Managed Installer](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/dependency.js): `lib/dependency.js`

### Version Management

- [Version Manager](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/updater.js): `lib/updater.js`
- [Mirror Discovery](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/mirrors.js): `lib/mirrors.js`
- [PyPI Index Parser](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/pypi.js): `lib/pypi.js`
- [Managed Version State](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/installs.js): `lib/installs.js`
- [Running Process Scan](https://github.com/hellohub1212/dsh-windows-mcp/blob/main/lib/processes.js): `lib/processes.js`

### Desktop Automation

- **DSH MCP Bridge**
- **Windows-MCP Server**

### Other components

- **User**
- **DSH Agent**
- **Windows Desktop**
- **uv Toolchain**
- **PyPI Mirrors**
- **Plugin Curation**

## Connections

- User → DSH Host: installs plugin (evidence: `README.md`)
- DSH Host → Bridge Loader Row: mounts loader (evidence: `README.md`)
- Bridge Loader Row → DSH MCP Bridge: configures bridge (evidence: `README.md`)
- DSH MCP Bridge → Windows-MCP Server: spawns server (evidence: `README.md`)
- Windows-MCP Server → Windows Desktop: automates desktop (evidence: `README.md`)
- DSH Agent → DSH MCP Bridge: calls tools (evidence: `README.md`)
- User → Computer Use Pill: toggles session (evidence: `README.md`)
- User → Settings UI: configures plugin (evidence: `README.md`)
- Settings UI → Host Settings: reads and writes (evidence: `lib/client.js`)
- DSH Host → Host Settings: reads settings (evidence: `lib/index.js`)
- DSH Host → Dependency Lifecycle: reports and installs (evidence: `lib/index.js`)
- DSH Host → Doctor Diagnostics: registers diagnostics (evidence: `README.md`)
- Doctor Diagnostics → Desktop Probe: probes desktop (evidence: `lib/index.js`)
- User → Dependency Lifecycle: installs dependency (evidence: `README.md`)
- Dependency Lifecycle → uv Toolchain: runs tool install (evidence: `lib/dependency.js`)
- User → Version Manager: manages versions (evidence: `README.md`)
- Version Manager → Mirror Discovery: checks mirrors (evidence: `lib/updater.js`)
- Mirror Discovery → PyPI Index Parser: parses indexes (evidence: `lib/mirrors.js`)
- Mirror Discovery → PyPI Mirrors: fetches package indexes (evidence: `lib/mirrors.js`)
- Version Manager → Managed Version State: updates version state (evidence: `lib/updater.js`)
- Version Manager → Running Process Scan: checks running processes (evidence: `lib/updater.js`)
- Version Manager → Dependency Lifecycle: uses dependency helpers (evidence: `lib/updater.js`)
- Version Manager → uv Toolchain: installs versions (evidence: `lib/updater.js`)
- DSH Host → Version Manager: serves version controls (evidence: `lib/index.js`)
- DSH Host → Featured Plugins Entry: provides plugins entry (evidence: `README.md`)
- Featured Plugins Entry → Plugin Curation: displays curated plugins (evidence: `README.md`)
