Skip to main content
Glama

Kilnshell exposes 26 tools over MCP (stdio): run commands and long-running processes, read, write and edit files, search with ripgrep, and read or write PDF, Excel and Word files. It is the code of Desktop Commander 0.3.1 with three kinds of changes: it no longer sends usage data or adds promotional text to tool results, each tool call does less work, and four additions cut the number of round trips an agent needs (batch, wait_for, and two wait options).

In the author's benchmark on one Mac, tool calls took 11 to 122 times less time than with Desktop Commander 0.3.1. The table, the method, its limits and the command to run it yourself are in Benchmark.

Is it for you?

  • Yes, if your MCP client has no terminal or file tools of its own, for example the Claude desktop app, and you want an agent to run commands and edit files on your computer.

  • Yes, if you already use Desktop Commander and want the same tools, arguments and config file without the usage data sent by its server.

  • Probably not, if your agent already has a terminal and file tools built in, such as Claude Code, Cursor's agent or Codex CLI. Kilnshell would add a second set of tools that do the same job.

  • Not if you want an agent limited to a few folders. Kilnshell includes a shell, so its folder restriction is not a boundary (what the guardrails do, and do not do). A server without command execution, such as the reference @modelcontextprotocol/server-filesystem, fits that need better.

  • Where it runs. On your computer, with Node.js 22.12 or later. CI builds it and runs the benchmark on macOS and Ubuntu. The Windows code paths come from Desktop Commander and are not tested by this project.

Related MCP server: lnwjud

Before you install

  • This gives an agent your user account's power. Any agent connected to Kilnshell can run any command and read, change or delete any file that you can. Kilnshell asks for no confirmation itself: whether you see a call before it runs depends on your MCP client's approval settings.

  • It is not a sandbox. The allowed folders and the blocked commands reduce accidents. They do not stop an agent that has been misled, for example by instructions hidden in a file or a web page it read. To contain an agent, run Kilnshell in a container, a virtual machine or a separate user account. Details in what the guardrails do, and do not do and in SECURITY.md.

  • License and origin. MIT. Kilnshell is a fork of Desktop Commander by Eduard Ruzga and the Desktop Commander contributors, also MIT. It is an independent project, not affiliated with or endorsed by them (Credits and license).

  • It updates itself. Every 6 hours the launcher asks npm for a newer kilnshell, installs it with npm install and switches to it, without asking. You can turn this off (Automatic updates).

  • Versions up to 1.0.5 sent usage data from two scripts. The server never did, but in 1.0.5 and earlier kilnshell-setup (kilnshell setup) and kilnshell-remove (kilnshell remove) posted events to Desktop Commander's telemetry server. That code is removed in 1.0.6: it and later versions send nothing. No install method below uses those two scripts (Your data).

  • It shares its config folder with Desktop Commander. Both use ~/.claude-server-commander. If you run both, they read and write the same settings and logs.

  • One maintainer, a young project, no outside audit. The first release is dated 2026-10-26. No security audit by a third party has been published, and the benchmark has not been reproduced by anyone else.

Install

Claude desktop app

Download kilnshell.mcpb and double-click it (or Settings > Extensions > Advanced settings > Install Extension).

Claude Code

/plugin install kilnshell --marketplace Soflutionltd/kilnshell

This needs Claude Code 2.1.275 or later. The plugin starts npx -y kilnshell@latest. Claude Code already has its own shell and file tools (Is it for you?).

Cursor or any MCP client

{
  "mcpServers": {
    "kilnshell": {
      "command": "npx",
      "args": ["-y", "kilnshell@latest"]
    }
  }
}

From a local clone

git clone https://github.com/Soflutionltd/kilnshell && cd kilnshell && npm install
{ "mcpServers": { "kilnshell": { "command": "node", "args": ["/absolute/path/to/kilnshell/bin/supervise.cjs"] } } }

npm install also builds the server. Started through bin/supervise.cjs, a clone still updates itself from npm. To run exactly the code you cloned, point the client at dist/index.js instead, or set SOFLUTION_AUTO_UPDATE=0.

Kilnshell is also listed in the official MCP Registry as com.soflution/kilnshell. That entry points to the .mcpb file of each GitHub release.

