deskcommand
v0.1.0Run terminal processes, edit files and search code on the local machine from an MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_directory
Create a new directory or ensure a directory exists, including nested paths
| Parameter | Type | Description |
|---|---|---|
path * | string | The directory path to create or ensure exists |
edit_block
Apply a surgical text replacement in a file: replace old_string with new_string
| Parameter | Type | Description |
|---|---|---|
file_path * | string | The path of the file to edit |
new_string * | string | The text to replace old_string with |
old_string * | string | The exact text in the file to replace |
expected_replacements | number | Optional expected number of replacements; the edit fails if the actual count differs |
force_terminate
Force terminate a running terminal process session
| Parameter | Type | Description |
|---|---|---|
pid * | number | The PID of the terminal process session to force terminate |
get_config
Get the current server configuration
get_file_info
Retrieve detailed metadata about a file or directory
| Parameter | Type | Description |
|---|---|---|
path * | string | The path of the file or directory to describe |
get_more_search_results
Get more results from an active search session
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The search session id returned by start_search |
length | number | Optional number of results to return |
offset | number | Optional result offset to page from |
get_prompts
Get available prompts, or one prompt by id
| Parameter | Type | Description |
|---|---|---|
promptId | string | Optional prompt id to fetch a single prompt; all available prompts are returned when omitted |
get_recent_tool_calls
Get the recent tool calls recorded by this server
get_usage_stats
Get usage statistics for this server
give_feedback_to_desktop_commander
Record feedback about this tool for later review
| Parameter | Type | Description |
|---|---|---|
message * | string | The feedback message to record |
interact_with_process
Send input to a running process and wait for its response
| Parameter | Type | Description |
|---|---|---|
input * | string | The input text to send to the process |
pid * | number | The PID of the running process to interact with |
timeout_ms | number | Optional milliseconds to wait for the process response |
kill_process
Terminate a process by its PID
| Parameter | Type | Description |
|---|---|---|
pid * | number | The PID of the process to terminate |
list_directory
Get a detailed listing of all files and directories at a path
| Parameter | Type | Description |
|---|---|---|
path * | string | The directory path to list |
list_processes
List all running processes with their PID, command and status
list_searches
List all active search sessions
list_sessions
List all active terminal sessions
move_file
Move or rename a file or directory
| Parameter | Type | Description |
|---|---|---|
destination * | string | The new path for the file or directory |
source * | string | The current path of the file or directory to move |
read_file
Read the complete contents of a file, optionally a line range
| Parameter | Type | Description |
|---|---|---|
path * | string | The path of the file to read |
length | number | Optional number of lines to read |
offset | number | Optional starting line offset to read from |
read_multiple_files
Read the contents of multiple files simultaneously
| Parameter | Type | Description |
|---|---|---|
paths * | array | The paths of the files to read |
read_process_output
Read output from a running process, waiting up to a timeout for new output
| Parameter | Type | Description |
|---|---|---|
pid * | number | The PID of the process whose output to read |
timeout_ms | number | Optional milliseconds to wait for new output |
set_config_value
Set a configuration value by key
| Parameter | Type | Description |
|---|---|---|
key * | string | The configuration key to set |
value * | string | The value to set for the configuration key |
start_process
Start a new terminal process in a shell and return its initial output
| Parameter | Type | Description |
|---|---|---|
command * | string | The command line to start in the shell |
shell | string | Optional shell to run the command with |
timeout_ms | number | Optional milliseconds to wait for the process's initial output |
start_search
Start a search for a pattern in files under a path and return a session id
| Parameter | Type | Description |
|---|---|---|
path * | string | The directory path to search under |
pattern * | string | The pattern to search for |
filePattern | string | Optional glob pattern limiting which files are searched |
ignoreCase | boolean | Whether the search ignores case |
maxResults | number | Optional maximum number of results to return |
searchType | string | Optional search type: 'files' searches file names, 'literal' matches the pattern literally, otherwise the pattern is treated as a regular expression over file contents |
stop_search
Stop an active search by its session id
| Parameter | Type | Description |
|---|---|---|
searchId * | string | The search session id returned by start_search |
write_file
Create a new file or completely overwrite an existing file with new content
| Parameter | Type | Description |
|---|---|---|
content * | string | The full content to write to the file |
path * | string | The path of the file to create or overwrite |
write_pdf
Write text content to a file at a path (PDF-oriented in the original; this rebuild writes the content as given)
| Parameter | Type | Description |
|---|---|---|
content * | string | The content to write to the file |
path * | string | The path of the file to write |