mcp-cli-bridge: Command for Claude Code

.trae/commands/ci.md

ci is a command for Claude Code from liuqihonggit/mcp-cli-bridge. It costs 23 tokens per session (1,036 once invoked), scanned A, original, MIT.

A release command for publishing a new software version after checking the project and running its validation steps.

In plain words
What is it for?
It helps check Git status, build the project, run unit and end-to-end tests, create a release build, and prepare the version release.
Why use it?
It reduces the risk of releasing code with uncommitted changes, failed builds, or failing tests.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is liuqihonggit/mcp-cli-bridge's own configuration. It tells Claude Code how to work on mcp-cli-bridge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-cli-bridge configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/liuqihonggit/mcp-cli-bridge/main/.trae/commands/ci.md
Clone the repo
git clone --depth 1 https://github.com/liuqihonggit/mcp-cli-bridge

Made for: Claude Code.

Wrote 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.

agentmods badge for ci

README.md
[![agentmods](https://agentmods.dev/badge/commands/liuqihonggit/mcp-cli-bridge/ci/github.svg)](https://agentmods.dev/commands/liuqihonggit/mcp-cli-bridge/ci)
Your own site
<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.

agentmods 80×15 button for ci

Your own site · 80×15
<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>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash a5914a2c60b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.trae/commands/ci.md · 140 lines

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}

该脚本会自动:

  1. 读取并递增版本号(package.json + Directory.Build.props)
  2. git add + git commit(消息: release: v{x.y.z})
  3. git tag v{x.y.z}
  4. 输出推送命令(不执行 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 冲突或版本号问题

Read the full file on GitHub · 140 lines

Changes

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.

  1. 2mo ago First seen · 140 lines · 0 tokens per session scan A a5914a2c60b6

Subscribe to this mod's changes

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.

Related

ci compared with commands from other repositories

ci next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ciliuqihonggit/mcp-cli-bridgeCommand05mo agoMITA23Claude Code
publishcode-yeongyu/oh-my-openagentCommand71kyesterdaynoneA12Claude Code, OpenCode
releaselindoelio/spec-driven-steroidsCommand558d agoMITA17Claude Code, OpenCode
shipmarcusgoll/Spec-FlowCommand961mo agoMITA13Claude Code
ciGenerous-Corp/pulpCommand22todayMITA14Claude Code
shipcomposio-community/awesome-claude-pluginsCommand2.0k2d agononeA9Claude Code
deployNickRomanek/clawbridgeCommand2319d agoApache-2.0A0Claude Code