Skip to content

Commit ce589e4

Browse files
committed
remove legacy mcp and publish pipeline
Signed-off-by: VibeGuard Agent <1835304752@qq.com>
1 parent 1049625 commit ce589e4

30 files changed

Lines changed: 538 additions & 1425 deletions

.claude/commands/vibeguard/cross-review.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ argument-hint: "<项目目录或文件路径>"
6363
## Claude 审查报告(Round N)
6464

6565
### 守卫基线
66-
<guard_check 结果摘要>
66+
<守卫脚本结果摘要>
6767

6868
### 审查范围
6969
- 变更行数:<N>
@@ -134,7 +134,7 @@ argument-hint: "<项目目录或文件路径>"
134134
- 迭代轮数:<N>
135135
136136
### 守卫基线
137-
<guard_check 结果摘要>
137+
<守卫脚本结果摘要>
138138
139139
### 确认的发现
140140
| 优先级 | 文件:行号 | 问题 | 建议 | 验证 | 镜头 |

.claude/commands/vibeguard/review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ argument-hint: "<项目目录或文件路径>"
6262
## 审查报告
6363

6464
### 守卫基线
65-
<guard_check 结果摘要>
65+
<守卫脚本结果摘要>
6666

6767
### 发现
6868
| 优先级 | 文件:行号 | 问题 | 建议 |

.dockerignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
uses: actions/setup-node@v4
4343
with:
4444
node-version: "20"
45-
cache: "npm"
46-
cache-dependency-path: mcp-server/package-lock.json
4745

4846
- name: Setup Python
4947
uses: actions/setup-python@v5
@@ -86,14 +84,6 @@ jobs:
8684

8785
# --- Cross-platform contract validation (Python-embedded shell scripts) ---
8886
# Uses Git Bash on Windows; Python 3 is available from setup-python above.
89-
- name: Validate MCP config contract
90-
shell: bash
91-
run: bash scripts/ci/validate-config-contract.sh
92-
93-
- name: Validate Rust guard wiring contract
94-
shell: bash
95-
run: bash scripts/ci/validate-wiring-contract.sh
96-
9787
- name: Validate doc paths
9888
shell: bash
9989
run: bash scripts/ci/validate-doc-paths.sh
@@ -146,21 +136,3 @@ jobs:
146136
if: runner.os != 'Windows'
147137
shell: bash
148138
run: bash scripts/benchmark.sh --mode=fast
149-
150-
# --- MCP server (cross-platform: Node.js) ---
151-
- name: MCP install dependencies
152-
working-directory: mcp-server
153-
run: npm ci
154-
155-
- name: MCP build
156-
working-directory: mcp-server
157-
run: npm run build
158-
159-
- name: MCP unit tests
160-
working-directory: mcp-server
161-
run: npm run test:unit
162-
163-
- name: MCP integration tests
164-
if: runner.os != 'Windows'
165-
working-directory: mcp-server
166-
run: npm run test:integration

.github/workflows/docker.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ __pycache__/
55
*.swo
66
*~
77
node_modules/
8-
mcp-server/dist/
98
.vibeguard/worktrees/

.npmignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
When using Claude Code or Codex, AI frequently invents non-existent APIs, reinvents the wheel, hardcodes fake data, and over-engineers solutions. VibeGuard prevents these problems at the source through **rule injection + real-time interception + static scanning** — three layers of defense.
1010

