bash-mcp

v5.0.1
io.github.nickw8/bash-mcp Checked 3 days ago Published 1 month ago

Structured JSON wrappers for git, kubectl, terraform, helm, argocd, gh, glab and other CLIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ls List directory

List files in a directory. Returns entries as [name, size, permissions, modified] — directories end with '/' and links with '@'. Use nameOnly for names alone, recursive for one level of subdirectories, all to include hidden files.

ParameterTypeDescription
allbooleanInclude hidden files
nameOnlybooleanEntries are [name] alone
pathstringRequired. Directory path to list
recursivebooleanRecurse into subdirectories (1 level)

tree Directory tree

Show directory structure as a compact tree. Returns structured nodes instead of ASCII art. Use dirsOnly for directory-only view, pattern to filter by glob, maxDepth to control depth.

ParameterTypeDescription
path *stringRoot directory
dirsOnlybooleanOnly show directories
excludestringPipe-separated patterns to exclude (default: node_modules|.git|dist|__pycache__|.venv|.next|.terraform)
maxDepthnumberMax depth (default 3)
patternstringOnly show files matching glob pattern

du Disk usage

Show disk usage for paths. Returns entries as [path, sizeBytes] pairs, in the order du emits them. Use maxDepth to control how deep the summary goes.

ParameterTypeDescription
path *stringPath to measure
maxDepthnumberDepth to summarize

find_files Find files

Find files by name pattern, type, or modification time. Returns structured list of paths. Use names for multiple glob patterns (OR logic), modifiedWithin for recent files (e.g. '7d', '1h').

ParameterTypeDescription
maxDepthnumberMax search depth
modifiedWithinstringModified within timespan (e.g. '7d', '1h')
namestringFilename glob pattern (e.g. '*.ts')
namesarrayMultiple filename glob patterns (e.g. ['*.ts', '*.py', '*.sh']). Combined with OR logic.
pathstringRoot directory to search (default: '.')
patternstringAlias for name — filename glob pattern (e.g. '*.ts')
typestringFilter by type
withMetadatabooleanInclude size (bytes) and mtime (unix timestamp) for each file

rg Ripgrep search

Search file contents with ripgrep. Returns files as [file, "line:text", ...] rows (a context line is "line-text"), [file, count] under countPerFile, [file] under filesOnly. Use glob (string or array, '!' to exclude) to filter files, ignoreCase for case-insensitive search, filesOnly for just filenames, countPerFile for match counts per file, maxPerFile to cap hits per file. For 'collect all X' tasks use only:true to return just the matched substrings (one row per hit) — add replace ($1 capture groups) to extract structured values.

ParameterTypeDescription
contextnumberLines of context around each match
countPerFilebooleanReturn match counts grouped by file instead of individual matches
filesOnlybooleanOnly return filenames, not matched lines
fixedStringsbooleanTreat pattern as literal string
globFile glob filter(s); a string or array. Prefix with '!' to exclude (e.g. ['*.ts','!*.test.ts'])
ignoreCasebooleanCase-insensitive search
maxLineLengthnumberWindow matched line text to ~this many chars centered on the match, so long/minified lines don't dump in full (0 = unlimited, default 120)
maxPerFilenumberCap matches per file (rg --max-count), independent of maxResults — keeps one hot file from dominating
maxResultsnumberMax results to return across all files (default 30). When the cap bites, the response reports the true totalMatches so you can decide whether to narrow the pattern or raise the cap
onlybooleanReturn only the matched substring(s), not the whole line — one row per match. Best for collecting tokens (versions, names, URLs)
pathstringDirectory or file to search (default: cwd)
patternstringRequired. Regex pattern to search for
replacestringRewrite each match with this template ($1, $2 capture groups) and return the result; implies only-match extraction

glob Glob file search

Find files matching a glob pattern. Returns a compact list of paths.

ParameterTypeDescription
pattern *stringGlob pattern (e.g. 'src/**/*.ts')
cwdstringWorking directory for the glob

git_status Git status

Structured git status: branch, staged/unstaged/untracked files. Replaces parsing raw git status output.

ParameterTypeDescription
cwdstringRepository path

