
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 分