Borrowing it
Nothing to install: this file belongs to liuqihonggit/mcp-cli-bridge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/liuqihonggit/mcp-cli-bridge/main/.trae/commands/ci.mdgit clone --depth 1 https://github.com/liuqihonggit/mcp-cli-bridgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/liuqihonggit/mcp-cli-bridge/ci)<a href="https://agentmods.dev/commands/liuqihonggit/mcp-cli-bridge/ci"><img src="https://agentmods.dev/badge/commands/liuqihonggit/mcp-cli-bridge/ci/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/liuqihonggit/mcp-cli-bridge/ci"><img src="https://agentmods.dev/badge/commands/liuqihonggit/mcp-cli-bridge/ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.01036 |
| Opus 5.5 | $0.00009 | $0.00414 |
| Sonnet 5.5 | $0.00005 | $0.00207 |
| Haiku 4.5 | $0.00002 | $0.00104 |
Grade A, and why
ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ci - 发布新版本
版本类型: ${1:-patch} 当前本地版本: v!`cat package.json | findstr version | findstr /R "[0-9]"
\
⚠️ 强制规则(执行前必读)
- ❌ 禁止执行
git push— 只输出推送命令,由用户手动执行 - ❌ 禁止执行
buildAndNpm.ps1— CI/CD 专属脚本 - ❌ 禁止手动
npm publish— 由 CI/CD 自动完成 - ✅ 必须走完完整验证流水线后才能 release
- ✅ Git 必须在干净状态下开始
Step 1: 前置检查
1.1 检查 Git 工作区是否干净
运行以下命令确认无未提交更改:
git --no-pager status --porcelain
如果输出非空,立即停止,告知用户先提交或暂存更改。
1.2 确认当前版本信息
- 本地 package.json 版本: 从上方动态获取
- npm registry 最新版: 运行
npm view @jingjingbox/mcp-cli-bridge version 2>$null - 预计新版本: 根据版本类型计算
Step 2: 完整验证流水线(必须全部通过)
按顺序执行以下每一步,任何一步失败都停止:
2.1 编译全部项目
dotnet build McpHost.slnx -c Release
✅ 零错误零警告才可继续。
2.2 运行单元测试
dotnet test McpHost.slnx -c Release
✅ 全部测试通过才可继续。
2.3 运行 E2E 测试
dotnet run --project tests\E2E\MyMemoryServer.E2E.csproj -c Release
✅ 协议边界测试通过才可继续。
2.4 AOT 发布构建
.\build.ps1
✅ publish/ 目录产物正确生成才可继续。
如果修改过
.github/workflows/build.yml,在 Step 2 之前还需要先执行 CI-CD发布流程.md 中的本地验证脚本。
Step 3: 执行 Release
验证全部通过后,执行版本发布脚本:
.\release.ps1 -VersionBump ${1:-patch}
该脚本会自动:
- 读取并递增版本号(package.json + Directory.Build.props)
- git add + git commit(消息:
release: v{x.y.z}) - git tag
v{x.y.z} - 输出推送命令(不执行 push)
Step 4: 输出 Push 命令(用户手动执行)
Release 脚本执行成功后,向用户展示以下推送命令:
# === 推送到 Gitee (origin) ===
git push origin main && git push origin v{新版本号}
# === 推送到 GitHub (github) ← 触发 CI/CD 自动发布 npm ===
git push github main && git push github v{新版本号}
Step 5: 后续监控
推送后告知用户:
📡 CI/CD 监控地址:
https://github.com/liuqihonggit/mcp-cli-bridge/actions
🔄 CI/CD 将自动执行:
① AOT 编译 + 单元测试 + E2E 测试
② npm publish(发布到 npm registry)
③ GitHub Release(上传 exe 文件)
📦 CI/CD 成功后安装新版本:
npm install -g @jingjingbox/mcp-cli-bridge@latest
错误处理
| 失败阶段 | 处理方式 |
|---|---|
| Git 工作区不干净 | 停止,让用户先提交 |
| 编译失败 | 修复代码后从 Step 2.1 重来 |
| 测试失败 | 修复后从对应测试步骤重来 |
| build.ps1 失败 | 检查 NativeAOT 兼容性 |
| release.ps1 失败 | 检查 tag 冲突或版本号问题 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 140 lines · 0 tokens per session scan A a5914a2c60b6
ci is a command published in the GitHub repository liuqihonggit/mcp-cli-bridge (0 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 1,036 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ci compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ciliuqihonggit/mcp-cli-bridge | Command | 0 | 5mo ago | MIT | A | 23 | Claude Code |
| publishcode-yeongyu/oh-my-openagent | Command | 71k | yesterday | none | A | 12 | Claude Code, OpenCode |
| releaselindoelio/spec-driven-steroids | Command | 55 | 8d ago | MIT | A | 17 | Claude Code, OpenCode |
| shipmarcusgoll/Spec-Flow | Command | 96 | 1mo ago | MIT | A | 13 | Claude Code |
| ciGenerous-Corp/pulp | Command | 22 | today | MIT | A | 14 | Claude Code |
| shipcomposio-community/awesome-claude-plugins | Command | 2.0k | 2d ago | none | A | 9 | Claude Code |
| deployNickRomanek/clawbridge | Command | 23 | 19d ago | Apache-2.0 | A | 0 | Claude Code |