git_log Git log

Structured git log: commit hash, author, date, message. Compact and parseable. Use range for ref comparisons (e.g. 'main..feature'). Use exclude to filter out commits matching a pattern (e.g. 'ci:').

ParameterTypeDescription
authorstringFilter by author
countnumberNumber of commits (default 20)
cwdstringRepository path
excludestringExclude commits matching this grep pattern (uses --invert-grep)
pathstringFilter by file path
rangestringGit ref range (e.g. 'main..feature', 'HEAD~5..HEAD')
sincestringSince date (e.g. '2024-01-01')
withFilesbooleanInclude list of files changed per commit

git_diff Git diff

Structured git diff: files changed with insertions/deletions counts. Use base+ref for two-ref comparison (e.g. base='main', ref='feature'). Use path to scope to one or more files or directories.

ParameterTypeDescription
basestringBase ref for two-ref comparison. When both ref and base are set, runs git diff <base> <ref>
cwdstringRepository path
pathLimit diff to one or more files or directories (string or array)
refstringRef to diff against (e.g. 'main', 'HEAD~3')
stagedbooleanShow staged changes

git_branches Git branches

List git branches. Returns the current branch and [name, lastCommit] pairs; a remote branch's name starts with remotes/.

ParameterTypeDescription
cwdstringRepository path
remotebooleanInclude remote branches

repo_health_summary Repo health summary

One-call snapshot of a git working tree: branch, ahead/behind vs upstream, staged/unstaged/untracked counts, recent commits, and the uncommitted diffstat.

ParameterTypeDescription
commitsnumberNumber of recent commits to include (default 5)
cwdstringRepository path

git_pr_context Git PR context

Collect the commits and file changes of a branch vs a base ref (for writing a PR description): commit list, changed files with status, and a diffstat over base...head.

ParameterTypeDescription
basestringBase ref to compare against (default 'main')
cwdstringRepository path
headstringHead ref (default 'HEAD')

kube_get Kubectl get resources

Get Kubernetes resources as structured data. Wraps kubectl get -o json and returns a compact summary by default. Use the jq param to extract specific fields from the raw JSON (e.g. '.spec.template.spec.containers[].env') instead of the summary.

ParameterTypeDescription
allNamespacesbooleanSearch all namespaces (overrides namespace)
contextstringKube context
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
includeLabelsbooleanInclude each resource's labels (default false — labels are verbose and mostly hashes; use selector to filter or jq to read specific ones)
includeRawbooleanInclude raw/verbose fields
jqstringjq filter applied to raw kubectl JSON. Skips the default summary and returns the jq result instead. Example: '.spec.template.spec.containers[].env'
maxItemsintegerItem cap; overrides detailLevel
namestringSpecific resource name
namespacestringNamespace (omit for all-namespaces or cluster-scoped)
resourcestringRequired. Resource type (e.g. pods, deployments, services, nodes)
selectorstringLabel selector (e.g. 'app=nginx')

kube_logs Kubectl logs

Get pod logs. lines are as kubectl prints them, '<timestamp> <message>', oldest first; consecutive repeats of a message merge into the first, marked ' [×N]', and a budget cut keeps the newest. Use grep to filter lines by regex pattern (e.g. 'ERROR|WARN') instead of piping through shell commands.

ParameterTypeDescription
containerstringContainer name
contextstringKube context
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
grepstringRegex pattern to filter log lines (e.g. 'ERROR|WARN', 'timeout'). Only matching lines are returned.
ignoreCasebooleanCase-insensitive grep matching (default: false)
includeRawbooleanInclude raw/verbose fields
maxItemsintegerItem cap; overrides detailLevel
namespacestringNamespace
podstringRequired. Pod name (or deployment/xxx)
sincestringDuration like '1h', '30m'
tailnumberNumber of lines (default 100)

kube_contexts Kubectl contexts

List available kubectl contexts with current context marked.

kube_diagnose_pod Diagnose a pod

Diagnose why a pod is unhealthy in one call. Returns status, likely causes, suggested next commands, and evidence (CrashLoopBackOff/ImagePullBackOff/OOMKilled/Unschedulable/restarts).