Automatic updates

Every install above goes through a small launcher, bin/supervise.cjs. The MCP client talks to the launcher, and the server runs behind it as a child process.

  1. Ten seconds after it starts, then every 6 hours, the launcher sends one request to registry.npmjs.org for the latest version number of kilnshell. The request carries nothing about your machine or your use.

  2. If that version is newer, it runs npm install kilnshell@<version> in the background, into ~/.soflution/mcp/kilnshell/<version>. As with any npm install, the install scripts of the package and of its dependencies run, and npm checks each download against the checksum the registry publishes.

  3. Once no request is in flight, it starts the new version, replays the MCP handshake to it, and tells the client that the tool list may have changed. Claude or Cursor does not need a restart.

  4. A version that stops within 30 seconds of starting, or fails to start three times, is dropped and never picked again on that machine. The version you installed runs instead.

What this means: a new release published to npm under the kilnshell name runs on your machine within about 6 hours, without your review. Releases are published from GitHub Actions with npm provenance, so you can check on npmjs.com which commit a version was built from. The launcher itself does not check provenance or any signature.

Turn automatic updates off with SOFLUTION_AUTO_UPDATE=0 or NO_UPDATE_NOTIFIER=1 in the server's environment. They are also off when CI is set, and nothing is installed when npm cannot be found. With npx -y kilnshell@latest, npx may still fetch the latest version each time the client starts the server: pin a version (kilnshell@1.0.5) to prevent that.

A server started directly with node dist/index.js never installs anything. It sends one request to registry.npmjs.org three seconds after it starts and, if a newer version exists, adds one line saying so to its first tool result. NO_UPDATE_NOTIFIER=1 turns that off.

Your data

Kilnshell sends no usage data, from the server, the launcher or the setup and remove scripts. The code that sent Desktop Commander's telemetry is no longer in the package: no address of a measurement service is left in the published files, and a test (test/test-no-measurement-endpoints.js) fails if one comes back. The calls that used to record an event are still in the source and reach a function that does nothing. The telemetryEnabled setting has no effect in Kilnshell; Desktop Commander, which reads the same config file, still obeys it.

Versions up to 1.0.5 were different. Their server sent nothing either, but two scripts inherited from Desktop Commander still did:

  • kilnshell-setup (also kilnshell setup and npm run setup) sent events to telemetry.desktopcommander.app, a server run by the Desktop Commander project, with no way to turn it off. Each event carried a random identifier, your operating system, your Node and npm versions, your shell, the Kilnshell version and the step reached. Error events carried the error message. One event, sent when the Claude config folder had to be created, contained that folder's path, which includes your user name. The script also wrote "telemetryEnabled": true into a new Kilnshell config file.

  • kilnshell-remove (also kilnshell remove and npm run remove) sent the same kind of events when the config file contained "telemetryEnabled": true.

None of the install methods above runs these scripts. If you ran one of them with 1.0.5 or earlier, those events were sent.

What kilnshell-setup changes, in every version. It adds a kilnshell entry to the config of the Claude desktop app, removes a desktopCommander entry when there is one (and says so since 1.0.6), then quits the Claude app and reopens it (macOS; on Windows it quits it and asks you to reopen it). On Linux, versions up to 1.0.5 stopped every process whose command line contains "claude", Claude Code sessions included; since 1.0.6 only a process named claude-desktop is stopped.

Network calls the server makes on its own: the update check and the update install described in Automatic updates. Nothing else.

Network calls made because a tool was asked to:

  • read_file with isUrl: true fetches that URL;

  • wait_for with url or port connects to that address;

  • Installing the package downloads a browser: the puppeteer dependency (through md-to-pdf) fetches Chrome for Testing from Google's servers into ~/.cache/puppeteer when npm installs it, so at the first start and at each automatic update that changes it. PUPPETEER_SKIP_DOWNLOAD=1 in the environment of the MCP entry prevents it.

  • write_pdf needs Chrome. If no Chrome is found on the machine, the first write_pdf downloads Chrome (about 150 MB) from Google's servers through @puppeteer/browsers into ~/.claude-server-commander/puppeteer-cache;

  • commands that the agent runs can reach the network like any program you start in a terminal.

