coding-tools-mcp
xyTom · xyTom/coding-tools-mcp
MCP server này cung cấp một môi trường chạy mã độc lập với mô hình cho bất kỳ tác nhân AI nào, cho phép thực thi mã an toàn, quản lý tệp và các thao tác Git trong một không gian làm việc giới hạn.
Give any AI agent the ability to code
Xem trước
Bạn có thể làm gì với nó
- Cho phép tác nhân Claude Code của bạn đọc, sửa đổi và quản lý tệp trong codebase của bạn một cách an toàn bằng cách sử dụng môi trường chạy được kiểm soát.
- Thực thi các lệnh shell hoặc áp dụng các bản vá nhiều tệp thông qua tác nhân Cursor của bạn trong khi vẫn đảm bảo các ranh giới bảo mật được thực thi.
- Tích hợp các thao tác Git vào quy trình làm việc của tác nhân AI của bạn, cho phép nó cam kết các thay đổi hoặc quản lý các nhánh trong một ngữ cảnh bảo mật.
Kiểm tra an toàn
Dùng được, nhưng nên đọc ghi chú trước.
- ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.
scripts/install.sh
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Coding Tools MCP
English | 简体中文
Give any AI chat or agent a safe pair of hands on your codebase.
Coding Tools MCP is a model-neutral coding runtime served over the Model Context Protocol: file reading and search, structured multi-file patches, command execution, interactive sessions, and git — one server that any MCP client can drive. Claude Desktop, Claude Code, Codex, Cursor, Cline, VS Code, Windsurf, Gemini CLI, or an agent you build yourself gets the default catalog of 18 battle-tested tools, confined to one workspace and gated by permission modes.
Why people use it
- It turns a chat app into a coding agent. Claude Desktop — or any MCP chat client — gets real repo access with the subscription you already have. No extra product required.
- Safety is the product, not an afterthought. One workspace root per
server. Absolute paths,
..traversal, and symlink escapes are rejected. Permission modes gate network access, shell expansion, inline scripts, and destructive commands. On Linux, Landlock adds kernel-level filesystem confinement. - It is model- and vendor-neutral. A truthfully annotated, mode-aware catalog — no profile switching, no annotation games. Swap models or clients freely; the runtime contract stays put.
- It is engineered for context windows. Results are summarized, paginated, and capped by design; serialized tool-result bytes dropped 37% release-over-release on the deterministic dogfood workload with unchanged task completion.
Quickstart
Run it with whichever toolchain you already have (the server is Python ≥ 3.11
from PyPI; the npm package is a thin launcher that starts it via uv or
pipx):
uvx coding-tools-mcp --stdio --workspace /path/to/repo # Python toolchain
npx coding-tools-mcp --stdio --workspace /path/to/repo # Node toolchain
Wire it into Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf,
Gemini CLI, or Cline — the JSON is the same everywhere (swap uvx for npx
if you prefer Node):
{
"mcpServers": {
"coding-tools": {
"command": "uvx",
"args": ["coding-tools-mcp", "--stdio", "--workspace", "/path/to/repo"]
}
}
}
Then ask your client: "run the test suite and fix the first failure."
Prefer HTTP? Drop --stdio and the server speaks Streamable HTTP on
http://127.0.0.1:8765/mcp. Both protocol eras are served on either
transport: MCP 2026-07-28 in full, with tools as the only advertised
capability, and the handshake era 2025-11-25 with 2025-06-18
compatibility. Neither has sessions. A one-line installer, per-client
walkthroughs, and troubleshooting live in
docs/quickstart.md and
docs/mcp-client-config.md.
Seven things to try
1. Make Claude Desktop your coding agent. The config above is all it takes — the chat window you already pay for can now read, patch, test, and commit-review a real repository.
2. Code on your own machine from anywhere.
CODING_TOOLS_MCP_AUTH_MODE=bearer ./integrations/tunnels/tunnel.sh cloudflared /path/to/repo
Loopback bind + authenticated HTTPS tunnel (cloudflared, ngrok, or
Microsoft Dev Tunnel). Point claude.ai on your phone at
https://<tunnel-host>/mcp and drive your home workstation from anywhere.
ChatGPT and Grok connect through their connector settings the same way.
Bearer tokens and OAuth 2.1 + PKCE (with RFC 7591 dynamic registration) are
built in. → docs/remote-mcp.md
3. Let an agent loose on untrusted code — inside a disposable sandbox.
docker build -t coding-tools-mcp-sandbox:local .
docker run --rm --init -it -p 8765:8765 -v "$PWD:/workspace" coding-tools-mcp-sandbox:local
A containerized server with toolchains and caches preconfigured, safe to point at a sketchy PR and destroy afterwards. → docs/docker.md
4. Spin up a cloud sandbox with one MCP call. The bundled
Cloudflare Worker control plane exposes
start_coding_tools_sandbox as an MCP tool: one call dispatches a GitHub
Actions runner that boots the Docker sandbox and publishes it behind an
authenticated Cloudflare Tunnel. Ephemeral compute, no server of your own.
5. Drive it from a GUI.
python -m pip install "coding-tools-mcp[desktop]"
coding-tools-mcp-desktop
Per-workspace profiles, server and tunnel start/stop, credential setup with clipboard helpers, live health checks. English and 简体中文.
6. Keep an interactive command alive. exec_command starts a REPL or
debugger under a real PTY; write_stdin feeds it across turns; read_output
pages long output; kill_command cleans up. Long-running processes are
first-class, with deadline watchdogs and bounded buffers.
7. Give your own agent production-grade hands. Building an agent loop with the Anthropic SDK or anything else? Don't hand-roll file and exec tools — speak MCP to this server and inherit the whole safety boundary. → docs/embedding.md
The tool catalog
The registry contains 19 truthfully annotated tools. The default safe and
trusted modes advertise 18; dangerous also advertises
request_permissions, the only mode in which that tool can grant anything.
apply_patch and apply_changes are the file-mutation primitives: both are
staged, baseline-checked, atomic across files, and support rollback.
| Group | Tools |
|---|---|
| Files & search | read_file · list_dir · list_files · search_text · apply_patch · apply_changes · view_image |
| Execution | exec_command · write_stdin · read_output · kill_command · request_permissions (dangerous only) |
| Git | git_status · git_diff · git_log · git_show · git_blame |
| Runtime | server_info · check_exec_environment |
Root AGENTS.md/CLAUDE.md files load aut