Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Python code intelligence for coding agents: call paths, control flow, and change impact.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"codecanvas": {
"command": "uvx",
"args": [
"codecanvas-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add codecanvas -- uvx codecanvas-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"codecanvas": {
"command": "uvx",
"args": [
"codecanvas-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"codecanvas": {
"type": "stdio",
"command": "uvx",
"args": [
"codecanvas-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub donggyun112 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.20) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, FlyDocs
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.
Spec-driven development workflow: your agent works issues, sessions and the status lifecycle.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Understand an unfamiliar Python system before spending thousands of tokens reading it file by file.
CodeCanvas is a local static-analysis Model Context Protocol server for Python. It turns project-wide call paths and control flow into compact, citation-ready answers about branches, callers, callees, side effects, and change impact.
The benchmark now spans pinned revisions of Google ADK, LangGraph, and FastAPI. On an Apple M4 Pro, measured cold analysis ranged from 4.38s to 61.62s, and median warm find_symbols latency ranged from 48.264ms to 293.778ms across those repositories. In a controlled 54-session agent suite, both conditions kept the same built-in code-search tools; the treatment added only logic_flow. That single addition used a median 22.95% fewer total tokens across three paired repetitions, demonstrating meaningful incremental value on top of ordinary code exploration. Uncached tokens increased by 0.78%, and the answers are not yet blind-graded. See the methodology, full tables, and limitations.
Use it to answer questions such as:
CodeCanvas is Python-only and requires Python 3.10 or newer.
Ask one question:
Use logic_flow on UserService.update_user. Show its branches, outcomes,
downstream effects, and evidence quality.
Excerpt from the actual response on the included FastAPI sample:
{
"function": "app.services.user_service.UserService.update_user", "source": "app/services/user_service.py:13", "flow": [ "15 user = await self.user_repo.find_by_id(...)", "16 if user is None:", "17 → return None", "18 → return await self.user_repo.update(user_id, user)" ], "outcomes": [ {"at": 17, "detail": "None", "guards": ["user is None"]}, {"at": 18, "detail": "await self.user_repo.update(user_id, user)", "guards": []} ], "downstream": [ { "function": "app.repositories.user_repo.UserRepository.find_by_id", "location": "app/repositories/user_repo.py:13", "effects": ["db"] }, { "function": "app.repositories.user_repo.UserRepository.update", "location": "app/repositories/user_repo.py:18", "effects": ["db"] } ], "evidence_grade": "inferred", "safe_to_summarize": false, "response_guidance": "Do not turn inferred call edges into unconditional claims." }
That single response exposes the early return, success path, downstream database work, exact source locations, and how cautiously the agent may summarize the result.
Install uv if uvx is not already available. The repository includes one shared plugin package with native manifests for both Claude Code and Codex. Install it from the CodeCanvas marketplace:
# Claude Code
claude plugin marketplace add donggyun112/codecanvas claude plugin install codecanvas@codecanvas
codex plugin marketplace add donggyun112/codecanvas codex plugin add codecanvas@codecanvas
Both plugins start uvx codecanvas-mcp and expose the complete tool catalog. See the plugin package for local-checkout testing and validation commands.
If your client does not support plugins, register the server directly. For Claude Code:
claude mcp add codecanvas -- uvx codecanvas-mcp
That command exposes the complete tool catalog. Keep the full catalog enabled when your MCP client supports on-demand tool discovery or tool search: the client can load the relevant schemas only when they are needed, so the other CodeCanvas tools remain available without paying their schema cost on every model request.
[mcp_servers.codecanvas]
command = "uvx" args = ["codecanvas-mcp"]
If your client eagerly injects every enabled tool schema into every model request, use this compatibility profile instead:
[mcp_servers.codecanvas]
command = "uvx" args = ["codecanvas-mcp"] enabled_tools = ["logic_flow", "who_calls", "call_tree"]
The three-tool allow-list is a fallback for eager-schema clients, not a recommendation to discard the rest of CodeCanvas. For another MCP client, use the equivalent stdio configuration:
{
"mcpServers": { "codecanvas": { "command": "uvx", "args": ["codecanvas-mcp"] } } }
Pass an absolute project_path on the first tool call. CodeCanvas remembers the last explicitly selected project for the rest of the server session.
With the complete catalog enabled, project_status reports candidate analysis roots for nested Python projects. Compact-profile users should pass the intended nested root explicitly.
Adding tools does not guarantee that an agent will choose them at the right time. Put a short instruction like this in AGENTS.md, CLAUDE.md, or the equivalent file used by your coding agent:
## Code analysis
Use CodeCanvas before text search when you need to know:
Pass project_path once, then reuse the active project. Treat safe_to_summarize: false, inferred edges, ambiguity, and truncation as qualifications rather than unconditional facts.
Start with logic_flow. Use who_calls for upstream impact and call_tree for a deeper downstream trace.
Then ask your agent naturally:
Use logic_flow first to understand checkout without repeated source searches.
What calls UserService.update_user, up to three hops? What does checkout reach downstream, including HTTP or database effects?
With the complete catalog enabled, CodeCanvas can also answer:
List the entrypoints in this project.
Under exactly what conditions can authenticate raise? Verify that dry-run publish reaches _call_api. Analyze the impact of the current diff.
CodeCanvas complements both. It is for behavioral questions that otherwise require repeated searches and manual reconstruction.
| Need | grep | LSP | CodeCanvas |
|---|---|---|---|
| Exact text | Best fit | Not its job | Keep using grep |
| Definitions and direct references | Manual | Best fit | Resolves symbols inside structural results |
| Transitive callers and callees | Repeated manual hops | References are not a call path | Bounded upstream and downstream graphs |
| Branch guards and outcomes | Read and reconstruct source | Usually not modeled | Structured flow and guarded returns/raises |
| Side effects and change impact | Infer manually | Usually not modeled | Effects attributed through call paths and entrypoints |
| Uncertainty | No confidence model | Resolution-dependent | Evidence grade, ambiguity, truncation, and guidance |
Static analysis is not runtime truth, so CodeCanvas makes uncertainty visible instead of hiding it.
Every successful MCP response identifies the selected analysis_root and includes metadata that helps an agent decide how strongly it may state the result:
evidence_grade describes the strength of the resolved evidence.inferred_edge_count and ambiguous_calls expose uncertain call edges.truncated says whether the bounded response omitted results.safe_to_summarize says whether the result supports an unconditional claim.response_guidance explains how to qualify a result when it does not.verify_claim goes further by combining candidate call paths with branch and return/raise guards. It returns true, false, or uncertain; unsupported qualifiers and inferred-only paths cannot silently become a definite true.
| Tool | Use it for |
|---|---|
project_status | Inspect the active root, Python file count, cache, worker interpreter, and nested project candidates |
list_entrypoints | Find FastAPI routes, scripts, function entrypoints, and distributed library exports |
find_symbols | Locate functions, methods, and classes with exact-first name, semantic, or hybrid search |
logic_flow | Get one compact, citation-ready view of a function's branches, outcomes, downstream calls, and effects |
what_does | Triage a function from its signature, docstring, calls, effects, exceptions, and direct risk |
function_flow | Inspect a structured branch tree with subjects, conditions, scopes, and nesting |
reaching_conditions | Get the enclosing guards for each return or raise, plus complexity and unreachable code |
| Tool | Use it for |
|---|---|
who_calls | Walk direct or transitive callers upstream |
call_tree | Walk project-internal callees downstream and attribute direct/transitive effects |
verify_claim | Conservatively check a qualified source reaches target claim against paths and guards |
analyze_impact | Map an inline diff or git ref to changed functions and affected entrypoints/public surfaces |
| Tool | Use it for |
|---|---|
validate_state_schema | Compare a function's state reads, writes, and mapping returns with a caller-provided schema |
simulate_state_transition | Execute focused generated or explicit state cases with invariants and dependency overrides |
Large result sets are capped. Use each tool's filter, kind, path, depth, or pagination arguments to narrow the answer before treating it as complete.
Depends() chains, scripts, generic function entrypoints, and package exports. /.codecanvas/; an in-process builder is reused during the MCP session.The default analysis limit is 5,000 Python files. Tune large-project behavior with:
| Variable | Default | Description |
|---|---|---|
CODECANVAS_MAX_FILES | 5000 | Maximum Python files to analyze |
CODECANVAS_BATCH_SIZE | 50 | Files processed before yielding |
CODECANVAS_THROTTLE_MS | 10 | Delay between batches in milliseconds |
.codecanvas/ cache. No remote CodeCanvas service is required.simulate_state_transition is different: it imports and executes trusted project code in a separate process. It is isolation for focused repros, nตัดมาแค่ช่วงต้น อ่านต่อใน repo