AI assistants (MCP)
dkit mcp lets an AI assistant use Deskit for you. You say “my disk is full, what can go?” and the assistant looks, shows you what it found, and removes it once you agree.
It works with any assistant that supports the Model Context Protocol, such as Claude Code and Claude Desktop.
Set it up
The assistant starts Deskit itself; you only tell it the command. You never run dkit mcp by hand, which is why dkit --help does not list it among the commands.
dkit has to be installed and on your PATH first. Everything below sets an assistant up to use it; none of it installs it.
As a plugin
A plugin sets up the server and adds a skill that teaches the assistant how to use Deskit.
Claude Code:
claude plugin install deskit --marketplace deskitdev/deskit
Or inside a session: /plugin marketplace add deskitdev/deskit, then /plugin install deskit@deskit.
Codex:
codex plugin marketplace add deskitdev/deskit
codex plugin add deskit@deskit
Gemini CLI (written to its documented format, not yet tried in Gemini itself):
gemini extensions install https://github.com/deskitdev/deskit
The server alone
claude mcp add deskit -- dkit mcp # Claude Code
codex mcp add deskit -- dkit mcp # Codex
Claude Desktop and other clients that use a JSON settings file:
{
"mcpServers": {
"deskit": { "command": "dkit", "args": ["mcp"] }
}
}
If dkit is not on your PATH, give its full path instead, for example /Users/sam/code/deskit/target/release/dkit.
Nothing is sent anywhere by Deskit. The server runs on your machine and talks only to the assistant that started it. What the assistant reads (folder names, sizes, process names) becomes part of your conversation with it.
Keeping it up to date
There are two parts, and they are updated separately.
| Part | How | When |
|---|---|---|
dkit itself: the tools an assistant calls |
brew upgrade deskitdev/tap/deskit for a copy from Homebrew, or dkit update for one the install script put in place |
Every release |
| The plugin: the server command and the skill text | The two lines below | Only when a release changed the skill or the plugin’s files |
The assistant starts whichever dkit is on your PATH, so once dkit is updated a new session uses the new one. If you added the server alone, without a plugin, that is all there is to do.
Claude Code plugin:
claude plugin marketplace update deskit
claude plugin update deskit@deskit
Restart Claude Code afterwards; the update applies from the next start.
Deskit does none of this by itself, and an assistant cannot do it for you: see what an assistant cannot do.
What an assistant can do
| Tool | What it does | Changes files |
|---|---|---|
status |
CPU, memory, disks and their activity, network, battery, temperatures, busiest processes | No |
doctor |
A few checks worth knowing about; reports only, fixes nothing | No |
analyze |
What is using space in a folder, and which entries clean or purge covers | No |
rules |
What Deskit can remove, and what each costs | No |
clean_preview |
What a clean would remove | No |
clean |
Carries out a clean that was previewed | Yes |
purge_preview |
Build folders in old projects, in the folders it names or the ones you saved | No |
purge |
Carries out a purge that was previewed | Yes |
installers_preview |
Installer files in Downloads and Desktop you have finished with | No |
installers |
Removes the installers that were previewed; all are held | Yes |
apps |
Installed apps, and which can be removed (macOS) | No |
uninstall_preview |
What removing one app would take | No |
uninstall |
Carries out an uninstall that was previewed | Yes |
undo |
Puts held items back, all or chosen ones | Yes |
history |
Past runs, and what became of each item | No |
keep_list |
Your keep list | No |
keep_add |
Adds a folder or file to your keep list | Yes, the list only |
What an assistant cannot do
These limits are in the program, not in instructions the assistant could ignore:
- It cannot remove anything it has not previewed.
clean,purge,installersanduninstalldo not take a description of what to remove. They take a token that a preview returned, and remove exactly what that preview listed. A token works once and expires after ten minutes. - It cannot make a removal final. There is no release tool. Anything that costs something to get back is held for 7 days, and only you can end that early, by running
dkit releasein your own terminal. - It cannot skip the hold. The options
--releaseand--holdhave no counterpart here. As in a normal clean, only files that rebuild themselves are freed at once. - It cannot shorten your keep list. It can add to it; removing an entry is
dkit keep remove, by you. - It cannot change where purge looks. When it names no folder,
purge_previewlooks in the folders you saved withdkit purge folders. It can read that list this way, but there is no tool to add to it or take from it. - It cannot reach into a folder a cloud service keeps in sync.
purge_previewdoes not look inside one and refuses one named as the place to look;installers_previewdoes not look in a synced Desktop or Downloads. Both say so, with the service, underleft_alone. There is no argument that changes this. - It cannot update or remove Deskit. There is no tool for
dkit updateordkit remove. The server never uses the network. - It cannot reach beyond what
dkitcan. The same limits apply as on the command line: see what can never be cleaned, what purge never does, what installers never does and what uninstall never does.
Your assistant will also ask before it calls a tool, depending on how you have set it up. That is a second check, on top of these.
What a session looks like
- The assistant calls
clean_preview,purge_preview,installers_previeworuninstall_previewand shows you the total, the largest groups, and what each costs to get back. - You say what you want. To leave something out, the assistant previews again without it, or adds it to your keep list.
- Once you agree, it calls
clean,purge,installersoruninstallwith the token from the preview you saw. - It reports what was freed and what is held. If you change your mind, it calls
undo, for everything or for one project.
Everything an assistant does appears in dkit history, the same as what you do yourself.
Differences from the command line
- A clean preview only measures the rules that are part of the plan. Rules that are off by default are named, with their cost, but not sized, so the preview takes seconds instead of minutes. Ask the assistant to include a rule to see its size.
- Runs whose 7 days have passed are not released when an assistant cleans. That happens the next time you run
dkit cleanordkit purgeyourself. - Paths must be full paths or start with
~/. purge_previewwithout a folder uses your saved folders, asdkit purgedoes, but never the folder the server was started in: with nothing saved it asks for a folder instead. Its result says which it used.- On macOS, the first time an assistant’s program reads Downloads or Desktop for
installers_preview, the system may ask you whether to allow it. uninstall_previewtakes one app. To remove several, the assistant previews and removes each in turn, which makes one run per app;dkit uninstall <app> <app>in a terminal makes one run for all of them.- An entry that
analyzemarks withcovered_byis one a cleanup rule or a purge kind covers. That is where to look next, not a list of what would go: the assistant follows it withclean_previeworpurge_previewand goes by that. - In
status, a reading the system does not give (battery,disk_io, a disk’sio) isnull, andtemperaturesis empty. That means “not reported”, not zero.
Assistants without MCP
An agent that can run shell commands but cannot use MCP can drive dkit directly, guided by the agent skill. The limits above then depend on the agent following instructions, so use the server where you can.
Known limits
- Only the standard input and output transport is supported: the assistant must be able to start a program on your machine. Remote and browser-only assistants cannot connect.
- Tested with a scripted client only so far, not yet inside a real assistant.
From docs/mcp.md at v0.1.0-alpha.2.