ParameterTypeDescription
pod *stringPod name
contextstringKube context
namespacestringNamespace

kube_pod_failure_summary Summarize failing pods

List unhealthy pods in a namespace with their failure reason and evidence — one call instead of get + describe per pod.

ParameterTypeDescription
allNamespacesbooleanSearch all namespaces (overrides namespace)
contextstringKube context
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
includeRawbooleanInclude raw/verbose fields
maxItemsintegerItem cap; overrides detailLevel
namespacestringNamespace

kube_deployment_status Deployment rollout status

Report a deployment's rollout health (ready/desired replicas, conditions) as a structured diagnosis.

ParameterTypeDescription
name *stringDeployment name
contextstringKube context
namespacestringNamespace

kube_events_summary Summarize warning events

Summarize Warning events in a namespace (grouped by reason, ordered by count) instead of scrolling raw kubectl get events.

ParameterTypeDescription
allNamespacesbooleanSearch all namespaces (overrides namespace)
contextstringKube context
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
includeRawbooleanInclude raw/verbose fields
maxItemsintegerItem cap; overrides detailLevel
namespacestringNamespace

tf_state_list Terraform state list

List resources in Terraform state. Returns the resource addresses, plus a byType rollup once there are more than 20 (type, name, and module are readable from each address).

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_show Terraform show

Show current Terraform state as structured JSON. Returns resource summary with types and attributes.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_plan_summary Terraform plan summary

Run terraform plan and return a structured summary of changes (add/change/destroy counts and affected resources). Each action is create, update, delete, replace or read; a replace counts in add and destroy, as terraform's Plan line does.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)
planFilestringPath to a saved plan file (from `terraform plan -out`); summarized via `show -json` instead of re-running plan.
targetstringTarget specific resource
varFilestringVar file to use

tf_workspaces Terraform workspaces

List Terraform workspaces with current workspace marked.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_outputs Terraform outputs

List Terraform/OpenTofu outputs as [name, value] pairs; a sensitive output is redacted to [name] alone.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_providers Terraform providers

List the Terraform/OpenTofu version and selected provider versions for the project.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_validate_summary Terraform validate summary

Validate the Terraform/OpenTofu config and return a compact pass/fail summary with diagnostics.

ParameterTypeDescription
cwd *stringTerraform project directory
binarystringterraform or tofu (default $TF_BINARY, else terraform)

tf_modules_summary Terraform modules summary

List the modules used by an initialized Terraform/OpenTofu project (key, source, version). Reads .terraform/modules/modules.json — run init first.

ParameterTypeDescription
cwd *stringTerraform project directory

tf_backend_info Terraform backend info

Report the configured backend type and config for an initialized project. Reads .terraform/terraform.tfstate — run init first.

ParameterTypeDescription
cwd *stringTerraform project directory

argo_apps ArgoCD applications

List ArgoCD applications with sync/health status. Structured summary instead of table output.

ParameterTypeDescription
projectstringFilter by ArgoCD project
selectorstringLabel selector

argo_app_detail ArgoCD app detail

Get detailed status for a single ArgoCD application including resource health.

ParameterTypeDescription
name *stringApplication name

argo_app_diff ArgoCD app diff

Show what's out of sync for an ArgoCD application.

ParameterTypeDescription
name *stringApplication name

argo_app_health_summary ArgoCD app health summary

Diagnose an ArgoCD application's health in one call: overall sync/health, likely causes, suggested next commands, and the unhealthy resources/conditions as evidence.

ParameterTypeDescription
name *stringApplication name

helm_list Helm releases

List Helm releases with status, chart, and app version. Structured output.

ParameterTypeDescription
allNamespacesbooleanSearch all namespaces (overrides namespace)
contextstringKube context
filterstringFilter by release name regex
namespacestringNamespace (omit for all)

helm_status Helm release status

Get detailed status of a Helm release.

ParameterTypeDescription
release *stringRelease name
contextstringKube context
namespacestringNamespace

helm_values Helm release values

Get the computed values for a Helm release as structured data.

ParameterTypeDescription
release *stringRelease name
allValuesbooleanInclude chart defaults (not just user-supplied)
contextstringKube context
namespacestringNamespace

