cmdshellmcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cmdshellA | Runs one of the configured Linux/Unix commands. Allowed commands: ["ls", "pwd", "date", "cat", "grep", "egrep", "whoami", "head", "tail", "sed", "wc", "file", "du", "df", "free", "ps", "uname", "hostname", "uptime", "w", "last", "mkdir", "cp", "mv", "awk", "jq"] Arguments are checked with _local_path_error: empty arguments are allowed; absolute paths and paths containing a '..' component are rejected. Args: command: The command name (for example, 'ls'). It must be in the allowed commands list. args: A list of command arguments/flags (for example, ['-la', '.txt']). Put a glob in double quotes (for example, ['".txt"']) to pass it literally instead of expanding it into filenames. Pipes and redirects are not allowed. |
| writeFileC | write text into a local file in the current directory |
| readFileA | Read and return a UTF-8 text file beneath the current directory. |
| listFilesC | List entries in a directory beneath the current directory. |
| copyFileC | Copy a local file beneath the configured current directory. |
| moveRenameFileC | Move or rename a local file beneath the configured current directory. |
| deleteFileC | Delete a local file beneath the configured current directory. |
| mkdirC | Create one directory beneath the configured current directory. |
| rmdirA | Remove one empty directory beneath the configured current directory. |
| editFileA | Edits an existing local text file using a sed expression/program. Args: file: Local path of the file to edit, limited to the configured current directory and its descendants. script: The authoritative sed editing expression/program. args: Optional safe sed arguments. Options that enable in-place editing, supply another expression or program file, select other files, or execute commands are not allowed. Before editing, the tool creates the next available numbered backup (.bk1, .bk2,
.bk3, and so on), and never overwrites an existing backup. The source file is
replaced only after sandboxed sed completes successfully. On success, the response
contains a Example: file="src/example.py", script="s/old_name/new_name/g". The resulting
backup might be |
| applyPatchA | Apply
|
| fetchC | fetch a page from a url Args: url: the url to fetch prettify: prettify the retrieved html |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most dedicated file tools have distinct purposes, but the generic cmdshell heavily overlaps with listFiles, readFile, copyFile, moveRenameFile, mkdir, and editFile via allowed commands like ls, cat, cp, mv, mkdir, and sed. The overlap is mitigated by the dedicated tools' clearer names and safety constraints, but agents still have multiple plausible choices for many file operations.
Most file-operation tools follow a camelCase verb_noun pattern such as writeFile, readFile, copyFile, and deleteFile. However, fetch, cmdshell, mkdir, and rmdir break that pattern, mixing bare verbs, nouns, and Unix command names.
Twelve tools is well within a reasonable range for a sandboxed filesystem/shell server. Each tool represents a recognizable operation, and the set does not feel bloated despite the overlap from cmdshell.
The surface covers core file lifecycle operations: read, write, edit, copy, move/rename, delete, list, mkdir, rmdir, patch, plus a restricted shell and URL fetch. Minor gaps exist, such as file metadata/stat, chmod, symlink handling, and recursive directory deletion, but agents can work around them for most workflows.