KDE Plasma
v0.22.0Safely control KDE Plasma 6 desktops from MCP agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
undo_last
Restore the config files from the most recent snapshot.
media_status
List MPRIS media players with playback status and current track.
media_play_pause
Toggle play/pause on a player (name as returned by media_status).
| Parameter | Type | Description |
|---|---|---|
player * | string |
notify
Show a desktop notification; returns its id. urgency: low | normal | critical (only critical pops up while Do Not Disturb is on — use it sparingly).
| Parameter | Type | Description |
|---|---|---|
summary * | string | |
body | string | |
icon | string | |
timeout_ms | integer | |
urgency | string |
close_notification
Close a notification previously returned by notify.
| Parameter | Type | Description |
|---|---|---|
notification_id * | integer |
notification_status
Notification server info and whether Do Not Disturb is on.
watch_notifications
Collect notifications sent by ANY app for up to `seconds` (max 120). Reads private content (chat messages etc.), so it needs the 'private' tier in ~/.config/plasma-mcp.toml.
| Parameter | Type | Description |
|---|---|---|
app_filter | ||
max_count | integer | |
seconds | number |
power_status
AC vs battery, the lid, laptop batteries and wireless peripherals (mouse, keyboard, headset: percentage, state, warning, minutes to empty/full) and the power profile.
set_power_profile
Switch the power profile (usually power-saver / balanced / performance; see power_status). dry_run=True by default. Not a config file, so not in undo_last: the response names the previous profile to set back.
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
dry_run | boolean |
subscribe_events
Start buffering desktop events in the background, then read them with poll_events. Kinds: windows (window_opened / window_closed / window_focused), desktops (desktop_switched / added / removed / renamed), media (playback / track / player_opened / player_closed), config (config_changed: KConfig file + group/key names, e.g. the user changed a setting or theme), screen (screen_locked / screen_unlocked), notifications (other apps' notifications; needs the 'private' tier), clipboard (clipboard_changed with the new text; needs the 'private' tier), power (on_battery / on_ac, battery_level every 5%, b…
| Parameter | Type | Description |
|---|---|---|
kinds * | array |
poll_events
Get buffered events with seq > cursor (oldest first) plus the next `cursor` to pass back. wait_seconds (max 120) long-polls: return as soon as an event arrives, or empty after the wait. `kinds` filters (events of other kinds are skipped, not kept). `missed` > 0 means events fell out of the 1000-event buffer between polls.
| Parameter | Type | Description |
|---|---|---|
cursor | integer | |
kinds | ||
max_count | integer | |
wait_seconds | number |
unsubscribe_events
Stop listening for the given event kinds (all when omitted).
| Parameter | Type | Description |
|---|---|---|
kinds |
list_apps
Installed applications (desktop entries shown in the app menu): id, name, generic name, comment, categories. `query` filters by words in any of those (e.g. "text editor").
| Parameter | Type | Description |
|---|---|---|
query |
launch_app
Start an installed application by its desktop id from list_apps (e.g. "org.kde.kate.desktop"; the .desktop suffix is optional). Only installed apps can be launched, never arbitrary commands. Not undoable: close it with close_window. On KDE and GNOME waits up to 5 s and returns the app's new windows (ids for the window tools). dry_run (default) only shows what would be launched.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | |
dry_run | boolean |
screenshot
Take a screenshot through xdg-desktop-portal and return it as an image (scaled so the longest edge is at most max_size; the full-resolution file path is in the result). interactive=true opens the portal's dialog so the user picks and approves each shot (read tier). interactive=false captures the whole desktop without a dialog once the user has granted the portal permission; it needs the 'private' tier. window_id (KDE, GNOME; with interactive=false) crops to that window, which should be active so nothing covers it.
| Parameter | Type | Description |
|---|---|---|
format | string | |
interactive | boolean | |
max_size | integer | |
window_id |
accessibility_status
Whether accessibility is on (Qt/KDE apps only expose their UI while it is) and which apps are on the accessibility bus.
set_accessibility
Turn the desktop's accessibility support on or off (org.a11y.Status IsEnabled), which accessibility_tree needs for Qt/KDE apps. Undoable with undo_last. dry_run (default) only shows the current state.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
dry_run | boolean |
list_audio
Audio outputs (speakers, headphones, HDMI) and inputs (microphones) with volume (%), mute and which is the default, plus the apps currently playing or recording.
set_volume
Set volume (0-100 %) and/or mute for a device ("default-output", "default-input", a device name, or part of its description from list_audio) or for an app's playing stream (`stream`: its id or app name, e.g. "Firefox"). Undoable. dry_run (default) only shows the current level.
| Parameter | Type | Description |
|---|---|---|
device | ||
dry_run | boolean | |
muted | ||
stream | ||
volume |
set_default_audio
Make a device (name or part of its description) the default output or input. Apps following the default move to it. Undoable. dry_run (default) only shows the change.
| Parameter | Type | Description |
|---|---|---|
device * | string | |
dry_run | boolean |