GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Structured JSON wrappers for git, kubectl, terraform, helm, argocd, gh, glab and other CLIs.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
BASH_MCP_MODE, BASH_MCP_PROFILE, BASH_MCP_RESPONSE_MODEต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"bash": {
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "ใส่ค่าของคุณ",
"BASH_MCP_PROFILE": "ใส่ค่าของคุณ",
"BASH_MCP_RESPONSE_MODE": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add bash --env BASH_MCP_MODE='ใส่ค่าของคุณ' --env BASH_MCP_PROFILE='ใส่ค่าของคุณ' --env BASH_MCP_RESPONSE_MODE='ใส่ค่าของคุณ' -- npx -y @nickw8/bash-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"bash": {
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "ใส่ค่าของคุณ",
"BASH_MCP_PROFILE": "ใส่ค่าของคุณ",
"BASH_MCP_RESPONSE_MODE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"bash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nickw8/bash-mcp"
],
"env": {
"BASH_MCP_MODE": "ใส่ค่าของคุณ",
"BASH_MCP_PROFILE": "ใส่ค่าของคุณ",
"BASH_MCP_RESPONSE_MODE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
BASH_MCP_MODE envBASH_MCP_PROFILE envBASH_MCP_RESPONSE_MODE envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub nickw8 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (5.0.1) เข้า registry 14 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP server that wraps common CLI tools (kubectl, terraform, helm, git, argocd, jq, yq, ripgrep, etc.) and returns structured JSON instead of raw text output.
Designed for AI agents and LLM-powered workflows where parsing human-readable CLI output wastes tokens and breaks easily.
Created with the help of Claude since it is the main consumer of the structured data.
No installation needed — just add the MCP config and npx will fetch it on first use.
npm install -g @nickw8/bash-mcp
git clone https://github.com/nickw8/bash-mcp.git
cd bash-mcp npm install && npm run build npm link
Run the built-in preflight check before wiring bash-mcp into a client:
npx -y @nickw8/bash-mcp --doctor # or: bash-mcp --doctor (global install)
It reports your Node version, whether the MCP SDK loads, which CLIs are available (versions included), and the resolved BASH_MCP_MODE — then exits non-zero if a critical check fails (Node too old or the SDK can't load). Missing CLIs are advisory, not failures. Without --doctor, the binary starts the MCP server as usual.
Add bash-mcp to your Claude Code settings. For all projects (recommended), edit ~/.claude/settings.json. For a single project, edit .claude/settings.json in the project root.
With npx (no install required):
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
Safe by default: an unset
BASH_MCP_MODEresolves toreadOnly, which
blocks mutating
run/batchcommands. The examples set it explicitly for
clarity. For trusted local use, set
BASH_MCP_MODE=offto allow writes.
With global install:
{
"mcpServers": { "bash-mcp": { "command": "bash-mcp", "env": { "BASH_MCP_MODE": "readOnly" } } } }
To verify it's working, start Claude Code and check that bash-mcp tools (like cat, rg, git_status) appear in the tool list.
You can also add it from the CLI:
claude mcp add bash-mcp -e BASH_MCP_MODE=readOnly -- npx -y @nickw8/bash-mcp
Registering the server exposes the tools, but agents still reach for raw Bash out of habit. Two assets fix that: a rules file (~/.claude/rules/bash-mcp-tools.md, auto-loaded into every session — the tool inventory) and a PreToolUse(Bash) redirect hook. Install both with:
npx -y @nickw8/bash-mcp --install-claude # copy into ~/.claude
npx -y @nickw8/bash-mcp --install-claude --check # report drift, write nothing
It prints the settings.json hook block to paste in (the rules file needs no settings — Claude Code auto-loads ~/.claude/rules/*.md). See hooks/README.md for details and the clone-time npm run claude:install equivalent. --uninstall-claude removes both files again.
Or install the Claude Code plugin, which bundles the server and the hook (in warn mode — it never blocks unless BASH_MCP_HOOK=block):
/plugin install bash-mcp --marketplace nickw8/bash-mcp
Every other client (VS Code/Copilot, Codex, generic stdio) and pinned versions: docs/guides/installation.md.
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and add the same mcpServers entry:
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
Restart Claude Desktop after editing.
Add bash-mcp to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": { "bash-mcp": { "command": "npx", "args": ["-y", "@nickw8/bash-mcp"], "env": { "BASH_MCP_MODE": "readOnly" } } } }
(Use "command": "bash-mcp" with no args if you installed globally.) Any MCP-aware client works the same way — point it at the bash-mcp binary or npx -y @nickw8/bash-mcp.
Optional Claude Code hooks in hooks/ steer agents toward the structured tools by blocking raw shell commands (git status, kubectl get, cat, …) that have a bash-mcp equivalent, while letting write commands (git commit, kubectl apply) pass through. BASH_MCP_HOOK=warn makes every block advisory; off disables the hook.
See docs/runbooks/hooks-setup.md for setup.
Raw CLI tools return text meant for humans. AI agents waste tokens parsing tables, aligning columns, and guessing field boundaries. bash-mcp runs the same CLI tools but returns structured JSON with typed schemas, so the agent gets exactly the data it needs.
# Raw kubectl output: 148 tokens to parse a table
NAME READY STATUS RESTARTS AGE nginx-7c5b8d6c88-abc12 1/1 Running 0 3d
{ "name": "nginx-7c5b8d6c88-abc12", "status": "Running", "age": "3d", ... }
See docs/guides/token-benchmarks.md for measured savings (e.g. kubectl describe pod → kube_diagnose_pod is ~64% fewer tokens).
run is the escape hatchkube_diagnose_pod, helm_release_triage, and argo_app_health_summary answer an *operational question* in one call — { status, likelyCauses, suggestedNextCommands, evidence } — instead of making the agent run get, then logs, then reason across both.run executes anything with smart truncation. Optional hooks actively steer agents back to the structured tool when a raw equivalent is invoked.Read-only tools carry the MCP readOnlyHint annotation. run/batch can be gated with BASH_MCP_MODE (see Configuration).
Pick the structured tool that matches your intent instead of reaching for a raw command. The list_guidance tool returns this same index as JSON (filter by intent or category), so agents can self-select without the README.
| I want to… | Use this | Instead of | |
|---|---|---|---|
| diagnose a crashing or failing Kubernetes pod | kube_diagnose_pod | kubectl describe pod, kubectl logs | |
| find all not-ready or failing pods in a namespace | kube_pod_failure_summary | kubectl get pods, `kubectl get pods \ | grep` |
| check a deployment's rollout health | kube_deployment_status | kubectl rollout status, kubectl get deployment | |
| understand recent cluster events | kube_events_summary | kubectl get events | |
| summarize the changes in a Terraform plan | tf_plan_summary | terraform plan, terraform show | |
| review the current feature branch before a PR | git_pr_context | git diff, git log, git status | |
| understand the overall state of a repository | repo_health_summary | git status, git log --oneline | |
| read a file's structure without loading the full body | outline | cat (entire file), cat | |
| read one region of a large file | cat | cat (whole file), sed -n '10,40p' | |
| keep a broad search from flooding the context | rg | `rg \ | head` |
| search for exact code references or symbols | rg | grep -r, rg | |
| check whether a pull request's CI checks pass | gh_pr_checks | gh pr checks, gh pr view | |
| find out why a CI / GitHub Actions run failed | gh_run_failure_summary | gh run view --log-failed, gh run list | |
| check whether a GitLab pipeline or merge request's jobs pass | glab_ci_status | glab ci get, glab ci status | |
| find out why a GitLab CI pipeline failed | glab_pipeline_failure_summary | glab ci trace, glab ci view | |
| triage why a Helm release is unhealthy | helm_release_triage | helm status, helm get values | |
| check whether an ArgoCD app is healthy and in sync | argo_app_health_summary | argocd app get, argocd app list | |
| validate a Liquibase changelog for errors | liquibase_validate | liquibase validate | |
| preview the SQL Liquibase would run for pending changesets | liquibase_update_sql | liquibase updateSQL, `liquibase updateSQL \ | grep` |
| list Liquibase changesets not yet applied to the database | liquibase_status | liquibase status --verbose | |
| lint a shell script for bugs and quoting issues | bash_lint | shellcheck, shellcheck -f json1 | |
| run a bats or shell test suite | bash_test | bats, bash test.sh | |
| discover which CLIs are installed before calling a tool | check_environment | which, --version |
📖 [Full tool reference → `docs/tools.md`](docs/tools.md) — generated from the
registered tools (inputs, outputs, and the raw command each one approximates).
Regenerate with
npm run docs:tools.
| Tool | Description |
|---|---|
check_environment | Report which CLIs are installed (and their versions) so you can pick the right tool before calling it. |
list_guidance | Return an intent → preferred-tool index so you can pick the right bash-mcp tool for a goal. |
| Tool | Description |
|---|---|
ls | List files in a directory. |
tree | Show directory structure as a compact tree. |
du | Show disk usage for paths. |
find_files | Find files by name pattern, type, or modification time. |
| Tool | Description |
|---|---|
rg | Search file contents with ripgrep. |
glob | Find files matching a glob pattern. |
| Tool | Description |
|---|---|
cat | Read one or more files with line numbers and smart truncation. |
outline | Show the structural outline of a file — function/class names, top-level comments, imports. |
| Tool | Description |
|---|---|
git_status | Structured git status: branch, staged/unstaged/untracked files. |
git_log | Structured git log: commit hash, author, date, message. |
git_diff | Structured git diff: files changed with insertions/deletions counts. |
git_branches | List git branches. |
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. |
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. |
git_diff_content | Show git diff with structured patch content. |
| Tool | Description |
|---|---|
gh_pr_checks | Report a pull request's CI checks as counts per state plus the failing and pending checks. |
gh_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. |
| Tool | Description |
|---|---|
glab_ci_status | Report a GitLab pipeline's jobs as counts per status plus the failed, running and pending jobs. |
| glab_pipeline_failure_summary | Diagnose a GitLab pipeline in one call: status, the failed jobs and why GitLab says they failed, and the last script li
ตัดมาแค่ช่วงต้น อ่านต่อใน repo