构建 Unblocker MCP
用于 Cursor IDE 的模型上下文协议 (MCP) 服务器,用于终止挂起的 Windows 构建可执行文件。
特征
监视指定的构建过程(
cl.exe、link.exe、msbuild.exe等)终止空闲的进程(CPU 使用率低于 1%),空闲时间可配置(默认 90 秒)
为 Cursor IDE 提供工具(
unblock_build)来触发解除阻塞过程
Related MCP server: Cursor DB MCP Server
安装
确保您已安装 Python 3.11 或更高版本。
使用 pipx 安装(推荐用于 CLI 工具):
pipx install .或者使用 pip:
pip install .
光标集成
将以下内容添加到您的 Cursor IDE 设置( settings.json )中:
{
"mcpServers": {
"build-unblocker": {
"command": "unblock-build-mcp"
}
}
}
本地烟雾测试
您可以手动运行该工具来测试它(使用--dry-run来避免终止进程):
pipx run unblock-build-mcp --idle-seconds 5 --dry-run
持续集成
(将
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。