Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Structural code intelligence over MCP: symbols, callers, imports and blast radius, 40+ languages.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
CODEINDEX_WORKSPACE, CODEINDEX_NO_DAEMON, CODEINDEX_DAEMON_IDLE_SECSต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"codeindex": {
"command": "npx",
"args": [
"-y",
"@munhq/codeindex"
],
"env": {
"CODEINDEX_WORKSPACE": "ใส่ค่าของคุณ",
"CODEINDEX_NO_DAEMON": "ใส่ค่าของคุณ",
"CODEINDEX_DAEMON_IDLE_SECS": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add codeindex --env CODEINDEX_WORKSPACE='ใส่ค่าของคุณ' --env CODEINDEX_NO_DAEMON='ใส่ค่าของคุณ' --env CODEINDEX_DAEMON_IDLE_SECS='ใส่ค่าของคุณ' -- npx -y @munhq/codeindexเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"codeindex": {
"command": "npx",
"args": [
"-y",
"@munhq/codeindex"
],
"env": {
"CODEINDEX_WORKSPACE": "ใส่ค่าของคุณ",
"CODEINDEX_NO_DAEMON": "ใส่ค่าของคุณ",
"CODEINDEX_DAEMON_IDLE_SECS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"codeindex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@munhq/codeindex"
],
"env": {
"CODEINDEX_WORKSPACE": "ใส่ค่าของคุณ",
"CODEINDEX_NO_DAEMON": "ใส่ค่าของคุณ",
"CODEINDEX_DAEMON_IDLE_SECS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
CODEINDEX_WORKSPACE envCODEINDEX_NO_DAEMON envCODEINDEX_DAEMON_IDLE_SECS envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub munhq ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.2) เข้า registry 3 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Dechonet 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.
30 security tools for AI agents: phishing links, exposure maps, DNS, SSL, PQC, history, pivots.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A structural code intelligence engine that runs as an MCP server for AI coding agents.
It indexes your codebase with tree-sitter (40+ languages), builds a trigram full-text index, an inverted word index, and a dependency graph — then exposes them through 16 MCP tools.
┌─────────────┐ MCP (stdio) ┌───────────┐ ┌──────────────────┐
│ AI Agent │ ◄─────────────► │ codeindex │ socket │ codeindex daemon │ │ (Claude, │ 16 tools, │ (relay) │ ◄────────► │ one per │ │ Cursor…) │ JSON-RPC └───────────┘ │ workspace │ └─────────────┘ └────────┬─────────┘ ┌─────────────┐ MCP (stdio) ┌───────────┐ │ │ AI Agent │ ◄─────────────► │ codeindex │ ◄───────────────────┘ │ (session 2)│ │ (relay) │ tree-sitter parse (40+ langs) └─────────────┘ └───────────┘ trigram + word index dependency graph one file watcher snapshot persistence
Every session on a repository speaks plain stdio MCP, as before. Behind that, they share one index: the tree is parsed once, watched once and written once, however many agents are attached. Eight sessions on one repository used to be eight copies of the same index, eight file watchers and eight writers of the same snapshot; measured on a 720-file project, each session went from 87 MB to 7 MB, against one shared 77 MB daemon.
AI coding agents spend tokens reading entire files. codeindex answers structural questions — symbol outlines, definitions, callers, blast radius, dependency chains — in a few hundred tokens instead of thousands.
One plan_change call returns: where a symbol is defined, every call site, the file's architectural role (god module / stable core / island / driver), hardcoded literals to check, and the full transitive blast radius if the file changes.
The shortest path, if you have Node 18+. Nothing else to install, no key, no config — the package is a 4 KB wrapper that fetches the binary for your platform and verifies it against the published checksums:
claude mcp add codeindex -- npx -y @munhq/codeindex
No Node, or you want the skill and the hook as well:
# Prebuilt binary + skill + MCP registration, in one command
curl -fsSL https://raw.githubusercontent.com/munhq/codeindex/main/install.sh | sh
cd zig && ./fetch-vendor.sh && zig build -Doptimize=ReleaseFast
Docker, for hosts that install MCP servers as images. The workspace is bind-mounted read-only; codeindex never writes to it:
docker run -i --rm -v "$PWD:/workspace:ro" munhq/codeindex
Register with your AI agent:
# Claude Code — the plugin is the one-step path. It ships the skill, both
claude plugin marketplace add munhq/codeindex claude plugin install codeindex@codeindex
claude mcp add -s user codeindex -- ~/.local/bin/codeindex --mcp
{ "mcpServers": { "codeindex": { "command": "npx", "args": ["-y", "@munhq/codeindex"] } } }
Every listing points at the same server: npm @munhq/codeindex, the official MCP registry as io.github.munhq/codeindex, and Smithery as munhq/codeindex.
The next time your agent starts, codeindex indexes your project in the background and serves structural queries.
| Tool | What it does |
|---|---|
status | Index stats: file count, symbol count, indexing state, token savings %, the indexed workspace and whether a watcher is live |
search | Trigram-accelerated full-text search across all indexed files |
find_symbol | Find symbol definitions (functions, structs, classes…) by name |
find_word | Exact word/identifier lookup in the inverted word index |
find_callers | Call sites of a symbol, each with the function that holds it. Matched by name, so a same-named definition elsewhere is included |
get_outline | Structural outline of a file (symbols, line counts) |
get_tree | Directory tree with file metadata |
get_imports | What files does a given file import/depend on |
get_imported_by | Reverse dependencies — who imports this file |
get_change_impact | Transitive blast radius: what breaks if a file changes |
plan_change | Full refactor plan for a symbol or file — definitions, callers, file role, literals, blast radius |
get_hot_files | Recently changed files sorted by recency |
read_file | Read file contents with optional line range |
read_symbol | Read just a symbol's source code (with optional context lines) |
index_workspace | Index or re-index a project directory; a session that works in another checkout moves to that checkout's index |
analyze | Run one of 22 code analyses (see below) |
analyze tool)| Analysis | What it finds |
|---|---|
security | Hardcoded secrets, SQL injection patterns, unsafe blocks, eval usage |
dead_code | Symbols nothing names outside their own definition, split from the unused public API of a library package |
unwrap_audit | .unwrap() / expect / panic! sites (Rust), ranked by whether a request handler, a loop or main reaches them |
test_coverage | Files without test coverage |
architecture | Architectural smells — god modules, circular deps, islands |
crossref | Cross-file symbol references |
type_drift | Type signature mismatches across modules |
db_schema | Tables the migrations create that no code names, and SQL ORM models no migration creates |
migration_parity | Missing migrations for schema changes |
manifest_compliance | package.json / Cargo.toml / go.mod compliance issues |
literal_scan | Hardcoded URLs, IPs, ports, absolute paths, TODOs |
coupling | Module coupling metrics |
cycles | Circular dependency detection |
duplication | Reinvented free functions — the same job written twice |
clones | Copy-pasted function bodies, ignoring names and whitespace |
spawn_scan | An interpreter started on a loop or a timer, across files, ranked by startup cost times spawn rate |
deps | Dependency inventory — duplicate versions, unreferenced crates, single-use crates |
leak_shapes | Shapes a leak has, each paired with the runtime series that decides it |
logic_shapes | A fixed byte constant against the memory limit of the unit that deploys it, and replicas × pool size against a pooler's connection capacity |
call_cost | Loops over rows ranked by the database and HTTP round trips each element costs, counted through the call graph |
field_contention | One declared-state field written by two or more owners |
health | Roll-up of the analyses above into one index-health report |
40+ languages via tree-sitter: Rust, Python, TypeScript/TSX, Go, Zig, C, C++, Java, Ruby, Bash, C#, Kotlin, Lua, Scala, Elixir, R, Swift, Dart, Haskell, TOML, JSON, YAML, HTML, CSS, SCSS, SQL, HCL, Dockerfile, Markdown, Nix, Make, and more.
codeindex --mcp # Run as MCP server (stdio)
codeindex --mcp --no-daemon # ...without sharing the workspace daemon codeindex --daemon-idle-secs 0 # Keep the daemon resident indefinitely codeindex --workspace ./my-project # Index a specific directory codeindex --project-id my-project # Project identifier codeindex -v # Print version codeindex -h # Print help
CODEINDEX_WORKSPACE=/path/to/project # Same as --workspace CODEINDEX_PROJECT_ID=my-project # Same as --project-id
A server that registers without telling an agent when to reach for it stays idle, and an idle index saves nothing however cheap its calls are. The plugin ships three things for that, in the order they act:
Bash as well as Read/Grep/Glob, because a permission mode that routes file work through the shell is where most scans actually happen.Advice loses to habit, so the narrow case where the index is strictly better is refused rather than argued with: an identifier search that is the whole command line, in a project that has been indexed before. It never refuses a file read — the bytes are required before an Edit — never refuses a line that also builds or tests, and stops refusing after three times in a session, so it can never be the reason a session cannot proceed.
That is on by default, and it is one switch to turn off — no file to edit by hand. It is a plugin option, so /plugin shows it as "Refuse a scan the index answers better" and Claude Code passes your answer to the hook. Outside the plugin, or for a single session, CODEINDEX_ENFORCE=0 in the environment overrides the option and CODEINDEX_ENFORCE=1 restores it.
Measure the effect rather than assuming it: python3 plugin/measure_routing.py counts, per session, how many code questions went to a scan and how many went to the index, across every Claude Code home on the machine.
In --mcp mode the working directory belongs to the client, not to you, and it is regularly not your project: Claude Code launches a plugin's MCP server from the plugin's own directory and a user-scope server from its config directory. So the workspace is resolved in this order, and the first usable answer wins:
--workspace or CODEINDEX_WORKSPACE. An explicit answer is never overridden.CLAUDE_PROJECT_DIR, which Claude Code sets in every MCP server it spawns..git, `package.jsoตัดมาแค่ช่วงต้น อ่านต่อใน repo