What is written on your disk:

Path

Content

~/.claude-server-commander/config.json

Settings, counters of tool calls (totals, per tool, first and last use), and a random client identifier when one has been created

~/.claude-server-commander/claude_tool_call.log

One line per tool call: time, tool name and the full arguments. This includes every command, and the content passed to write_file and edit_block. Renamed with a date when it reaches 10 MB; the renamed files are not deleted

~/.claude-server-commander/tool-history.jsonl

The last 1,000 tool calls with their arguments and up to 4 KB of each result. Read by get_recent_tool_calls

~/.claude-server-commander/puppeteer-cache/

Chrome, when it was downloaded for write_pdf

~/.claude-server-commander-logs/fuzzy-search.log

Details of edit_block calls whose search text was not found exactly, with the text searched and the closest text found

~/.soflution/mcp/kilnshell/

Updated versions, the update state and a lock file

These files are plain text and are not encrypted. Anything that can read your home folder can read them. A secret typed in a command or written to a file through Kilnshell ends up in the tool call log and the history.

What goes into the agent's context. Tool results contain the tool's output. Kilnshell adds text of its own in three cases: an error or usage hint from the tool, a warning when a call used a parameter the tool does not support, and the one-line update notice described above.

Uninstall

  1. Remove Kilnshell from your client:

    • Claude desktop app: Settings > Extensions, then remove Kilnshell;

    • Claude Code: /plugin uninstall kilnshell@soflution, then /plugin marketplace remove soflution;

    • Cursor and other clients: delete the kilnshell entry from the MCP settings file you edited.

  2. Delete what it stored:

    rm -rf ~/.soflution/mcp/kilnshell            # versions installed by the updater
    rm -rf ~/.claude-server-commander-logs       # edit_block logs
    rm -rf ~/.claude-server-commander            # settings, tool call logs, history, downloaded Chrome
    rm -rf ~/.cache/puppeteer                    # Chrome downloaded when the package was installed (shared with other tools that use puppeteer)

    Skip the last two lines if you also use Desktop Commander: it stores its settings and logs in the same folders.

  3. If you used npx, the downloaded package is in npm's cache (~/.npm/_npx). npm cache clean --force empties that cache, for every package. If you cloned the repository, delete the clone.

Kilnshell installs no background service and no login item. Once the client no longer starts it, nothing runs. Do not use kilnshell-remove to uninstall (Your data).

What the guardrails do, and do not do

All settings are in ~/.claude-server-commander/config.json (Configuration).

Guardrail

What it does

What it does not do

allowedDirectories

File tools (read_file, write_file, edit_block, list_directory, move_file, start_search and the others) refuse a path outside the listed folders, after resolving symbolic links

It does not apply to commands: start_process with cat, cp or rm reaches any file your account can. The default is an empty list, which means the whole file system

blockedCommands

start_process refuses a command line when one of its command names is blocked (sudo, dd, mkfs, shutdown and others by default), including after ;, &&, a pipe, and inside $(...)

It does not look inside a wrapper such as sh -c "...", a script or another interpreter. It does not check what is typed into a running process with interact_with_process, nor the code run with node:local

fileReadLineLimit

Sets how many lines read_file and the process output tools return by default (1,000)

It is a default size, not an access control

fileWriteLineLimit

Nothing: the value is stored, but write_file writes any number of lines

set_config_value

Changes the settings above

It is a tool, so the agent can call it: an agent can empty allowedDirectories or blockedCommands. Deny or review this tool in your MCP client if you rely on those settings

Kilnshell runs commands with your environment variables, as your login shell sets them. It has no confirmation step, no rate limit and no undo.

