feat: replace Python desktop sidecar with computer-use MCP#81
Merged
Conversation
The Python sidecar (mouse/keyboard/screenshot) was never shipped — its binary wasn't bundled, so all 16 desktop_* tools failed at runtime with "sidecar unreachable". Switching to @zavora-ai/computer-use-mcp: a TypeScript/Rust NAPI MCP server with prebuilt binaries via npm, no Python, no separate process to supervise. - Register `computer-use` in src/mcp/defaults.ts (opt-in, off by default) - Delete src/tools/core/desktop.ts (~520 lines, 16 tools) - Delete src/voice/SidecarSupervisor.ts (dead code, no importers) - Strip 18 desktop_* names from PermissionGuard restricted/standard - Tighten useCrew section in SOUL.md: hard rules on what goes in context vs references so the main agent stops summarizing files into context instead of passing pointers - Bump to 1.0.0-alpha.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
desktop_*tool failed at runtime with "sidecar unreachable".@zavora-ai/computer-use-mcp: TypeScript/Rust NAPI MCP server, prebuilt binaries via npm, no Python, no separate supervisor.useCrewsection inSOUL.mdso the main agent stops summarizing files intocontextinstead of passing pointers viareferences.1.0.0-alpha.6.Changes
computer-useinsrc/mcp/defaults.ts(opt-in,enabled: false).src/tools/core/desktop.ts— 16 tools, ~520 lines, all calling the missing sidecar.src/voice/SidecarSupervisor.ts— confirmed dead code (no importers anywhere insrc/).desktop_*tool names fromPermissionGuardrestricted + standard profiles. The new MCP tools reach the agent viause_mcp(already permitted).SOUL.mduseCrewblock: rules + field definitions, no examples or task-specific anchors.Net: −743 / +34 lines.
Test plan
npm run typecheckpasses (already verified clean locally)computer-useas a new opt-in entrycomputer-usefrom UI on macOS spawns the MCP vianpx -y @zavora-ai/computer-use-mcpand the agent can call its tools viause_mcp/api/voice/sidecar/*endpoints actually spawn the TS voice-worker)