Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Finds what will hurt in a Django project: cascades, N+1, unsafe migrations, tenant leaks.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULEต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"django-chainsaw": {
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "ใส่ค่าของคุณ",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add django-chainsaw --env DJANGO_CHAINSAW_PROJECT_PATH='ใส่ค่าของคุณ' --env DJANGO_CHAINSAW_SETTINGS_MODULE='ใส่ค่าของคุณ' -- uvx django-chainsaw-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"django-chainsaw": {
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "ใส่ค่าของคุณ",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"django-chainsaw": {
"type": "stdio",
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "ใส่ค่าของคุณ",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub syrian963 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULE
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.5) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, 好縮 Short
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.
Smart URL shortener: create, tag and track short links on s.gooo.name.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP server and CLI that analyses a Django project rather than describing it. Not *what is in here* — *what will hurt*: what a delete takes with it, which migration breaks the pods still running, which query returns another tenant's row, what a save() sets off three hops away.
There is no model in the loop. Every answer comes from the AST and Django's own app registry, so the same input gives the same output, and nothing leaves the machine. It is an MCP server so an assistant can ask it questions, and a CLI so CI can gate on the answers.
22 checks: 19 need the app registry (16 Django, three of those DRF as well), one needs only Python, one reads FastAPI, one reads SQLAlchemy. [Why this exists →](docs/why.md)
It has to run in an interpreter that can import your project. Everything here reads the app registry, which means django.setup(), your settings and your apps:
/path/to/project/.venv/bin/python -m pip install django-chainsaw-mcp
A plain uvx django-chainsaw-mcp starts and then fails every check, because uvx gives it an isolated environment with no trace of your project. To avoid installing, hand uv the dependencies instead:
uvx --with-requirements requirements.txt --from django-chainsaw-mcp django-chainsaw check
Two environment variables point it at the project:
| Variable | Example |
|---|---|
DJANGO_CHAINSAW_PROJECT_PATH | /srv/app — the directory settings are importable from |
DJANGO_CHAINSAW_SETTINGS_MODULE | myproject.settings |
django-chainsaw project-info proves the setup before anything else, and says which half is missing. [Five minutes end to end →](docs/quickstart.md)
mcp-name: io.github.syrian963/django-chainsaw-mcp
django-chainsaw check --tenant-root myapp.Organisation
44 finding(s): 1 critical, 14 high, 29 medium
CRITICAL
[deploy-safety] RemoveField drops 'legacy_code' while code still uses it shop/0002_remove_product_legacy_code During a rolling deploy the old pods keep running against the new schema and will fail. fix: Ship a release that stops using it, deploy that everywhere, then ship this migration.
Every analysis, merged, worst first, one exit code.
This is the part that decides whether a tool like this survives. Point tenancy at a five year old project and it returns two hundred candidates; nobody reads two hundred candidates, somebody adds continue-on-error, and it runs forever with nobody looking.
django-chainsaw tenancy --since main # only what this branch changed
django-chainsaw tenancy --baseline # everything old, ratcheted django-chainsaw check --sarif out.json # annotate the diff, on the line
--since compares at the merge base, so a branch that is behind main is not blamed for other people's work. --baseline keeps existing findings in the report and stops them blocking; anything new fails the build, and fixing an old one is reported so the number only ever goes down. Findings are fingerprinted on file plus identity, never the line, so adding an import does not resurrect twenty findings nobody touched.
--sarif writes the format GitHub and GitLab annotate a pull request with, so findings land on the line instead of in a log nobody opens.
[baseline.md](docs/baseline.md) · [cli.md](docs/cli.md)
claude mcp add django-chainsaw --scope local \
--env DJANGO_CHAINSAW_PROJECT_PATH=/srv/app \ --env DJANGO_CHAINSAW_SETTINGS_MODULE=myproject.settings \ -- /srv/app/.venv/bin/python -m django_chainsaw_mcp.server
Ask it project_info first: the smallest call that proves both the transport and the Django boot. Five prompts carry the ordering the tools do not — before_deploy, why_is_this_slow, what_breaks_if_i_delete, triage, review_this_branch.
[Claude Desktop, Cursor, VS Code, Windsurf, Zed, Docker →](docs/clients.md)
django-chainsaw report --out findings.html --title myproject
Grouped by endpoint is the view that matters: which pages carry this, and through what call path. No server, no network, no build step — the CSS, the script and the data are all in the file, so it works from a CI artifact or an email attachment. [report.md](docs/report.md)
Django projects — these read the app registry, so they need DJANGO_CHAINSAW_SETTINGS_MODULE as well as the project path
| Tool | Answers |
|---|---|
project_info | Does the target project load at all? Run this first when something is broken. |
list_models | Every model with fields, relation kind, direction and on_delete. |
delete_impact | Delete one row: what cascades, what blocks, what gets nulled. Transitive. |
find_n_plus_one | Relation traversals in a template that each cost a query, and the fix. |
scan_templates | The same across a directory, resolving context from views. |
migration_risk | Migrations rated: blocks writes, rewrites the table, breaks running code. |
deploy_safety | Is this destructive migration safe to ship yet? |
find_unscoped_queries | Which queries read data the caller may not own? The IDOR shape. |
what_happens_on | What does this save actually trigger? Follows the signal chain. |
missing_indexes | Fields the code filters or sorts on that carry no index. |
datetime_audit | Naive datetimes and field defaults that break when the clock moves. |
serializer_exposure | What DRF serializers expose, including what the next migration will add. |
serializer_nplusone | N+1 in DRF serializers, which is where it lives in an API project. |
explain_model | Everything about one model, plus the risks only visible combined. |
endpoint_cost | How many queries one request costs, before anybody sends one. |
api_contract / api_contract_check | What this branch changes about the API, and who it breaks. |
escaping_side_effects | Mail and tasks fired inside a transaction that can still roll back. |
bypassed_effects | Bulk writes that skip everything the save() chain promised. |
race_conditions | Counters read into Python, changed, and saved. Also unsafe upserts. |
money_precision | Where a decimal amount stops being exact. |
celery_arguments | What the worker actually receives, and whether it can even be called. |
queries_in_loops | Queries written inside a loop, split by which of three fixes applies. |
defeated_prefetches | Prefetches paid for and then re-queried by the accessor that reads them. |
request_impact | Every finding grouped by the entry points that reach it, so the question becomes which endpoint to fix. |
choice_typos | Literals a field's choices will never match: valid SQL, zero rows, no exception. |
multiplied_aggregates | Counts and sums multiplied by a join across two multi-valued relations. |
dangling_references | URL names, templates, signal senders and Celery tasks nothing will resolve. |
open_endpoints | Sensitive fields on endpoints anybody can call. |
unused_eager_loading | Joins and prefetches nothing in the response reads. |
check | Run everything that applies, one severity-sorted list, one exit code. |
suggest_fixes | Findings turned into code, grouped by how safe each one is to apply. |
Any Python project — no Django, no settings module
| Tool | Answers |
|---|---|
project_profile | What is this built on? Counted from the project's own imports. |
blocking_in_async | Which synchronous call stops the event loop for every request? |
fastapi_exposure | Endpoints that serialise more than they declare. |
sqlalchemy_nplusone | Relationships loaded one row at a time, including during serialisation. |
amplification | Which endpoint can a stranger use to exhaust the database? |
Plus the resource django://models. check profiles the project first and runs what applies, and says "does not apply, and here is why" for the rest — silence would read exactly like a clean result. Nothing about the FastAPI support imports the project, so those checks run on a checkout with no dependencies installed at all.
36 of the 37 tools declare readOnlyHint, so a client can stop asking permission for each call; the exception is api_contract_check with update=True, which writes the snapshot and says so. [Every tool, argument and output shape →](docs/tools.md)
Nothing here executes the target project or reads its data, which buys safety and speed and costs certainty. Every tool states its own blind spots in its own output:
delete_impact does not run signals or custom delete() overrides.find_n_plus_one reports candidates; it reads the template and the model graph, not the queryset in the view.migration_risk does not know row counts, PostgreSQL version, or deploy strategy.deploy_safety cannot see getattr(obj, name), runtime SQL, or another repository. CLEAR means nothing was found here.A confident wrong answer is worse than an incomplete one. In this kind of tooling the failure mode is not a crash, it is a plausible sentence that sends someone in the wrong direction. [limitations.md](docs/limitations.md)
It imports the target project. django.setup() imports your settings and every app in INSTALLED_APPS, and the checks additionally import the modules that declare serializers, views and URLs — so anything those do at import time happens. Do not point this at code you would not run.
It does not run your application: no view, no task, no management command. One check reads the database, read-only — MigrationLoader reads django_migrations, and nothing is written. It writes files only when you ask: fix --write applies the mechanical class of fix only, and a baseline, a contract snapshot or --sarif write where you tell them to. Nothing leaves the machine — no network calls, no telemetry, no uploads.
[SECURITY.md](SECURITY.md)
[docs/](docs/README.md) is the index.
why.md | why this exists, three checks worth reading about, and the bar a new one clears |
quickstart.md | five minutes from clone to first finding |
usage.md | installing against a real project, Docker, troubleshooting |
clients.md | Claude Code, Cursor, VS Code, Windsurf, Zed |
cli.md | commands, exit codes, CI |
ตัดมาแค่ช่วงต้น อ่านต่อใน repo