Feature: opt-in desktop control (screenshots + mouse/keyboard) for native installs
Prerequisites
- I searched open issues and this has not already been proposed.
- I searched discussions and this is not already being debated there.
- This is a concrete, actionable proposal — not a vague "it would be nice if..." request.
Area
MCP
Problem or Motivation
The agent can drive a headless Playwright browser, but it cannot see or operate the user's actual desktop. Tasks in native apps (settings dialogs, desktop programs, anything outside a web page) and "what's on my screen?" questions are impossible today, even though Odysseus is self-hosted on the user's own machine.
A related gap: MCP image content (for example Playwright screenshots) only reaches the UI. It is never shown to the model. The base64 data also gets serialized into the tool-result text as up to 8 KB of unreadable characters.
Proposed Solution
Add an opt-in built-in MCP server, builtin_desktop, for native installs, enabled with ODYSSEUS_DESKTOP_CONTROL=1 and off by default:
- Tools:
desktop_screenshot,desktop_click(button, clicks, modifiers),desktop_move_mouse,desktop_drag,desktop_scroll,desktop_type,desktop_key,desktop_cursor_position,desktop_wait. Backend:mss+pyautogui(optional deps). - Screenshots are downscaled (longest side 1366 px by default), and the coordinates the model sends are mapped back to real screen pixels. Every action returns a fresh screenshot.
- The newest desktop screenshot is fed to the model as an untrusted image message so vision models can actually see the screen. Older ones are replaced with a placeholder to bound context.
- Safety: admin-only, like every
mcp__tool. Screenshots arm the untrusted-context gate, and input actions are declared as UI and external side effects, so each one needs exact user approval (or "allow remaining") once the screen has been seen. The pyautogui corner failsafe is on. The server is excluded from builtin auto-reconnect so an input action is never silently replayed. - Chat routing: screen/desktop phrasing escalates to agent mode and forces the desktop tools.
- Stop dumping base64
imagesinto tool-result text.
Alternatives Considered
- Asking users to add a third-party computer-use MCP server by hand. That route gets no approval-gate capability metadata and no image feedback into the model, so it can't really see the screen.
- Letting the desktop server auto-reconnect like other builtins. Rejected, because a reconnect retries the call and could replay a click.
Prior Art / Related Issues
Anthropic's computer-use tool and Claude Code's desktop control follow the same screenshot → act → screenshot loop. Odysseus's existing builtin_browser (Playwright MCP) integration was the model for the wiring here.
Are you willing to implement this?
Yes — I can open a PR
Source: odysseus-dev/odysseus