deskcommand

v0.1.0
io.github.CloudCorpRecords/deskcommand Checked 1 day ago Published 1 month ago

Run 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

ParameterTypeDescription
path *stringThe directory path to create or ensure exists

edit_block

Apply a surgical text replacement in a file: replace old_string with new_string

ParameterTypeDescription
file_path *stringThe path of the file to edit
new_string *stringThe text to replace old_string with
old_string *stringThe exact text in the file to replace
expected_replacementsnumberOptional expected number of replacements; the edit fails if the actual count differs

force_terminate

Force terminate a running terminal process session

ParameterTypeDescription
pid *numberThe 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

ParameterTypeDescription
path *stringThe path of the file or directory to describe

get_more_search_results

Get more results from an active search session

ParameterTypeDescription
sessionId *stringThe search session id returned by start_search
lengthnumberOptional number of results to return
offsetnumberOptional result offset to page from

get_prompts

Get available prompts, or one prompt by id

ParameterTypeDescription
promptIdstringOptional 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

ParameterTypeDescription
message *stringThe feedback message to record

interact_with_process

Send input to a running process and wait for its response

ParameterTypeDescription
input *stringThe input text to send to the process
pid *numberThe PID of the running process to interact with
timeout_msnumberOptional milliseconds to wait for the process response

kill_process

Terminate a process by its PID

ParameterTypeDescription
pid *numberThe PID of the process to terminate

list_directory

Get a detailed listing of all files and directories at a path

ParameterTypeDescription
path *stringThe 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

ParameterTypeDescription
destination *stringThe new path for the file or directory
source *stringThe current path of the file or directory to move

read_file

Read the complete contents of a file, optionally a line range

ParameterTypeDescription
path *stringThe path of the file to read
lengthnumberOptional number of lines to read
offsetnumberOptional starting line offset to read from

read_multiple_files

Read the contents of multiple files simultaneously

ParameterTypeDescription
paths *arrayThe paths of the files to read

read_process_output

Read output from a running process, waiting up to a timeout for new output

ParameterTypeDescription
pid *numberThe PID of the process whose output to read
timeout_msnumberOptional milliseconds to wait for new output

set_config_value

Set a configuration value by key

ParameterTypeDescription
key *stringThe configuration key to set
value *stringThe value to set for the configuration key

start_process

Start a new terminal process in a shell and return its initial output

ParameterTypeDescription
command *stringThe command line to start in the shell
shellstringOptional shell to run the command with
timeout_msnumberOptional milliseconds to wait for the process's initial output

write_file

Create a new file or completely overwrite an existing file with new content

ParameterTypeDescription
content *stringThe full content to write to the file
path *stringThe 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)

ParameterTypeDescription
content *stringThe content to write to the file
path *stringThe path of the file to write