Known limits

  • The guardrails above are not a security boundary.

  • In 1.0.5 and earlier, kilnshell-setup and kilnshell-remove sent usage data to Desktop Commander's servers (Your data).

  • The code of Desktop Commander's remote mode is still in the package, with its @supabase/supabase-js dependency and the address of that project's cloud service. No Kilnshell command runs it.

  • Automatic updates install new code without review, and the launcher does not verify a signature (Automatic updates).

  • Tool call logs keep full arguments in plain text, and the renamed copies of claude_tool_call.log are never deleted.

  • The benchmark was run by the author on one Mac, against Desktop Commander 0.3.1 only. It has not been run against later Desktop Commander versions or against other servers, and nobody else has reproduced it.

  • The largest gain, on starting commands, comes from reading the shell profile once. That cache is not used on Windows, and the gain is small with an empty shell profile.

  • Because the login environment is read once at start-up, commands see a change to your shell profile only after the server restarts (or with DESKTOP_COMMANDER_LOGIN_ENV_CACHE=0).

  • Windows is not tested by this project.

  • The remote mode of Desktop Commander is not available.

  • Names inherited from Desktop Commander remain: the config folder, the DESKTOP_COMMANDER_LOGIN_ENV_CACHE variable, and some messages that still say "Desktop Commander".

Benchmark

Tool call

Desktop Commander 0.3.1

Kilnshell

Ratio

Run a command (echo hi)

696.7 ms

5.7 ms

122x

Run a command (git --version)

703.7 ms

16.2 ms

43x

Read 1,000 lines of a 20k-line file

41.9 ms

3.2 ms

13x

Edit one line (edit_block)

75.7 ms

6.9 ms

11x

Write a file

34.7 ms

1.0 ms

35x

File info

21.8 ms

1.2 ms

18x

List a directory

19.2 ms

1.4 ms

14x

Read 10 files at once

191.8 ms

3.5 ms

55x

What was measured. The time between sending a tool call and receiving its answer, over MCP stdio, for the same eight calls sent to both servers on the same machine and the same files. Each call ran 9 times per server and the table shows the median. Measured by the author on 2026-10-26, on an Apple Silicon Mac, macOS, zsh with a developer profile (Homebrew and nvm), Node 25.0.0, with telemetryEnabled set to false in both servers' config. The raw numbers are in bench/results.json and the script is bench/bench.mjs.

What it does not show. These are times per call for small operations, not the duration of a whole agent task, where the model's own time usually dominates. The two command rows depend on the shell profile: Desktop Commander 0.3.1 reads it for every command, Kilnshell once, so a heavy profile gives a large ratio and an empty one a small ratio. The comparison is with version 0.3.1 only.

Run it on your machine:

git clone https://github.com/Soflutionltd/kilnshell && cd kilnshell
npm install
npm run bench        # installs Desktop Commander 0.3.1 next to it, runs both, redraws the chart

What changed, and why it is faster

Kilnshell started as a copy of Desktop Commander 0.3.1, profiled call by call.

  1. The shell profile is read once, not on every command. Desktop Commander 0.3.1 starts every command as a login shell (zsh -l -c ...), so a profile that loads nvm, pyenv or Homebrew is paid on each command. Kilnshell runs the login profile once at start-up, keeps the environment it produces (same PATH, same variables) and starts each command with zsh -c. Set DESKTOP_COMMANDER_LOGIN_ENV_CACHE=0 to get a fresh login shell every time. Not used on Windows.

  2. System facts are computed once. In 0.3.1 the telemetry code asked for a system report on each tool call, and building it started child processes synchronously (to detect Python, for example), even with telemetry turned off.

  3. Line counting uses native string search instead of a character-by-character loop, for reading, editing and inspecting files.

  4. No debug output per call. 0.3.1 wrote several [FEEDBACK DEBUG] lines on each call, which reached the client as log notifications.

  5. Fewer round trips. For an agent, each tool call costs a full round trip to the model. Kilnshell adds:

    • batch: several tool calls (commands, reads, edits, searches) in one request, results numbered in order;

    • read_process_output with wait_for_exit: true: waits for the process to end and returns all its output at once, instead of polling;

    • start_search with wait: true: returns every result in one call, instead of start_search then get_more_search_results;

    • wait_for: waits until a port accepts connections, a file exists, a URL answers or a process exits, instead of sleep loops.

  6. The profile cache also works inside the Claude desktop app. Claude runs extensions in its own Node. The environment is captured with env -0, and Claude's ELECTRON_*, CHROME_* and NODE_OPTIONS variables are not passed on to your commands.

  7. Chrome is fetched on the first write_pdf, not at every start-up. KILNSHELL_PREFETCH_CHROME=1 fetches it at start-up instead.

What was removed from Desktop Commander

