Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-harusame64-desktop-touch-mcp": {
"command": "npx",
"args": [
"-y",
"@harusame64/desktop-touch-mcp"
],
"env": {
"DESKTOP_TOUCH_AUTO_GUARD": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_RESOURCES": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_IDLE_MS": "<VALUE>",
"DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH": "<VALUE>",
"DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES": "<VALUE>",
"DESKTOP_TOUCH_RESOLVE_LOG_RAW": "<VALUE>",
"DESKTOP_TOUCH_DOCK_PIN": "true",
"DESKTOP_TOUCH_ALLOWLIST": "<VALUE>",
"DESKTOP_TOUCH_DOCK_TITLE": "<VALUE>",
"DESKTOP_TOUCH_DOCK_WIDTH": "480",
"DESKTOP_TOUCH_DOCK_CORNER": "bottom-right",
"DESKTOP_TOUCH_DOCK_HEIGHT": "360",
"DESKTOP_TOUCH_DOCK_MARGIN": "8",
"DESKTOP_TOUCH_MOUSE_SPEED": "1500",
"DESKTOP_TOUCH_DOCK_MONITOR": "primary",
"DESKTOP_TOUCH_DOCK_SCALE_DPI": "false",
"DESKTOP_TOUCH_DOCK_TIMEOUT_MS": "5000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| DESKTOP_TOUCH_AUTO_GUARD | No | Set to '0' to disable automatic action guards (reverts to v0.11.12 behavior). |
| DESKTOP_TOUCH_PERCEPTION_RESOURCES | No | Set to '1' to enable MCP perception resources. |
| DESKTOP_TOUCH_PERCEPTION_IDLE_MS | No | Idle ms before the WinEvent sidecar enters dormancy (default 60000). |
| DESKTOP_TOUCH_PERCEPTION_DORMANCY_DISABLE | No | Set to '1' to keep the WinEvent sidecar always running (no auto-dormancy). |
| DESKTOP_TOUCH_DIAGNOSTIC_LOG_DISABLE | No | Set to '1' to disable the JSONL diagnostic event log (issue #365 Phase 2). |
| DESKTOP_TOUCH_DIAGNOSTIC_LOG_PATH | No | Override path for the diagnostic event log. |
| DESKTOP_TOUCH_DIAGNOSTIC_LOG_MAX_BYTES | No | Size in bytes at which the diagnostic event log rolls over to diagnostic.log.1 (default 67108864 = 64 MiB). Two rolled generations are kept. Values below 1 MiB are raised to 1 MiB and values above 1 GiB are lowered to 1 GiB; anything that is not a positive whole number falls back to the default, so a typo cannot disable rotation in either direction. |
| DESKTOP_TOUCH_RESOLVE_LOG_RAW | No | Set to '1' to record window titles and title queries in clear in the diagnostic event log. Off by default: titles are recorded as a short hash plus their length, because a title can contain a file name, a mail subject, or a browser page title. |
| DESKTOP_TOUCH_DOCK_PIN | No | Always-on-top toggle: 'true' or 'false' Default: true |
| DESKTOP_TOUCH_ALLOWLIST | No | Path to an allowlist file for workspace_launch; overrides default locations |
| DESKTOP_TOUCH_DOCK_TITLE | No | Title of the window to dock on startup; use '@parent' to auto-dock the terminal hosting Claude via process-tree walker |
| DESKTOP_TOUCH_DOCK_WIDTH | No | Width in pixels (e.g., '480') or as a percentage of work area (e.g., '25%') Default: 480 |
| DESKTOP_TOUCH_DOCK_CORNER | No | Corner to dock the window: 'top-left', 'top-right', 'bottom-left', or 'bottom-right' Default: bottom-right |
| DESKTOP_TOUCH_DOCK_HEIGHT | No | Height in pixels (e.g., '360') or as a percentage of work area (e.g., '25%') Default: 360 |
| DESKTOP_TOUCH_DOCK_MARGIN | No | Screen-edge padding in pixels Default: 8 |
| DESKTOP_TOUCH_MOUSE_SPEED | No | Default mouse movement speed in pixels per second; set to '0' for instant teleport Default: 1500 |
| DESKTOP_TOUCH_DOCK_MONITOR | No | Monitor ID from get_screen_info; default is primary monitor Default: primary |
| DESKTOP_TOUCH_DOCK_SCALE_DPI | No | If 'true', multiply pixel values by dpi/96 for per-monitor scaling Default: false |
| DESKTOP_TOUCH_DOCK_TIMEOUT_MS | No | Maximum wait time in milliseconds for the target window to appear Default: 5000 |