helm_release_triage Helm release triage

Diagnose a Helm release's health in one call: combines helm status + helm history into current status, likely causes, suggested next commands, and recent-revision evidence.

ParameterTypeDescription
release *stringRelease name
contextstringKube context
namespacestringNamespace

jq jq JSON processor

Query and transform JSON using jq expressions. Accepts a file path or raw JSON string. Returns parsed, structured output — far more compact than reading a full JSON file. The filter is passed directly to jq (no shell), so shell-style escaping such as backslash-escaped quotes is neither needed nor supported — write the filter exactly as jq expects it.

ParameterTypeDescription
compactbooleanCompact output (-c)
filestringPath to a JSON file
filterstringjq filter expression (default: '.')
inputstringRaw JSON string to process (alternative to file)
rawOutputbooleanOutput raw strings without JSON encoding (-r)
slurpbooleanRead entire input into array (-s)

yq yq YAML processor

Query and transform YAML files using yq expressions (mikefarah/yq). Outputs as JSON for structured consumption. Far more compact than reading a full YAML file.

ParameterTypeDescription
expressionstringyq expression (default: '.')
filestringPath to a YAML file
inputstringRaw YAML string to process (alternative to file)
outputFormatstringOutput format (default: 'json' for structured output)

cat Read file contents

Read one or more files with line numbers and smart truncation. Returns structured output with metadata. Pass `path` for a single file, or `paths` to read several in one call (returns { files, count }) — collapsing what would otherwise be multiple round-trips. For large files, use startLine/endLine or maxLines to limit output. Use ref to read from a git branch/commit instead of disk (e.g. ref='main'). NOTE: reading with cat does NOT satisfy the built-in Edit/Write "must read first" guard (it tracks only the built-in Read tool) — run the built-in Read on a file immediately before editing it.

ParameterTypeDescription
endLinenumberStop reading at this line (inclusive)
lineNumbersbooleanPrepend line numbers to each line (useful when locating a line). Does not register the file as read for the built-in Edit — use the built-in Read right before editing.
maxLinesnumberMax lines to return per file (default 200, use 0 for unlimited)
pathstringPath to a single file
pathsRead multiple files in one call; a string or array. Returns { files, count }; a per-file failure is reported in that file's `error` and does not abort the others.
refstringGit ref to read from (e.g. 'main', 'HEAD~1', a commit hash). When set, reads file content from git (git show ref:path) instead of disk.
startLinenumberStart reading from this line (1-based)

outline File structure outline

Show the structural outline of a file — function/class names, top-level comments, imports. Returns a compact view without implementation bodies. Includes git metadata (branch, commit) when the file is in a git repo. Use instead of cat when reviewing file structure or auditing many files at once.

ParameterTypeDescription
path *stringPath to the file
refstringGit ref to outline (e.g. 'main', 'HEAD~1', a commit hash). When set, reads file content from git (git show ref:path) instead of disk.

run Run a command

Run a single command — a binary plus an args array, executed directly without a shell (so no pipes, redirects, or ';'/'&&' in the string) — and return structured output with smart truncation. Pass the binary as `command` and its arguments as `args` (e.g. command='npm', args=['test']); for a real shell pipeline run the shell yourself: command='sh', args=['-c', 'a | b > c']. Keeps the last N lines of output by default (where errors typically appear), or the first N with mode='head'. Use for build, test, and lint commands where you need exit code and error details, not full verbose output.

ParameterTypeDescription
command *stringThe binary to execute — NOT a shell string (e.g. 'npm', 'git', 'sh'). For pipes/redirects, use command='sh' and put the script in args.
argsarrayArguments passed directly to the binary (e.g. ['test']). With command='sh', use ['-c', '<shell script>'].
collapsebooleanMerge consecutive repeated lines (timestamps ignored) into the first, marked ' [×N]' (default true). false = output verbatim.
cwdstringWorking directory
maxBytesnumberOptional cap on stdout/stderr byte length (UTF-8).
maxLinesnumberMax stdout/stderr lines to keep. 0 = unlimited.
modestringKeep the last N lines (tail, default) or the first N (head).
timeoutnumberTimeout in ms

