gremlin_mcp
v0.1.0An MCP which adds terminal capabilities to an agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_command Run Command
Execute a shell command and return its output. The command runs through the platform shell (cmd on Windows, sh on Unix), so pipes, redirects and chained commands work. Use with care: this tool can run arbitrary commands.
| Parameter | Type | Description |
|---|---|---|
command * | string | The command line to execute. |
python_code Python Code
Execute a Python snippet with the running interpreter.
| Parameter | Type | Description |
|---|---|---|
code * | string | The Python source to execute. |
python_file Python File
Execute a Python script file with the running interpreter.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the .py file to run. |
glob_files Glob Files
Return file paths matching a glob pattern (recursive).
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Glob pattern, e.g. "src/**/*.py". |
grep Grep
Return lines matching `pattern` in a single file, with line numbers.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path of the file to search. |
pattern * | string | Substring to search for. |
read_file Read File
Read a file's contents as UTF-8 text.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path of the file to read. |
write_file Write File
Write UTF-8 content to a file (created if missing, overwritten if present).
| Parameter | Type | Description |
|---|---|---|
content * | string | Text to write. |
file * | string | Destination path. |
create_folder Create Folder
Create a folder, including parent folders if needed.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Path of the folder to create. |
delete_folder Delete Folder
Recursively delete a folder.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Path of the folder to delete. |
list_dir List Dir
List the contents of a directory (name and type, sorted).
| Parameter | Type | Description |
|---|---|---|
path | string | Directory to list (default: current directory). |
get_cwd Get Cwd
Return the current working directory of the server process.
file_info File Info
Return metadata about a file or folder (type, size, modified time).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to inspect. |
delete_file Delete File
Delete a single file.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path of the file to delete. |
append_file Append File
Append text to a file, creating it first if needed.
| Parameter | Type | Description |
|---|---|---|
content * | string | Text to append. |
path * | string | Destination path. |
move_file Move File
Move or rename a file or folder.
| Parameter | Type | Description |
|---|---|---|
dst * | string | Destination path (parent folders are created as needed). |
src * | string | Source path. |
copy_file Copy File
Copy a file to a new location.
| Parameter | Type | Description |
|---|---|---|
dst * | string | Destination path (parent folders are created as needed). |
src * | string | Source path. |
replace_in_file Replace In File
Replace all occurrences of `old` with `new` in a file.
| Parameter | Type | Description |
|---|---|---|
new * | string | Replacement text. |
old * | string | Text to find. |
path * | string | File to edit. |
search_text Search Text
Recursively search files under `directory` for `pattern`. Common build/venv/cache directories are skipped automatically.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Substring to search for. |
directory | string | Root directory to search (default: current directory). |
read_file_lines Read File Lines
Read a range of lines (1-based, inclusive) from a file. Out-of-range numbers are clamped to the file's actual length.
| Parameter | Type | Description |
|---|---|---|
end * | integer | Last line number (1-based, inclusive). |
path * | string | File to read. |
start * | integer | First line number (1-based). |
get_env_var Get Env Var
Return the value of an environment variable.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the environment variable. |
tree Tree
Show a tree of the directory structure up to a given depth.
| Parameter | Type | Description |
|---|---|---|
depth | integer | How many levels deep to show (clamped to 0-5). |
path | string | Root directory to display (default: current directory). |