
DevDoctor
io.github.Bannawat01由 GitHub 帳號 Bannawat01 發布v0.1.2更新於 Nov 8, 2026
Read-only local diagnostics for Rust, Node, Docker, ports, and environment configuration.
概覽
唯讀的本機診斷伺服器,讓助理檢查專案的 Rust、Node、Docker、連接埠與環境設定並解釋診斷結果。
- 可以做什麼
- 診斷本機專案目錄並回報健康問題
- 檢查已安裝的工具鏈與環境設定
- 檢查設定的本機 TCP 連接埠,並在系統支援時辨識占用行程
- 檢查 Docker Compose 服務中已結束或不健康的容器
- 依診斷代碼解釋某項具體發現
- 適用情境
- 適合在助理需要排查本機專案為何無法建置或執行時使用,也可用來核對工具鏈與環境設定,或確認預期連接埠與 Docker 服務是否處於健康狀態,且不變更任何內容。
- 執行需求
- 以本機 stdio 行程執行;需從 crates.io(Cargo)安裝 devdoctor-mcp 執行檔,或使用 Windows 發行版執行檔,並在用戶端填入其絕對路徑。只接受已存在的本機目錄。Docker 相關結果需要可連線的 Docker 引擎。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DevDoctor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
DevDoctor
mcp-name: io.github.Bannawat01/devdoctor
Local, read-only diagnostics for Rust, Node, Docker, ports, and environment configuration.
Licensed under MIT or Apache-2.0, at your option.
Run
Exit codes: 0 healthy, 1 diagnostic errors/warnings, 2 invalid invocation or inspection failure.
MCP / Zed
Build the release server, then add it in Zed: Settings → AI → MCP Servers → Add Local Server.
The stdio server exposes diagnose_project, check_toolchain, check_environment, check_ports, and explain_finding. It accepts only local existing directories and never runs repository scripts or changes environment state.
Registry preparation and the publishing checklist are documented in docs/zed-mcp-registry.md. devdoctor-mcp 0.1.2 is published on crates.io and listed as io.github.Bannawat01/devdoctor in the official MCP Registry.
The minimal Zed extension source is in zed-extension/. It delegates to a separately installed devdoctor-mcp binary on PATH; it is not yet published or verified in the Zed Agent UI.
docs/zed-mcp.json is a portable template. Replace its command value with the absolute path to your own devdoctor-mcp.exe; it never points to the author's machine.
Docker diagnostics are read-only. When a Compose project is detected and the Docker engine is reachable, DevDoctor inspects docker compose ps --all and reports services that are exited or unhealthy. It never starts, stops, restarts, or removes containers. An unavailable engine is reported separately from a service failure.
Windows binary
Download devdoctor-windows-x86_64.zip from the GitHub prerelease, extract it, and run devdoctor.exe doctor --path <project>. Verify the accompanying SHA-256 checksum before use.
The ready-to-copy local configuration is also in docs/zed-mcp.json. In Zed, open Settings → AI → MCP Servers → Add Local Server, then confirm the server is active before asking the Agent to run diagnose_project.
Privacy
DevDoctor makes no cloud calls or environment changes. Values from .env and URLs are redacted; output contains variable names and safe endpoint metadata only.
Port ownership scope
When a configured local TCP port is occupied, DevDoctor may add the owning PID and process name to the port finding. On Windows this uses GetExtendedTcpTable with AF_INET; on Linux it reads /proc/net/tcp and process file descriptors. IPv6 ownership is not currently implemented, so an occupied IPv6 listener may have no owner evidence.
Executable metadata may be queried internally when the operating system permits it. Full executable paths are deliberately withheld from CLI and MCP findings; only executable_path_available=true|false is exposed. Permission restrictions and unsupported platforms preserve the port conflict finding without terminating or modifying processes.
來源:README.md,提交 1229734
工具
0版本歷史
1- v0.1.2最新Nov 8, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