run_seq Run commands in sequence

Run an ordered list of labeled commands one after another, stopping at the first failure by default. Use for dependent steps (e.g. build then test then package) where order matters and a later step is pointless if an earlier one fails. Unlike batch (parallel), run_seq is sequential and short-circuits; set stopOnError=false to run every step regardless.

ParameterTypeDescription
maxLinesnumberMax stdout/stderr lines to keep per step. 0 = unlimited.
stepsarrayRequired. Ordered steps to run sequentially
stopOnErrorbooleanStop at the first step with a non-zero exit code (default true).

batch Run commands in parallel

Run multiple commands in parallel and return all results. Each command is a binary plus an args array, executed without a shell (for a pipeline use command='sh', args=['-c', '...']). Use when you need to gather independent pieces of information in a single tool call instead of multiple sequential calls.

ParameterTypeDescription
commandsarrayRequired.

git_diff_content Git diff with content

Show git diff with structured patch content. Returns parsed hunks per file instead of raw unified diff text. Use this when you need to see actual code changes, not just file-level stats. Use base+ref for two-ref comparison (e.g. base='main', ref='feature'). Use path to scope to one or more files or directories.

ParameterTypeDescription
basestringBase ref for two-ref comparison. When both ref and base are set, runs git diff <base> <ref>
contextnumberNumber of context lines around changes (passed as -U<n>)
cwdstringWorking directory (git repo)
pathLimit diff to one or more files or directories (string or array)
refstringDiff against this ref (e.g. 'HEAD~1', 'main', a commit hash)
stagedbooleanShow staged changes (--cached)

npm_lint Lint (structured)

Run biome check and return structured diagnostics with file, line, column, message, and rule. Far more compact and parseable than raw lint output. Use minSeverity to filter by severity level.

ParameterTypeDescription
cwdstringRequired. Project root directory
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
fixbooleanAuto-fix safe issues (default: false)
maxItemsintegerItem cap; overrides detailLevel
minSeveritystringMinimum severity to include (e.g. 'error' drops warnings and info)
pathsSpecific path(s) to lint; a string or array (default: '.')

npm_test Test (structured)

Run vitest or jest (picked from package.json) and return structured test results: suites, pass/fail counts, failure messages. Much more compact than raw test output. Only failures are listed by default; use verbose=true for all tests.

ParameterTypeDescription
coveragebooleanEnable coverage reporting
cwdstringRequired. Project root directory
patternstringFilter tests by filename pattern
verbosebooleanInclude all tests in output (default: only failures)

npm_typecheck Type check (structured)

Run tsc/tsgo --noEmit and return structured type errors with file, line, column, message, and TS error code. Much more compact than raw tsc output. Auto-detects tsgo for faster checking. Use project to specify a tsconfig.

ParameterTypeDescription
cwdstringRequired. Project root directory
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
maxItemsintegerItem cap; overrides detailLevel
projectstringPath to tsconfig.json (default: auto-detected by tsc)

dotnet_build Build (structured)

Run dotnet build and return structured diagnostics with file, line, column, message, and error code. Much more compact than raw MSBuild output. Warnings are omitted by default; pass includeWarnings:true (or detailLevel:'full') to include them.

ParameterTypeDescription
configurationstringBuild configuration (e.g. Debug, Release)
cwdstringRequired. Project root directory
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
includeWarningsbooleanInclude warnings in the response (default: errors only, even on a successful build)
maxItemsintegerItem cap; overrides detailLevel
projectstringPath to .csproj or .sln file (default: auto-detected in cwd)

dotnet_test Test (structured)

Run dotnet test and return structured results: pass/fail/skip counts, failure messages. Much more compact than raw test output. Only failures are listed.

ParameterTypeDescription
cwdstringRequired. Project root directory
filterstringTest filter expression (e.g. 'FullyQualifiedName~MyTest')
projectstringPath to .csproj or .sln file (default: auto-detected in cwd)

liquibase_validate Validate changelog (structured)

Validate a Liquibase changelog and return a structured pass/fail result with per-changeset errors (duplicate ids, checksum drift). Much more compact than raw output. liquibase is on PATH — no mise/wrapper needed.

