Repository navigation
Releases
v0.19.0 — pixel-click names, numbered screenshots, background capture
Fewer turns per desktop task: the agent learns what a pixel click hit, sees windows without bringing them forward, and clicks by number instead of by pixel.
New
- Pixel clicks name their element.
mousenow replieson [12] button "Send"with an id the next call can use, and after clicking something clickable on a web page it waits for the page to change (Linux). No name is given when it is unsure (the point is covered, a popup is open). On Windows the click is named by the control, not the text inside it. - Numbered screenshots.
screenshot marks=truedraws the ids of visible controls on the image and lists them, so the next call isact id=12instead of a pixel click. - Background screenshots on KDE.
screenshot window=Xcaptures X where it is, without bringing it to the front or taking the focus from you. wait_idleon pages that never stop changing (clocks, video, live counters) settles on the page's own content instead of timing out.- Smaller browser trees. Firefox's tab strip and tool bars become one line in
treeandobserve=tree(about 30–36% smaller). - Screenshots are capped at Claude's image limits;
screenshot id=Ncrops to one element. - Kept reads survive mouse movement (needs readable
/dev/input).
Fixed
- An element in a window that is no "frame" (a plain Qt widget window) finds its window: with two such windows a click was refused as "not active".
- Firefox on a scaled screen (125%) answered the pixel hit-test at the wrong point.
Tested live on KDE (Firefox, Dolphin, Konsole) and in a Windows 11 VM (Calculator, Edge, Notepad); the headless KDE CI job checks the hit-test and marks.
Update
- Claude Code plugin:
/plugin marketplace update, or/plugin marketplace add ahmetadakli/kde-desktop-mcp. - Linux, install script:
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - Windows: download
desktop-mcp-v0.19.0-x86_64-windows.zipbelow and replacedesktop-mcp.exe. - From source:
git pullandcargo build --release.
v0.18.0 — Claude Code plugin, terminal tabs, headless KDE CI
Install as a Claude Code plugin, reach terminal tabs by what runs in them, and a release checked by a real KDE session in CI.
New
- Claude Code plugin.
/plugin marketplace add ahmetadakli/kde-desktop-mcp, then installdesktop-mcp(Linux) ordesktop-mcp-windows. The launcher uses an installeddesktop-mcp, else downloads this release and runs it only after checking it againstSHA256SUMS. (The Windows launcher is not tested on Windows yet.) - Terminal tabs by command or directory.
activate_window terminal="pytest"brings Konsole to the tab running it, and input tools takewindow: "terminal:<what>". The agent's own tab is never chosen for input. tree to_file=truewrites a large tree, with the same ids, to a private file and replies with its path and first lines.- Private screenshots. Saved screenshots go to a private directory (
$XDG_RUNTIME_DIR/desktop-mcp, files 0600);save_tocopies one to a path you choose without replacing anything. doctorends with a one-line JSON summary (blockers, failed checks, next step), also sent as structured content.
Checks
- Every pull request now runs the server against a headless KWin with a real AT-SPI bus and a Qt test app (apps, tree, find, set_text, get_text, act, focus, type_text, allowlist).
cargo auditruns on every pull request and weekly; rustix was updated to 1.1.6 (RUSTSEC-2026-0486).- Tests check every tool's schema and annotations; closed sets of values are enums.
Update
- Claude Code plugin:
/plugin marketplace add ahmetadakli/kde-desktop-mcp. - Linux, install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - Windows: download
desktop-mcp-v0.18.0-x86_64-windows.zipbelow and replacedesktop-mcp.exe. - From source:
git pullandcargo build --release.
Then reconnect the server (/mcp). Details: #63.
v0.17.1 — self-client guard, fewer wasted turns
Safety and fewer wasted turns, from a study of 1,685 real tool calls and a live test on KDE.
Safety
- Input never goes to the agent's own terminal tab or client window. In a real session an agent typed a
sudo parted ... mklabel gptcommand into the Konsole tab running Claude Code itself. Input tools now refuse (nothing sent) when the window in front, the target or a menu entry belongs to the client running the server. Konsole's tab in front is read over D-Bus; other tabs and windows stay usable. When the server runs under Claude Code's background daemon, every tab running a Claude Code client is refused.doctornames the client;self-client: allowin the allowlist turns it off. - Screenshots check the window they capture. The check and the capture used different sources, and a fallback captured whatever was in front. Both now use the same window, and failures say why (grim missing, ScreenShot2 error, ...).
Fewer wasted turns
- A screenshot of a window already in front is never paused for user activity; an "unknown" app in front is named by caption and class.
- In a browser, a page element wins a tie with the browser's tabs and toolbars ("picked over N browser-chrome matches").
clickworks inside a web page's modal dialog; a refusal for a background window names that window; a stale id lists the current elements of that name.set_text: finds a field by its label, placeholder or description; a query naming a<label>fills the field it labels; a mask or formatting is a warning with the final value; it says why it could not type and that nothing changed; a late focus no longer fails it.wait_fortimeouts name the window and offer the closest elements, or say to usepausefor a fixed wait.launchof a running Firefox with a URL reports the window the page opened in at once.- The effect line waits for a page only after input that may load one.
Update
- Linux, installed with the install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - Windows: download
desktop-mcp-v0.17.1-x86_64-windows.zipbelow and replacedesktop-mcp.exe(the Windows parts of this release are built and linted but not yet tested on Windows). - From source:
git pullandcargo build --release.
Then reconnect the server (/mcp in Claude Code). Details: #60, #61.
v0.17.0 — Windows parity
The Windows release: the Windows build now does nearly everything the Linux one does. Every change was tested on Windows 11 (25H2) with Notepad, Calculator, File Explorer and Edge.
Fixed on Windows
type_textno longer garbles text. It sent the whole text as one burst of key events, and Windows 11 Notepad turned "satır" into "rrrrr" and dropped Enter. Text is now pasted through the clipboard, and whatever the clipboard held (text, images, files, rich formats) is put back afterwards. Text the target did not read in time is taken back, so a typed password never stays on the clipboard.actnotices changes in apps such as Calculator ("no visible change" before).- Edge:
scroll_to, page titles, page loading and picking an entry of a<select>work.
New on Windows
clipboard_get,clipboard_setwindows,move_window,close_window(says when a "save changes?" dialog appeared)launch, including Store apps such ascalculatorappmenuin Windows 11 menu bars (Notepad's "File > Save As", nested submenus);actlists the menu it openedfile_dialogwith the standard Open / Save As dialog- Store apps are listed under their own name (
calculatorapp) instead ofapplicationframehost. Anapplicationframehostline in the allowlist still works, but no longer overrides a Store app's own line.
All platforms
- Tools a platform does not support say "nothing sent", so the model does not stop to check.
Update
- Linux, installed with the install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - Windows: download
desktop-mcp-v0.17.0-x86_64-windows.zipbelow and replacedesktop-mcp.exe. - From source:
git pullandcargo build --releasein your clone.
Then reconnect the server in your client (/mcp in Claude Code). Details: #58.
v0.16.3 — window best match, type_text Enter
A small release: three changes that each save the model a turn.
Changes
window(on input tools andactivate_window) picks the best matching window, not the first: a window titled exactly like the query, then one whose app is it, then partial matches.window: "Claude"no longer brings a terminal titled~ : claudeforward instead of Claude Desktop. KDE and Hyprland.type_textpresses Enter for a trailing newline, so"https://example.com\n"opens the address and"query\n"submits a search box. Newlines inside the text stay text.acton a web page that changed nothing now says a browser may need a real click: file pickers (e.g. an import's "choose file") and some popups open only for one.
Update
- Installed with the install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - From source:
git pullandcargo build --releasein your clone.
Then reconnect the server in Claude Code (/mcp). Details: #56.
v0.16.2
A small fix release.
Fixes
file_dialogtypes the file name into portal file dialogs again (the "Open"/"Save" windows Firefox, Chrome and other sandboxed or GTK apps show through xdg-desktop-portal on KDE). Since 0.14 it refused them, because the portal window belongs to a different process than the app that asked for it.
Update
- Installed with the install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - From source:
git pullandcargo build --releasein your clone.
Then reconnect the server in Claude Code (/mcp). Details: #55.
v0.16.1 — find by role, Dolphin submenus
A small fix release.
Fixes
findtakesrolealone (noquery) and lists the elements of that role.menu: submenus that apps fill only when shown on screen now open. Dolphin's "File > Create New" stayed empty before; it now lists its entries, andFile > Create New > Folderopens the dialog. (On Wayland a popup shows only after recent input, somenutaps shift — it types nothing — and opens the parent menus first, only while the app's window is in front.)
Update
- Installed with the install script: run it again —
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bash - From source:
git pullandcargo build --releasein your clone.
Then reconnect the server in Claude Code (/mcp). Details: #52.
v0.16.0 — prebuilt binaries and one-command install
Install and update without Rust. From this release on, every release comes with prebuilt binaries.
Install or update
Linux (x86_64), one command, run it again to update:
curl -fsSL https://raw.githubusercontent.com/ahmetadakli/kde-desktop-mcp/main/tools/install.sh | bashIt downloads the binary below, checks it against SHA256SUMS, installs ~/.local/bin/desktop-mcp and adds the desktop server to Claude Code if you have none. Then reconnect the server (/mcp) or restart Claude Code. The system packages listed in the README (AT-SPI etc.) are still needed.
Or by hand: download desktop-mcp-v0.16.0-x86_64-linux.tar.gz, unpack it, and point Claude Code at the binary:
claude mcp add --scope user desktop -- /path/to/desktop-mcp
Windows: desktop-mcp-v0.16.0-x86_64-windows.zip. It is cross-compiled and has not been run on real Windows yet; reports are welcome.
Built from source before? git pull and cargo build --release in your clone still work (README, "Updating").
What's new
- Prebuilt Linux and Windows binaries on each release, with
SHA256SUMS. tools/install.shfor one-command install and update.desktop-mcp --version, anddoctornow says when a newer release is out (DESKTOP_MCP_NO_UPDATE_CHECK=1turns that off).- AUR recipes for
kde-desktop-mcpandkde-desktop-mcp-bininpackaging/aur(not on the AUR yet).
Everything from 0.15.0 (fewer turns per task, Hyprland tested end to end) is included; see the v0.15.0 notes. Details: #50.
v0.15.0 — fewer turns, Hyprland tested
First tagged release. It sums up the work of 0.13 – 0.15: desktop tasks now take far fewer model turns, and Hyprland is tested end to end.
Highlights
Fewer turns per task (end-to-end benchmark: real Kate, Dolphin and Firefox tasks run by claude -p, 3 models)
- vs 0.13.0: 31/36 → 36/36 tasks done, −34% turns, −29% wall time. Kate "Save As": 11.5 → 3 turns with Opus.
- Conditional
batch(if,on_fail,repeat,stop_if): a small procedure in one call. - Replies say what happened, so the agent needs no extra look: failures end with the active window and focus; menus, lists and dialogs an input opened come with their entries' ids (
opened: …);page changed to '…'after a link; a window that came to the front is noted. actverbs:check/uncheck/toggle/expand/collapse(idempotent, verified),optionto pick a combo box/list entry,scroll_to.- Waits: after a press or Enter on a web page the reply waits for the page to change;
wait_idlewaits for pages to load; brief user typing is waited out instead of refused. - Every input reply says whether a retry is safe:
nothing sentormaybe sent: look before retrying. - Ambiguous targets are refused with the candidates' ids instead of acting on the first one.
- Role synonyms (
row,button,textbox, …), reliablefindon web pages (Turkish İ, no-break spaces, off-screen and closest matches). - Smaller replies (JPEG screenshots, compact trees), the ten common tools load up front in Claude Code, tree reads reused while an app is unchanged.
Hyprland
- Hyprland 0.57+ (Lua-only command socket) supported; window control over IPC;
hyprctl-placed clicks and drags;file_dialog(an app's own KDE file dialog) works. - Tested in Hyprland 0.57.2 with real keyboard and mouse input: 36/36 benchmark tasks passed.
- Not yet: browser portal (upload/download) dialogs on Hyprland.
Fixes: the server exits at once on SIGTERM; Kate/Qt 6 file dialogs; typing into editable combo boxes; English menu paths in a localized UI (File > Save As).
Updating
Claude Code runs the binary you built, so reconnecting alone does not update it. In your clone:
cd kde-desktop-mcp
git pull
cd rust
cargo build --releaseThen reconnect in Claude Code (/mcp → desktop → reconnect) or restart it. No need to clone again or re-run claude mcp add.