Desktop Commander 0.3.1 behaviour

Kilnshell

Usage telemetry sent by the server and by the setup and remove scripts

Removed. Nothing is sent. Up to 1.0.5 the two scripts still sent it (Your data)

Feature flags downloaded periodically from desktopcommander.app

No download by default. KILNSHELL_FLAG_URL (or DC_FLAG_URL) points to a flags file you host yourself. Without it, the flags Desktop Commander caches in the shared config folder are not read

[SYSTEM INSTRUCTION] text appended to tool results, asking the model to request feedback or promote a Docker setup

Never added: the Docker text is removed, the feedback request is switched off. Your data lists the text Kilnshell does add

Welcome page opened in the browser on first run

Removed

give_feedback_to_desktop_commander tool

Removed. Up to 1.0.5 it was hidden from the tool list but still answered when called by name

remote mode (relies on the Desktop Commander cloud service)

Not available: kilnshell remote prints a message and exits

Two of these are still in the source tree, unused: the code of the remote mode, which is why @supabase/supabase-js appears in the package's dependency list, and the logic that decided when to ask for feedback.

Everything else is the same code: the same tools, the same arguments, the same config file (~/.claude-server-commander/config.json). The new tools and options are additions only.

Tools

Area

Tools

Fewer round trips

batch (several calls in one), wait_for (port, file, URL, process)

Terminal

start_process, interact_with_process, read_process_output (wait_for_exit), list_sessions, list_processes, force_terminate, kill_process

Files

read_file, read_multiple_files, write_file, edit_block, create_directory, list_directory, move_file, get_file_info

Search

start_search (wait), get_more_search_results, stop_search, list_searches (ripgrep)

Documents

write_pdf, plus reading and editing PDF, Excel and Word files through read_file, write_file and edit_block

Config and history

get_config, set_config_value, get_usage_stats, get_recent_tool_calls

Configuration

Settings in ~/.claude-server-commander/config.json, also readable with get_config and writable with set_config_value:

Key

Default

Meaning

allowedDirectories

[] (whole file system)

Folders the file tools may use

blockedCommands

a list of system administration commands

Command names start_process refuses

defaultShell

your $SHELL (PowerShell on Windows)

Shell used to run commands

fileReadLineLimit

1000

Lines returned by a read when no length is given

fileWriteLineLimit

50

No effect

telemetryEnabled

not set

No effect in Kilnshell. Desktop Commander reads it in the same file (Your data)

Environment variables:

Variable

Effect

SOFLUTION_AUTO_UPDATE=0

No update check, no install, no switch

NO_UPDATE_NOTIFIER=1

Same, and no update notice from a server started directly

SOFLUTION_REGISTRY

Another registry URL for the launcher's version check

DESKTOP_COMMANDER_LOGIN_ENV_CACHE=0

A fresh login shell for every command

KILNSHELL_PREFETCH_CHROME=1

Fetch Chrome at start-up instead of on the first write_pdf

KILNSHELL_FLAG_URL

URL of a feature flags file you host

Develop

npm install
npm run build
npm test            # the Desktop Commander test suite, adapted (takes several minutes)
npm run bench       # Kilnshell vs Desktop Commander 0.3.1 on this machine

Changes by version are in CHANGELOG.md. To report a vulnerability, see SECURITY.md.

Credits and license

Kilnshell is built on Desktop Commander by Eduard Ruzga and the Desktop Commander contributors, released under the MIT license. Their full commit history is kept in this repository. Kilnshell is an independent project, not affiliated with or endorsed by them.

MIT. Copyright 2024-2025 Eduard Ruzga and Desktop Commander Contributors, copyright 2026 Soflution. See LICENSE.

Published by Soflution.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to securely access local development capabilities such as files, Git, processes, browser control, Windows automation, WSL, and observability through MCP on Windows and macOS.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Lets web-based AI clients such as Claude, ChatGPT, Grok, and Postman safely read, write, and run commands against local files and folders, and also drive browser automation, DevTools, Git, SQLite, background tasks, clipboard, notifications, ports, and localhost APIs. All 38 tools are exposed through one OAuth-gated MCP endpoint with a whitelist-only shell and governed folder access.
      MIT