ParameterTypeDescription
changelogFilestringChangelog path (--changelog-file); usually set in the defaults file instead.
contextsstringContext expression to filter changesets (--contexts).
cwdstringDirectory to run liquibase in (where the defaults file / changelog live).
defaultsFilestringPath to the Liquibase defaults file (--defaults-file), e.g. db-dev.properties. Usually carries the JDBC URL, credentials, and changelog path.
extraArgsarrayAdditional raw arguments appended to the liquibase invocation.
labelsstringLabel expression to filter changesets (--labels).

liquibase_update_sql Preview migration SQL (structured)

Render the SQL Liquibase would run for pending changesets (updateSQL) as structured per-changeset summaries with a SQL-Server batch lint. Does NOT apply changes. SQL bodies are omitted unless includeRaw or changesetId is set. liquibase is on PATH — no mise/wrapper needed.

ParameterTypeDescription
batchLintbooleanLint each changeset for the SQL-Server 'routine DDL must lead its GO-batch' rule (default true).
changelogFilestringChangelog path (--changelog-file); usually set in the defaults file instead.
changesetIdstringReturn only this changeset's full rendered SQL (matches the changeset id).
contextsstringContext expression to filter changesets (--contexts).
cwdstringDirectory to run liquibase in (where the defaults file / changelog live).
defaultsFilestringPath to the Liquibase defaults file (--defaults-file), e.g. db-dev.properties. Usually carries the JDBC URL, credentials, and changelog path.
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
extraArgsarrayAdditional raw arguments appended to the liquibase invocation.
includeRawbooleanInclude raw/verbose fields
labelsstringLabel expression to filter changesets (--labels).
maxItemsintegerItem cap; overrides detailLevel

liquibase_status Pending changesets (structured)

List Liquibase changesets not yet applied to the target database, as structured JSON. Reports up-to-date vs a pending list. liquibase is on PATH — no mise/wrapper needed.

ParameterTypeDescription
changelogFilestringChangelog path (--changelog-file); usually set in the defaults file instead.
contextsstringContext expression to filter changesets (--contexts).
cwdstringDirectory to run liquibase in (where the defaults file / changelog live).
defaultsFilestringPath to the Liquibase defaults file (--defaults-file), e.g. db-dev.properties. Usually carries the JDBC URL, credentials, and changelog path.
extraArgsarrayAdditional raw arguments appended to the liquibase invocation.
labelsstringLabel expression to filter changesets (--labels).

python_lint Python lint (structured)

Run ruff check and return structured diagnostics with file, line, column, message, and rule code. Much more compact than raw ruff output. Use minSeverity to filter by severity level.

ParameterTypeDescription
cwd *stringProject root directory
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
fixbooleanAuto-fix safe issues (default: false)
maxItemsintegerItem cap; overrides detailLevel
minSeveritystringMinimum severity to include (e.g. 'error' drops warnings and info)
pathsSpecific path(s) to lint; a string or array (default: '.')

python_test Python test (structured)

Run pytest and return structured test results: suites, pass/fail counts, failure messages. Much more compact than raw test output. Only failures are listed by default; use verbose=true for all tests.

ParameterTypeDescription
cwd *stringProject root directory
pathstringSpecific test path or file to run
patternstringFilter tests by expression (-k pattern)
verbosebooleanInclude all tests in output (default: only failures)

python_typecheck Python type check (structured)

Run mypy and return structured type errors with file, line, column, message, and error code. Much more compact than raw mypy output.

ParameterTypeDescription
cwd *stringProject root directory
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
maxItemsintegerItem cap; overrides detailLevel
pathsSpecific path(s) to check; a string or array (default: '.')

bash_syntax_check Bash syntax check (structured)

Check shell scripts for syntax errors with `bash -n` and return structured diagnostics (file, line, message). Parses without executing, so it is safe on untrusted scripts. Reports valid:true when no errors are found.

ParameterTypeDescription
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
filesRequired. Shell script path(s) to check; a string or array
maxItemsintegerItem cap; overrides detailLevel

