Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Model routing for AI agents: delegate bulk reads & boilerplate to cheap worker models.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"model-shunt": {
"command": "npx",
"args": [
"-y",
"model-shunt"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add model-shunt -- npx -y model-shuntวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"model-shunt": {
"command": "npx",
"args": [
"-y",
"model-shunt"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"model-shunt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"model-shunt"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub yasmanycastillo ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.2.1) เข้า registry 44 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv), Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Dialyne
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.
Real phone calls in France for AI agents: dial +33 numbers, menus, hold, AI disclosure.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A decoupled, zero-dependency, universal implementation of the Shunt model-routing pattern (originally conceived by Spotify Engineering).
Model-Shunt allows AI coding agents (Antigravity, Cursor, Windsurf, Claude Code, Aider, OpenHands, etc.) to delegate token-heavy I/O (bulk file reading/code analysis) and repetitive boilerplate generation (tests, mocks, stubs, configs) to fast, economical, or local worker models (Gemini 2.5 Flash, Groq/Llama, Ollama, DeepSeek, GPT-4o-mini). This cuts primary agent token consumption by up to 90% while keeping the main context window clean.
urllib, json, re, argparse). No pip install, no virtual environment, and no npm required.gemini-2.5-flash, llama-3.3-70b-versatile, gpt-4o-mini).qwen2.5-coder:latest, gemini-2.5-flash, deepseek-chat).stdin, allowing analysis of hundreds of thousands of lines without buffer overflows.bulk_read payload exceeds the direct limit (SHUNT_MAX_DIRECT_TOKENS, default ~200k tokens), Model-Shunt automatically splits the corpus into chunks, maps the question over each chunk (preserving absolute N| line numbers), and reduces the extracts into one cited answer. Giant single-line files (minified JSON/JS) are sliced by characters with explicit position markers. Rate-limit pacing waits out provider quota windows instead of failing.model-shunt/
├── src/model_shunt/ │ ├── worker.py # Universal LLM worker engine with model discovery (zero-deps) │ └── server.py # Stdio MCP server exposing routing tools ├── bin/model-shunt.js # npm/npx launcher shim (requires local Python 3) ├── plugin/ │ ├── .claude-plugin/ # Plugin manifest for hook-compatible agents │ ├── hooks/ # PreToolUse interceptor hooks (check-file-size, check-bash-read) │ ├── scripts/ # Executable streaming CLIs (bulk-read, code-write) │ └── skills/ # Agent skill manifests (/bulk-reader, /code-writer) ├── pyproject.toml # PyPI packaging (uvx / pip install) ├── package.json # npm packaging (npx) ├── config.example.json # Configuration template ├── test_shunt.py # Automated test suite └── .gitignore # Credential and cache protection
Configure your worker model via environment variables or a config.json file (placed in ~/.config/model-shunt/config.json or in the project root):
config.json{
"provider": "gemini", "model": "auto", "timeout": 90, "max_tokens": 8192 }
Tip: Setting
"model": "auto"(or passing--auto-modelin the CLI) will automatically inspect the provider's active models and pick the optimal one for reading vs writing.
Security: Do not put your API key in
config.json— use environment variables instead (e.g.GEMINI_API_KEY,GROQ_API_KEY, orSHUNT_API_KEY). Anapi_keyfield exists as a last-resort fallback, but keeping secrets out of files is strongly recommended.
# Google Gemini (Recommended: 1M token context, high speed, ultra-low cost)
export SHUNT_PROVIDER="gemini" export GEMINI_API_KEY="your-api-key"
export SHUNT_PROVIDER="groq" export GROQ_API_KEY="your-api-key"
export SHUNT_PROVIDER="ollama" export SHUNT_BASE_URL="http://localhost:11434/v1"
export SHUNT_PROVIDER="deepseek" export DEEPSEEK_API_KEY="your-api-key"
Model-Shunt provides a standard stdio MCP server exposing three tools:
name (N|k) is dropped when source line k does not contain that name.target_path is omitted; otherwise creates missing parent directories and writes the code, overwriting an existing target file.bulk_read sends the selected files and question to the configured worker provider; code_write sends the specification and reference file. The provider can be remote or local (such as Ollama). Token savings depend on the input and response.
The MCP server runs locally over stdio. Set provider credentials through environment variables. File access follows resolved paths, so symlinks pointing outside the allowed workspace roots are rejected. Invalid requests return structured errors and leave the server available for subsequent calls.
MCP Registry name: mcp-name: io.github.yasmanycastillo/model-shunt
Universal one-liner (detects uv / pip / pipx / npm, installs the model-shunt command, and registers it with Claude Code if present):
curl -fsSL https://yasmanycastillo.github.io/model-shunt/install.sh | bash
Manual alternatives:
claude mcp add model-shunt -- uvx model-shunt # if you have uv
claude mcp add model-shunt -- npx -y model-shunt # if you have Node + Python
Any MCP client (Cursor, Windsurf, Antigravity, Claude Desktop, etc.) — add to its MCP settings. No clone, no absolute paths:
{
"mcpServers": { "model-shunt": { "command": "uvx", "args": ["model-shunt"], "env": { "SHUNT_PROVIDER": "gemini", "SHUNT_MODEL": "auto", "GEMINI_API_KEY": "your-api-key" } } } }
Fallback (offline / no uv / no npx): run straight from a clone with Python 3.9+ — replace
"command"/"args"with"command": "python3", "args": ["/absolute/path/to/model-shunt/src/model_shunt/server.py"].
Security: by default
bulk_read/code_writeonly operate on files inside the server's working directory (the agent workspace). SetSHUNT_ALLOWED_ROOTS(PATH-style list) to expand the sandbox.
| Variable | Default | Purpose |
|---|---|---|
SHUNT_MAX_DIRECT_TOKENS | 200000 | Payloads above this estimated size switch to map-reduce |
SHUNT_CHUNK_CHARS | 600000 | Chunk size in characters (~150k tokens) |
SHUNT_CHUNK_RETRIES | 3 | Retries per chunk on rate limits |
SHUNT_CHUNK_RETRY_DELAY | 60 | Seconds to wait out a provider quota window (free-tier TPM) |
For agents supporting pre-execution hooks (e.g., Claude Code, custom agent loops):
SHUNT_MIN_LINES), the hook blocks the call and instructs the agent to delegate to bulk-read.offset and limit are allowed, preserving surgical context for code editing.cat, less, or more on large files directly in the terminal context.You can also use Model-Shunt directly from the command line or from agent bash sessions:
python3 src/model_shunt/worker.py --list-models --provider gemini
./plugin/scripts/bulk-read \
--question "How does the token refresh cycle work?" \ --paths src/auth.py src/tokens.py \ --auto-model
./plugin/scripts/code-write \
--spec "Create unit tests for the BillingService covering charge and refund" \ --reference tests/test_user.py \ --target tests/test_billing.py \ --auto-model
Run the built-in test suite to verify your environment:
python3 test_shunt.py
The test suite validates:
MIT. Inspired by Spotify Engineering's Shunt architecture.
See PRIVACY.md for filesystem scope, provider data handling, and credential practices.