Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Enterprise MCP guard: roles, allowlist policy, human confirmation, JSONL audit log, example tools.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
MCP_AGENT_TEMPLATE_ROLE, MCP_AGENT_TEMPLATE_CONFIRM, MCP_AGENT_TEMPLATE_AUDIT_DIRต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"agent-template": {
"command": "uvx",
"args": [
"mcp-agent-template",
"serve"
],
"env": {
"MCP_AGENT_TEMPLATE_ROLE": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_CONFIRM": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_AUDIT_DIR": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add agent-template --env MCP_AGENT_TEMPLATE_ROLE='ใส่ค่าของคุณ' --env MCP_AGENT_TEMPLATE_CONFIRM='ใส่ค่าของคุณ' --env MCP_AGENT_TEMPLATE_AUDIT_DIR='ใส่ค่าของคุณ' -- uvx mcp-agent-template serveเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"agent-template": {
"command": "uvx",
"args": [
"mcp-agent-template",
"serve"
],
"env": {
"MCP_AGENT_TEMPLATE_ROLE": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_CONFIRM": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_AUDIT_DIR": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"agent-template": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-agent-template",
"serve"
],
"env": {
"MCP_AGENT_TEMPLATE_ROLE": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_CONFIRM": "ใส่ค่าของคุณ",
"MCP_AGENT_TEMPLATE_AUDIT_DIR": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
MCP_AGENT_TEMPLATE_ROLE envMCP_AGENT_TEMPLATE_CONFIRM envMCP_AGENT_TEMPLATE_AUDIT_DIR envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub amineutron ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.0) เข้า registry เมื่อวานซืน
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Tools MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Web production tools for AI agents: contrast, JP text, WebP, JSON-LD, slugs, dates and 40+ more
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
English summary. A template for MCP servers that an IT department can let an LLM agent use: every tool call goes through an allowlist policy (policy.yaml), a caller role (lecteur / operateur / admin, derived from the MCP tool annotations), per-parameter allowed values, a human confirmation for destructive actions (MCP elicitation, both the 2025-11-25 and 2026-07-28 protocols), and a JSONL audit log (mode 0600, one correlation id per call). The mcp-agent-template package ships two runnable examples: an enterprise one (tickets, a read-only LDAP-like directory, a read-only SQL inventory, all on fictitious local data) and a generic ops one (systemd and docker status, restart with confirmation). Local-first, self-hosted, on-prem; no cloud, no telemetry. Dual licensed: AGPL-3.0, or a commercial licence for companies of any size.
Donner des outils a un agent IA dans une entreprise pose toujours les memes questions : qui a le droit de faire quoi, qui a valide une action dangereuse, et ou est la trace. Ce depot est un modele (bouton « Use this template ») qui y repond une fois pour toutes, autour du SDK MCP officiel.
Chaque appel d'outil passe, dans l'ordre :
policy.yaml) : un outil absent est refuse.| Type d'outil | Annotation MCP publiee | Role minimal |
|---|---|---|
| lecture | readOnlyHint | lecteur |
| ecriture non destructrice | — | operateur |
| destructif | destructiveHint | admin + confirmation humaine |
password, token, api_key...) sont masques.Un refus renvoie une erreur lisible a l'agent, jamais un faux succes.
uvx mcp-agent-template --help
uvx mcp-agent-template serve --example enterprise # tickets, annuaire, inventaire (donnees fictives) uvx mcp-agent-template serve --example ops # systemd et docker uvx mcp-agent-template check-policy policy.yaml # valide une politique et resume ses regles
Dans un client MCP (Claude Code, Claude Desktop...) :
{
"mcpServers": { "entreprise": { "command": "uvx", "args": ["mcp-agent-template", "serve", "--example", "enterprise"], "env": { "MCP_AGENT_TEMPLATE_ROLE": "operateur" } } } }
| Variable | Role | Defaut |
|---|---|---|
MCP_AGENT_TEMPLATE_ROLE | role de l'appelant : lecteur, operateur, admin | lecteur |
MCP_AGENT_TEMPLATE_CONFIRM | elicit : l'humain confirme via le client ; client : le client confirme deja lui-meme (il lit destructiveHint) | elicit |
MCP_AGENT_TEMPLATE_AUDIT_DIR | dossier du journal d'audit | ~/.local/state/mcp-agent-template |
MCP_AGENT_TEMPLATE_DATA_DIR | bases SQLite des exemples | ~/.local/state/mcp-agent-template-demo |
Le role vient pour l'instant de la configuration du client : chaque poste ou chaque profil recoit le sien. La source du role est une petite interface (RoleSource) : une authentification par jeton pourra s'y brancher sans toucher aux outils.
Entreprise (--example enterprise), sur des donnees FICTIVES d'une societe « Exemple SA » creees en local, sans aucun service externe :
list_tickets, get_ticket, create_ticket (la priorite « critique » est reservee aux humains par la politique), close_ticket, delete_ticket (admin + confirmation) ;search_directory, get_user, group_members ;list_tables, query_inventory. Deux verrous : la base est ouverte en mode=ro, et un autorisateur SQLite refuse toute ecriture, PRAGMA ou ATTACH, meme cachee dans un WITH.Ops (--example ops) : service_status et list_containers en lecture, restart_service limite aux unites listees par la politique, apres confirmation.
from mcp.server.mcpserver import MCPServer
from mcp_agent_template import Guard, Policy, ToolKind
server = MCPServer("mon-agent") guard = Guard(server, Policy.load("policy.yaml"))
@guard.tool(ToolKind.READ, title="Lister les commandes") def list_orders(status: str = "ouverte") -> list[dict]: """Commandes du jour.""" ...
@guard.tool(ToolKind.DESTRUCTIVE, title="Annuler une commande") def cancel_order(order_id: int) -> dict: """Annule une commande (admin + confirmation humaine).""" ...
server.run()
# policy.yaml
version: 1 default: deny tools: list_orders: {} cancel_order: allowed_values: order_id: ["1042", "1043"]
Pour brancher un vrai outil de tickets, un vrai annuaire LDAP ou une vraie base, remplacer les classes de src/mcp_agent_template/examples/stores.py : les outils MCP et la garde ne changent pas.
uv sync
uv run pytest # garde, politique, audit, exemples, protocoles 2025-11-25 et 2026-07-28, stdio uv run ruff check src tests
Un devcontainer est fourni (.devcontainer/).
Double licence :
Les contributions sont acceptees sous l'accord CLA.md.
Meme approche que fedora-agents (journal d'audit avec identifiant de correlation, annotations MCP) et Lyra, l'assistant vocal French-first qui fait confirmer l'humain avant chaque action sensible.