bash_lint Bash lint (structured)

Run shellcheck and return structured diagnostics with file, line, column, message, and SC rule code. Much more compact than raw shellcheck output. Use minSeverity to filter by severity level.

ParameterTypeDescription
detailLevelstringItem preset: summary 20, normal 100, full (default; also skips the response budget)
filesRequired. Shell script path(s) to lint; a string or array
maxItemsintegerItem cap; overrides detailLevel
minSeveritystringMinimum severity to include (e.g. 'error' drops warnings and info)

bash_test Bash test (structured)

Run a shell test script — bats `.bats` files via `--tap`, or a plain `.sh` harness — and return structured results: per-case pass/fail plus a summary parsed from TAP or `N tests, M failures` output, falling back to exit-code-only when the format is unrecognized. Executes the script, so it is gated by BASH_MCP_MODE.

ParameterTypeDescription
cwdstringWorking directory
filestringRequired. Test script path (.bats or .sh)
timeoutnumberTimeout in ms

check_environment Check environment

Report which CLIs are installed (and their versions) so you can pick the right tool before calling it. Probes are client-only and non-blocking — no server/auth calls. Includes kubectl's current context when available.

list_guidance List tool-selection guidance

Return an intent → preferred-tool index so you can pick the right bash-mcp tool for a goal. Each entry names the tool to prefer, raw-command anti-patterns to avoid, and why. Filter with `intent` (substring) or `category` to narrow the list.

ParameterTypeDescription
categorystringExact category filter, e.g. 'kubernetes', 'git', 'terraform'.
intentstringCase-insensitive substring filter on the intent text.

gh_pr_checks PR checks

Report a pull request's CI checks as counts per state plus the failing and pending checks. Defaults to the current branch's PR; passing checks are counted, not listed, unless all=true.

ParameterTypeDescription
allbooleanList passing and skipped checks too (default: only the rest)
cwdstringRepository path (default: the server's working directory)
prstringPR number, URL or branch (default: the current branch's PR)

gh_run_failure_summary CI run failure summary

Diagnose a GitHub Actions run in one call: status, the failed jobs and steps, and the ##[error] lines from the failed log as evidence. Defaults to the latest run on the current branch.

ParameterTypeDescription
branchstringBranch whose latest run to read (default: the current branch)
cwdstringRepository path (default: the server's working directory)
runstring | numberRun ID (default: the latest run on `branch`)

glab_ci_status GitLab pipeline status

Report a GitLab pipeline's jobs as counts per status plus the failed, running and pending jobs. Defaults to the current branch's latest pipeline; pass mr for a merge request's head pipeline. Passing, skipped and manual jobs are counted, not listed, unless all=true.

ParameterTypeDescription
allbooleanList passing, skipped and manual jobs too
branchstringBranch whose latest pipeline to read (default: current branch)
cwdstringRepository path (default: the server's working directory)
mrstring | numberMerge request IID: read its head pipeline instead
pipelinestring | numberPipeline ID (default: the latest pipeline on `branch`)
repostringGROUP/REPO or URL (default: the repo at `cwd`)

glab_pipeline_failure_summary GitLab pipeline failure summary

Diagnose a GitLab pipeline in one call: status, the failed jobs and why GitLab says they failed, and the last script lines of each failed job's trace as evidence. Allowed-to-fail jobs are noted, not counted as the failure. Defaults to the current branch's latest pipeline.

ParameterTypeDescription
branchstringBranch whose latest pipeline to read (default: current branch)
cwdstringRepository path (default: the server's working directory)
mrstring | numberMerge request IID: read its head pipeline instead
pipelinestring | numberPipeline ID (default: the latest pipeline on `branch`)
repostringGROUP/REPO or URL (default: the repo at `cwd`)

result_get Get Retained Result

Page through a result the response budget trimmed. Pass the retained.id from that response; path selects a field (dotted, e.g. files.0), offset/limit slice an array. Snapshot of the original call, kept for retained.expiresInSec.

ParameterTypeDescription
idstringRequired. retained.id from a trimmed response
limitintegerDefault 100
offsetintegerDefault 0
pathstringDotted path into the payload; omit for the whole payload