gremlin_mcp

v0.1.0
gremlin_mcp Checked 2 days ago Published 3 months ago

An 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.

ParameterTypeDescription
command *stringThe command line to execute.

python_code Python Code

Execute a Python snippet with the running interpreter.

ParameterTypeDescription
code *stringThe Python source to execute.

python_file Python File

Execute a Python script file with the running interpreter.

ParameterTypeDescription
file *stringPath to the .py file to run.

glob_files Glob Files

Return file paths matching a glob pattern (recursive).

ParameterTypeDescription
pattern *stringGlob pattern, e.g. "src/**/*.py".

grep Grep

Return lines matching `pattern` in a single file, with line numbers.

ParameterTypeDescription
file *stringPath of the file to search.
pattern *stringSubstring to search for.

read_file Read File

Read a file's contents as UTF-8 text.

ParameterTypeDescription
file *stringPath of the file to read.

write_file Write File

Write UTF-8 content to a file (created if missing, overwritten if present).

ParameterTypeDescription
content *stringText to write.
file *stringDestination path.

create_folder Create Folder

Create a folder, including parent folders if needed.

ParameterTypeDescription
folder *stringPath of the folder to create.

delete_folder Delete Folder

Recursively delete a folder.

ParameterTypeDescription
folder *stringPath of the folder to delete.

list_dir List Dir

List the contents of a directory (name and type, sorted).

ParameterTypeDescription
pathstringDirectory 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).

ParameterTypeDescription
path *stringPath to inspect.

delete_file Delete File

Delete a single file.

ParameterTypeDescription
path *stringPath of the file to delete.

append_file Append File

Append text to a file, creating it first if needed.

ParameterTypeDescription
content *stringText to append.
path *stringDestination path.

move_file Move File

Move or rename a file or folder.

ParameterTypeDescription
dst *stringDestination path (parent folders are created as needed).
src *stringSource path.

copy_file Copy File

Copy a file to a new location.

ParameterTypeDescription
dst *stringDestination path (parent folders are created as needed).
src *stringSource path.

replace_in_file Replace In File

Replace all occurrences of `old` with `new` in a file.

ParameterTypeDescription
new *stringReplacement text.
old *stringText to find.
path *stringFile to edit.

search_text Search Text

Recursively search files under `directory` for `pattern`. Common build/venv/cache directories are skipped automatically.

ParameterTypeDescription
pattern *stringSubstring to search for.
directorystringRoot 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.

ParameterTypeDescription
end *integerLast line number (1-based, inclusive).
path *stringFile to read.
start *integerFirst line number (1-based).

get_env_var Get Env Var

Return the value of an environment variable.

ParameterTypeDescription
name *stringName of the environment variable.

tree Tree

Show a tree of the directory structure up to a given depth.

ParameterTypeDescription
depthintegerHow many levels deep to show (clamped to 0-5).
pathstringRoot directory to display (default: current directory).