11-
> **VibeGuard vs [Everything Claude Code](https://github.com/anthropics/everything-claude-code):** ECC is a general-purpose productivity toolkit (28 agents, 119 skills). VibeGuard is a specialized **defense system** — 88+ rules, 16 hooks with hard interception, churn loop detection, analysis paralysis guard, and structured event logging. **They're complementary, not competing.** ECC helps AI do more; VibeGuard stops AI from doing wrong. Install both.
11+
> **VibeGuard vs [Everything Claude Code](https://github.com/anthropics/everything-claude-code):** ECC is a general-purpose productivity toolkit (28 agents, 119 skills). VibeGuard is a specialized **defense system** — 88+ rules, 15 hooks with hard interception, churn loop detection, analysis paralysis guard, and structured event logging. **They're complementary, not competing.** ECC helps AI do more; VibeGuard stops AI from doing wrong. Install both.
1212
1313
Inspired by [OpenAI Harness Engineering](https://openai.com/index/harness-engineering/) and [Stripe Minions](https://www.youtube.com/watch?v=bZ0z1ApYjJo). Fully implements all 5 Harness Golden Principles.
1414

@@ -66,14 +66,6 @@ Most hooks trigger automatically during AI operations; `skills-loader` remains a
6666
| AI tries to finish with unverified changes | `stop-guard` | **Gate** — complete verification first |
6767
| Session ends | `learn-evaluator` | **Evaluate** — collect metrics, detect correction signals |
6868

69-
### 3. MCP Tools (on-demand)
70-
71-
AI can proactively call these tools to check code quality:
72-
73-
- `guard_check` — run language-specific guard scripts (`python | rust | typescript | javascript | go | auto`)
74-
- `compliance_report` — project compliance check
75-
- `metrics_collect` — collect code metrics
76-
7769
## Slash Commands
7870

7971
10 custom commands covering the full development lifecycle:
@@ -191,8 +183,7 @@ Extracts non-obvious solutions as structured Skill files for future reuse.
191183

192184
| Tool | How |
193185
|------|-----|
194-
| **OpenAI Codex** | `cp ~/vibeguard/templates/AGENTS.md ./AGENTS.md` + `bash ~/vibeguard/setup.sh` (installs skills + Codex MCP config) |
195-
| **Docker** | `docker pull ghcr.io/majiayu000/vibeguard:latest` |
186+
| **OpenAI Codex** | `cp ~/vibeguard/templates/AGENTS.md ./AGENTS.md` + `bash ~/vibeguard/setup.sh` (installs skills + Codex hooks) |
196187
| **Any project** | `cp ~/vibeguard/docs/CLAUDE.md.example ./CLAUDE.md` (rules only, no hooks) |
197188

198189
## Installation Options
@@ -202,7 +193,7 @@ Extracts non-obvious solutions as structured Skill files for future reuse.
202193
bash ~/vibeguard/setup.sh # Install (default: core profile)
203194
bash ~/vibeguard/setup.sh --profile minimal # Minimal: pre-hooks only (lightweight)
204195
bash ~/vibeguard/setup.sh --profile full # Full: adds Stop Gate + Build Check + Pre-Commit
205-
bash ~/vibeguard/setup.sh --profile strict # Strict: all hooks + extra checks
196+
bash ~/vibeguard/setup.sh --profile strict # Strict: same hook set as full, for stricter runtime policy
206197

207198
# Language selection (only install rules/guards for specified languages)
208199
bash ~/vibeguard/setup.sh --languages rust,python
@@ -215,46 +206,43 @@ bash ~/vibeguard/setup.sh --clean # Uninstall
215206

216207
### Codex Integration
217208

218-
VibeGuard now includes a Codex adapter layer that is **decoupled** from Claude setup:
209+
VibeGuard deploys hooks and skills to both Claude Code and Codex CLI:
210+
211+
**Hooks** (`~/.codex/hooks.json`, requires `codex_hooks = true` in config.toml):
212+
213+
| Event | Hook | Function |
214+
|-------|------|----------|
215+
| PreToolUse(Bash) | pre-bash-guard.sh | Dangerous command interception + package manager correction |
216+
| PostToolUse(Bash) | post-build-check.sh | Build failure detection |
217+
| Stop | stop-guard.sh | Uncommitted changes gate |
218+
| Stop | learn-evaluator.sh | Session metrics collection |
219219

220-
- `scripts/lib/codex_mcp.py` uses a strategy pattern:
221-
- `CodexCliMcpStrategy` (preferred): configures MCP via `codex mcp add/get/remove`
222-
- `TomlFileMcpStrategy` (fallback): updates `~/.codex/config.toml` directly
223-
- Claude-specific hooks in `~/.claude/settings.json` are unchanged.
220+
> **Note:** Codex PreToolUse/PostToolUse currently only supports `Bash` matcher. Edit/Write guards (pre-edit, post-edit, post-write) are not yet deployable.
224221
225-
Verify Codex MCP config:
222+
Output format differences are handled by `run-hook-codex.sh` wrapper (Claude Code `decision:block` → Codex `permissionDecision:deny`).
226223

227224
```bash
228-
codex mcp get vibeguard --json
225+
bash setup.sh --check # Verify full installation
229226
```
230227

231-
For Codex app-server orchestrators (Symphony-style), use the optional wrapper:
228+
**App-server wrapper** (Symphony-style orchestrators):
232229

233230
```bash
234231
python3 ~/vibeguard/scripts/codex/app_server_wrapper.py \
235232
--codex-command "codex app-server"
236233
```
237234

238-
Wrapper strategy modes:
239-
240235
- `--strategy vibeguard` (default): applies pre/stop/post gates externally
241236
- `--strategy noop`: pure pass-through (debug mode)
242237

243-
Example `WORKFLOW.md` snippet:
244-
245-
```yaml
246-
codex:
247-
command: python3 ~/vibeguard/scripts/codex/app_server_wrapper.py --codex-command "codex app-server"
248-
```
249-
250238
### Profiles
251239

252240
| Profile | Hooks Installed | Use Case |
253241
|---------|----------------|----------|
254242
| `minimal` | pre-write, pre-edit, pre-bash | Lightweight — only critical interception |
255-
| `core` (default) | minimal + post-edit, post-write, post-guard-check, analysis-paralysis | Standard development |
243+
| `core` (default) | minimal + post-edit, post-write, analysis-paralysis | Standard development |
256244
| `full` | core + stop-guard, learn-evaluator, post-build-check | Full defense + learning |
257-
| `strict` | full + all hooks active at runtime | Maximum enforcement |
245+
| `strict` | same hook set as full | Maximum enforcement |
258246

259247
### Runtime Configuration
260248

0 commit comments

Comments
 (0)