Token导航 LogoToken导航TokenDH.com
MCP Build Verifier logo
运维云端未说明官方级别未说明来源级核验

MCP Build Verifier

MCP Server

一个确定性的MCP服务器,用于执行构建/测试命令、捕获日志并报告第一个相关错误(如果有的话),不修改代码或尝试修复。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
TypeScript日志分析云端部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

cicarulez

提供方

cicarulez

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp构建验证器

确定性MCP服务器,执行构建/测试命令,捕获日志,并报告第一个相关错误(如果有的话)。它不会修改代码或尝试修复。

特性

  • MCP stdio服务器(TypeScript SDK)
  • run_build 执行命令的工具
  • analyze_logs 保守日志解析工具
  • 中立、确定性、只读行为

需求

  • Node.js 18+

设置

npm install
npm run build

运行(stdio)

npm start

与Codex一起使用

将服务器添加到Codex配置中(示例 ~/.codex/config.toml):

[mcp_servers.build_verifier]
command = "node"
args = ["/home/cicarulez/projects/mcp-build-verifier/dist/index.js"]

[mcp_servers.build_verifier.env]
MCP_TRANSPORT_TYPE = "stdio"

然后重新启动Codex会话,以便加载工具。

推荐流量(代理)

MCP服务器仅公开两个工具:

  1. run_build
  2. analyze_logs

推荐药剂流量:

  1. 如果(且仅当)任务修改了目标项目中的文件,请调用 run_build 随着 command 和项目 cwd.
  2. 通过 stdoutstderr 从结果到 analyze_logs.
  3. 仅使用返回的第一个错误 analyze_logs.
  4. 如果没有修改文件,则跳过验证。

MCP构建验证流程(示例)

# MCP Build Verification Flow

Run this verification flow only after tasks that change files in this project.
Do not run it for Q&A or other non-editing tasks.

1. Call the `run_build` tool with:
   - `command`: the build/test command (e.g., `npm run --workspace backend build` or `npm run --workspace frontend build`)
   - `cwd`: `/home/user/projects/Example-App`
2. Read `stdout` and `stderr` from the response.
3. Call `analyze_logs` passing `stdout` and `stderr`.
4. Use ONLY the first error returned by `analyze_logs` to decide next steps.

Notes:
- Do not suggest fixes unless explicitly asked.
- Do not modify files during the verification phase.

工具

run_build

输入:

{
  "command": "npm test",
  "cwd": "/path/to/project"
}

输出:

{
  "stdout": "...",
  "stderr": "...",
  "exitCode": 0
}

analyze_logs

输入:

{
  "stdout": "...",
  "stderr": "..."
}

输出:

{
  "success": false,
  "errors": [
    {
      "type": "typescript",
      "code": "TS2307",
      "file": "src/index.ts",
      "line": 10,
      "message": "Cannot find module ..."
    }
  ]
}

备注

  • 解析是最好的努力,只返回第一个相关错误。
  • 不执行修复、重试或文件修改。

目录标签

目录标签

TypeScript日志分析云端部署构建验证本地部署MCP服务器TypeScriptSDK确定性行为

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP