GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Expose trusted GNU Make targets as governed MCP tools without a generic shell.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"makefile": {
"command": "uvx",
"args": [
"makefile-mcp",
"serve"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add makefile -- uvx makefile-mcp serveวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"makefile": {
"command": "uvx",
"args": [
"makefile-mcp",
"serve"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"makefile": {
"type": "stdio",
"command": "uvx",
"args": [
"makefile-mcp",
"serve"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ai-ronin-systems ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 13 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Expose trusted GNU Make targets to AI agents — without exposing a generic shell or replacing Make with another workflow system.
Makefile MCP turns an existing Makefile into typed MCP tools. It is zero-config and run-safe by default, and deny-by-default when governed.
Makefile → Makefile MCP → Codex / Claude / LangChain / Cursor / VS Code / MCP client
Design for a compromised agent: any text it reads can carry a prompt injection. Makefile MCP keeps the worst case short. A hijacked agent can run only the targets you listed, with values you typed, and a human approves the risky ones. Read the [threat model](https://github.com/ai-ronin-systems/makefile-mcp/blob/main/docs/threat-model.md) for the threats, controls, tests that prove them, and limits.
| Protected | Not protected |
|---|---|
| Agents cannot run arbitrary shell commands, only exposed Make targets. | A malicious or buggy Makefile: recipes are trusted code, not sandboxed. |
Without config, agents can only run test, lint, check, and fmt. | A target the operator chose to expose doing something destructive. |
Governed mode runs only allow-listed (context, target) pairs with typed, validated inputs. | Host or container privileges granted outside Makefile MCP. |
dangerous tasks need explicit human approval through the MCP client; no approval, no run. | An MCP client that auto-approves elicitation without a human. |
| Every governed run attempt, refused, approved, or cancelled, can be written to an audit log, with secret inputs masked. | Secrets a recipe prints in ways that differ from the input value. |
| The approval prompt shows the exact arguments; agent-supplied text cannot reshape it. | An agent that can edit unpinned Make code or scripts: editing a recipe is a shell. |
With pin, any edit to the Makefile, its includes, or listed scripts stops the server until a human restarts it. | Prompt injection in output the agent does read; agent_output: tail or none narrows it. |
Audit records are hash-chained; doctor reports edits. A CI test replays a hijacked agent. | A same-user process rewriting the whole log and its chain. |
Details: threat model, SECURITY.md, and security model.
pipx install makefile-mcp # or: uv tool install makefile-mcp
makefile-mcp serve
Given:
test: ## Run tests
pytest -q
lint: ## Run lint ruff check .
Makefile MCP exposes make_test and make_lint as MCP tools. Other targets are listed but not runnable until you govern them.
makefile-mcp list
makefile-mcp doctor makefile-mcp run test makefile-mcp run test --preview # GNU Make --dry-run; not a sandbox
One-shot use: uvx makefile-mcp serve.
Makefile MCP is intentionally narrow: the repository's Makefile remains the executable source of truth, while Makefile MCP supplies a governed agent-facing capability boundary.
| Principle | What it means |
|---|---|
| Make stays authoritative | No duplicate workflow DSL, plugin command language, scheduler, database, or second execution engine. |
| No generic shell capability | Agents invoke discovered or explicitly governed Make targets, not arbitrary host commands. |
| Trusted Makefile, untrusted invocation | Repository automation is trusted; caller-selected tasks and declared values are authorized, validated, and bounded. GNU Make's own variable/function semantics are treated as an interpreter boundary. |
| One execution path | CLI, direct MCP tools, generic MCP tools, preview, contexts, and capabilities share the same catalog, authorization, validation, and executor. |
| Conservative discovery | Makefile MCP statically exposes only Make syntax it can classify confidently; ambiguous constructs are omitted rather than guessed. |
| Bounded Unix runtime | Foreground execution has bounded input/output, timeout/cancellation cleanup, stdin isolation, process-group handling, and physical-context locking. |
See Design rationale for the full capability/property map and the alternatives deliberately left out.
Makefile
| conservative catalog | +-------------+-------------+ | | auto governed no config .makefile-mcp.yaml | | +-------------+-------------+ | Application +---------+---------+ | | MCP direct MCP generic +---------+---------+ | Executor | exact make -f
One catalog. One execution path. Thin CLI and MCP adapters.
See Architecture.
Without .makefile-mcp.yaml, Makefile MCP runs in auto mode: every conservatively discovered root target is listed, but only test, lint, check, and fmt can run, with no caller-controlled Make variables. --legacy-auto-run restores the old run-everything behavior (deprecated).
Add .makefile-mcp.yaml to switch to explicit governance:
schema_version: 1
contexts: backend: directory: backend
tasks: test: contexts: [root, backend] risk: safe
deploy: risk: dangerous variables: ENV: type: enum values: [staging, production] required: true
capabilities: verify: test
audit: path: .makefile-mcp/audit.jsonl
pin: paths: [scripts] # freeze Make code and scripts the agent must not change
Only enabled (context, target) pairs are callable. dangerous tasks additionally need human approval (defaults.require_approval), and audit writes one JSON line per call. See Governed mode, Configuration, and Contexts and capabilities.
Makefile MCP supports three MCP presentations over the same callable catalog. Choose the presentation that best fits your requirements.
makefile-mcp serve --tools direct # default: one typed tool per callable target
makefile-mcp serve --tools generic # list_tasks / describe_task / run_task makefile-mcp serve --tools both # both views, same execution core
See MCP presentations and client setup.
Makefile MCP assumes the repository, Makefiles, included Make code, wrapper scripts, and provisioned tools are trusted operator-controlled code. The security boundary is the invocation: an MCP/CLI caller chooses an exposed task/context and, in governed mode, supplies declared values. Makefile MCP authorizes and validates that request; it does not sandbox hostile Makefiles.
Runtime bounds, cancellation/process-group cleanup, stdin isolation, and locking are primarily execution-correctness properties. They limit failure modes around trusted automation rather than turning Make into a sandbox. The built-in MCP server is stdio-only: no HTTP listener, remote-auth layer, TLS, tenancy, or network-service lifecycle is hidden inside the product.
See [SECURITY.md](https://github.com/ai-ronin-systems/makefile-mcp/blob/main/SECURITY.md) for the security policy, reporting process, trust boundary, and limitations. Detailed implementation notes are in docs/security.md.
.makefile-mcp.yaml is startup policy; changes require restart and fail closed until then..makefile-mcp.yaml is startup policy. Restart Makefile MCP after adding, removing, or editing it.Makefile or tracked literal includes change.Python 3.11+ · GNU Make · Linux or macOS
.makefile-mcp.yaml fields, defaults, approval, audit log, and precedence.direct, generic, both, schemas, result/error semantics, naming, and lifecycle.ตัดมาแค่ช่วงต้น อ่านต่อใน repo