About sonirico/mcp-shell
sonirico/mcp-shell is an MCP server published by sonirico in the Developer Tools category: give hands to AI. MCP server to run shell commands securely, auditably, and on demand. Conduid read 30 tools from its source: delete, diff_files, edit_file, git_add, git_blame, git_branches and 24 more. No package is published for it, so it installs from a source checkout.
The repository has 114 stars and 20 forks, is licensed GPL-3.0, and its last commit was on 25 Sep 2026. The latest release is v1.1.1 (25 Sep 2026): Bug Fixes case-fold the git control-surface write guard (GHSA-vv99-jjh6-3c8x) (aa868dc) Fixes GHSA-vv99-jjh6-3c8x, an incomplete fix for GHSA-c598-5pxh-5vq3. It follows v1.1.0 (13 Sep 2026), and the 5 most recent releases go back to v0.8.1 (4 Sep 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include shell, command and automation.
Install
git clone https://github.com/sonirico/mcp-shellTools (30)
deletepath*, recursive| Parameter | Type | Description |
|---|---|---|
| path * | string | Path relative to the workspace root |
| recursive | boolean | Delete directories and their contents recursively |
diff_filespath_a*, path_b*| Parameter | Type | Description |
|---|---|---|
| path_a * | string | First file, relative to the workspace root |
| path_b * | string | Second file, relative to the workspace root |
edit_filepath*, old_string*, new_string*, replace_all| Parameter | Type | Description |
|---|---|---|
| new_string * | string | Replacement string |
| old_string * | string | Exact string to replace |
| path * | string | Path relative to the workspace root |
| replace_all | boolean | Replace all occurrences instead of requiring a unique match |
git_addpaths, all| Parameter | Type | Description |
|---|---|---|
| all | boolean | Stage all changes |
| paths | array | Paths to stage, relative to the workspace root |
git_blamepath*, ref, line_start, line_end| Parameter | Type | Description |
|---|---|---|
| line_end | number | Last line to blame, 1-based |
| line_start | number | First line to blame, 1-based |
| path * | string | File to blame, relative to the workspace root |
| ref | string | Commit or ref to blame at |
git_branchesall, merged| Parameter | Type | Description |
|---|---|---|
| all | boolean | Include remote-tracking branches |
| merged | boolean | Only branches merged into HEAD |
git_commitmessage*, all| Parameter | Type | Description |
|---|---|---|
| all | boolean | Stage all modified and deleted tracked files before committing |
| message * | string | Commit message |
git_diffref, ref_to, staged, path, stat_only, name_only| Parameter | Type | Description |
|---|---|---|
| name_only | boolean | Show only changed file names |
| path | string | Restrict diff to this path, relative to the workspace root |
| ref | string | Base ref to diff from |
| ref_to | string | Ref to diff to, requires ref |
| staged | boolean | Show staged changes |
| stat_only | boolean | Show only the diffstat |
git_logmax_count, ref, path, author, grep, since, until, oneline, follow| Parameter | Type | Description |
|---|---|---|
| author | string | Filter by author |
| follow | boolean | Follow file history across renames |
| grep | string | Filter by commit message pattern |
| max_count | number | Maximum number of commits to show |
| oneline | boolean | One line per commit |
| path | string | Restrict log to this path, relative to the workspace root |
| ref | string | Commit or ref to start from |
| since | string | Only commits after this date |
| until | string | Only commits before this date |
git_ls_filespath, untracked| Parameter | Type | Description |
|---|---|---|
| path | string | Restrict listing to this path, relative to the workspace root |
| untracked | boolean | List untracked files instead of tracked ones |
git_remotesList remotes and their URLsgit_restorepaths*, staged| Parameter | Type | Description |
|---|---|---|
| paths * | array | Paths to restore, relative to the workspace root |
| staged | boolean | Restore the index instead of the working tree |
git_rev_parseref*| Parameter | Type | Description |
|---|---|---|
| ref * | string | Ref to resolve |
git_showref, path, stat_only| Parameter | Type | Description |
|---|---|---|
| path | string | File to show, relative to the workspace root |
| ref | string | Commit or ref to show |
| stat_only | boolean | Show only the diffstat |
git_stashaction*, message| Parameter | Type | Description |
|---|---|---|
| action * | string | One of push, pop, drop |
| message | string | Message for a stash push |
git_stash_listList the stash entriesgit_statusShow the working tree statusgit_switchbranch*, create| Parameter | Type | Description |
|---|---|---|
| branch * | string | Branch to switch to |
| create | boolean | Create the branch before switching to it |
git_tagspattern| Parameter | Type | Description |
|---|---|---|
| pattern | string | Only list tags matching this pattern |
globpattern*, path, newer_than, max_results| Parameter | Type | Description |
|---|---|---|
| max_results | number | Maximum number of results |
| newer_than | string | Only include files modified within this duration, e.g. "24h" |
| path | string | Base path relative to the workspace root |
| pattern * | string | Doublestar glob pattern |
greppattern*, path, glob, ignore_case, context, files_only, count, max_results| Parameter | Type | Description |
|---|---|---|
| context | number | Lines of context before/after each match |
| count | boolean | Only list match counts per file |
| files_only | boolean | Only list matching file names |
| glob | string | Restrict search to files matching this doublestar pattern |
| ignore_case | boolean | Case-insensitive matching |
| max_results | number | Maximum number of matches |
| path | string | Base path relative to the workspace root |
| pattern * | string | Regular expression pattern |
list_dirpath, depth, include_hidden| Parameter | Type | Description |
|---|---|---|
| depth | number | Levels below path to descend |
| include_hidden | boolean | Include dotfiles and dot-directories |
| path | string | Path relative to the workspace root |
mkdirpath*| Parameter | Type | Description |
|---|---|---|
| path * | string | Path relative to the workspace root |
movefrom*, to*| Parameter | Type | Description |
|---|---|---|
| from * | string | Source path relative to the workspace root |
| to * | string | Destination path relative to the workspace root |
read_filepath*, offset, limit, tail| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of lines to read, 0 for all |
| offset | number | 1-based first line to read |
| path * | string | Path relative to the workspace root |
| tail | number | Number of trailing lines to read, overrides offset/limit |
run_scriptname*| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the script to run |
shell_execUNRESTRICTED: runs the command through bash -c with no validation. Only available with MCP_SHELL_ALLOW_UNSAFE=1.| Parameter | Type | Description |
|---|---|---|
| base64 | boolean | Return stdout/stderr as base64-encoded strings (useful for binary data) |
| command * | string | Shell command to execute |
statpath*| Parameter | Type | Description |
|---|---|---|
| path * | string | Path relative to the workspace root |
system_infoShow information about the host and workspacewrite_filepath*, content*, append| Parameter | Type | Description |
|---|---|---|
| append | boolean | Append to the file instead of overwriting it |
| content * | string | Content to write |
| path * | string | Path relative to the workspace root |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 12 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomain.go:87
- Starts other programs
- 2 callsexecutor.go:76, executor.go:116
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 10 callsexecutor.go:137, paths.go:15, tools_fs.go:636
- Lockfile
- go.sum
Pattern matches on the source text of 12 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README