vibe-gate-mcp 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +17 -3
- package/CHANGELOG.md +31 -0
- package/README.md +26 -11
- package/dist/index.mjs +632 -16
- package/docs/CLI_PROVIDERS.md +130 -0
- package/docs/INSTALLATION.md +21 -7
- package/docs/TROUBLESHOOTING.md +20 -5
- package/docs/USAGE.md +21 -3
- package/docs/VIBE-GATE.md +1 -1
- package/docs/project/VARIABLES.md +24 -18
- package/examples/cursor-mcp.codex-cli.json +12 -0
- package/package.json +2 -1
package/.env.example
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# =============================================================================
|
|
2
2
|
# Vibe-Gate — copy to `.env` next to this package (or set the same keys in MCP env)
|
|
3
|
-
# NEVER commit real keys.
|
|
3
|
+
# NEVER commit real keys. Pick one API provider with a key OR a signed-in local CLI.
|
|
4
4
|
# =============================================================================
|
|
5
5
|
|
|
6
6
|
# --- Required: Critic provider ---
|
|
7
|
-
# One of: openai | anthropic | google | minimax | opencode
|
|
7
|
+
# One of: openai | anthropic | google | minimax | opencode | codex-cli | claude-code | cursor-agent | opencode-cli
|
|
8
8
|
CRITIC_PROVIDER=openai
|
|
9
9
|
|
|
10
|
-
# ---
|
|
10
|
+
# --- API key for direct API providers (uncomment ONE block when needed) ---
|
|
11
11
|
|
|
12
12
|
# OpenAI
|
|
13
13
|
OPENAI_API_KEY=
|
|
@@ -25,6 +25,20 @@ OPENAI_API_KEY=
|
|
|
25
25
|
# OPENCODE_API_KEY=
|
|
26
26
|
# OPENCODE_PLAN=go
|
|
27
27
|
|
|
28
|
+
# --- Local CLI providers (no separate API key; install and sign in first) ---
|
|
29
|
+
# CRITIC_PROVIDER=codex-cli
|
|
30
|
+
# CRITIC_PROVIDER=claude-code
|
|
31
|
+
# CRITIC_PROVIDER=cursor-agent
|
|
32
|
+
# CRITIC_PROVIDER=opencode-cli
|
|
33
|
+
# For opencode-cli, set CRITIC_MODEL to a provider/model ID from `opencode models`
|
|
34
|
+
|
|
35
|
+
# Optional executable paths when the MCP host PATH cannot find the CLI
|
|
36
|
+
# CODEX_CLI_PATH=/absolute/path/to/codex
|
|
37
|
+
# CLAUDE_CODE_CLI_PATH=/absolute/path/to/claude
|
|
38
|
+
# CURSOR_AGENT_CLI_PATH=/absolute/path/to/cursor-agent
|
|
39
|
+
# OPENCODE_CLI_PATH=/absolute/path/to/opencode
|
|
40
|
+
# CRITIC_CLI_TIMEOUT_MS=120000
|
|
41
|
+
|
|
28
42
|
# --- Optional: model / persona ---
|
|
29
43
|
# CRITIC_MODEL=gpt-5.4
|
|
30
44
|
# CRITIC_PERSONA=clean-code-monk
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.4] - 2026-09-21
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add local Critic providers for Codex CLI, Claude Code, Cursor Agent, and OpenCode CLI, reusing existing CLI sign-ins without requiring separate API keys.
|
|
15
|
+
- Add CLI path overrides, bounded execution time, and temporary per-run working directories.
|
|
16
|
+
- Isolate OpenCode CLI config, deny agent tools, and remove OpenCode sessions after each request.
|
|
17
|
+
- Document CLI provider setup, authentication, process restrictions, and researched adapter candidates.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Reject malformed CLI JSON and JSONL responses instead of accepting partial output, and preserve provider errors if OpenCode session cleanup also fails.
|
|
22
|
+
- Send Cursor Agent's review conversation through stdin in the form expected by its CLI.
|
|
23
|
+
|
|
24
|
+
### Tests
|
|
25
|
+
|
|
26
|
+
- Add coverage for CLI authentication reuse, process isolation, output parsing, malformed streams, and OpenCode session cleanup.
|
|
27
|
+
|
|
28
|
+
## [0.1.3] - 2026-09-04
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Support GPT model family (including `gpt-5.6-luna`) on OpenCode Go by routing requests to OpenCode Go Responses API (`/zen/go/v1/responses`).
|
|
33
|
+
|
|
34
|
+
### Tests
|
|
35
|
+
|
|
36
|
+
- Added endpoint routing test for GPT models on OpenCode Go.
|
|
37
|
+
- Added OpenCode provider integration test verifying Go Responses endpoint URL and payload.
|
|
38
|
+
|
|
8
39
|
## [0.1.2] - 2026-09-02
|
|
9
40
|
|
|
10
41
|
### Fixed
|
package/README.md
CHANGED
|
@@ -4,17 +4,26 @@ An **Adversarial Quality Gate** for AI-assisted IDEs: the IDE agent and a Critic
|
|
|
4
4
|
|
|
5
5
|
## Quick start (npm / npx)
|
|
6
6
|
|
|
7
|
-
### 1. Critic
|
|
7
|
+
### 1. Choose a Critic provider
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Use a direct API provider with its key, or use a local CLI that is already installed and signed in. Local CLI providers do not need a separate provider API key.
|
|
10
10
|
|
|
11
11
|
Copy from the package’s [`.env.example`](.env.example):
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
#
|
|
14
|
+
# Direct API example
|
|
15
15
|
CRITIC_PROVIDER=openai
|
|
16
16
|
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
|
|
17
17
|
|
|
18
|
+
# Or use the signed-in Codex CLI account (no API key)
|
|
19
|
+
# CRITIC_PROVIDER=codex-cli
|
|
20
|
+
|
|
21
|
+
# Or another signed-in local CLI (no separate API key)
|
|
22
|
+
# CRITIC_PROVIDER=claude-code
|
|
23
|
+
# CRITIC_PROVIDER=cursor-agent
|
|
24
|
+
# CRITIC_PROVIDER=opencode-cli
|
|
25
|
+
# CRITIC_MODEL=provider/model # required for opencode-cli; see `opencode models`
|
|
26
|
+
|
|
18
27
|
# Or OpenCode (https://opencode.ai/auth)
|
|
19
28
|
# CRITIC_PROVIDER=opencode
|
|
20
29
|
# OPENCODE_API_KEY=...
|
|
@@ -22,19 +31,25 @@ OPENAI_API_KEY=YOUR_OPENAI_API_KEY
|
|
|
22
31
|
# CRITIC_MODEL=minimax-m3
|
|
23
32
|
```
|
|
24
33
|
|
|
25
|
-
| Provider | `CRITIC_PROVIDER` |
|
|
34
|
+
| Provider | `CRITIC_PROVIDER` | Authentication |
|
|
26
35
|
| ------------- | ----------------- | ----------------------------------------------- |
|
|
27
36
|
| OpenAI | `openai` | `OPENAI_API_KEY` |
|
|
28
37
|
| Anthropic | `anthropic` | `ANTHROPIC_API_KEY` |
|
|
29
38
|
| Google Gemini | `google` | `GOOGLE_GENERATIVE_AI_API_KEY` |
|
|
30
39
|
| MiniMax | `minimax` | `MINIMAX_API_KEY` |
|
|
31
40
|
| OpenCode | `opencode` | `OPENCODE_API_KEY` (+ optional `OPENCODE_PLAN`) |
|
|
41
|
+
| Codex CLI | `codex-cli` | Existing `codex login` session |
|
|
42
|
+
| Claude Code | `claude-code` | Existing Claude Code account session |
|
|
43
|
+
| Cursor Agent | `cursor-agent` | Existing `cursor-agent login` session |
|
|
44
|
+
| OpenCode CLI | `opencode-cli` | Saved `opencode auth login` credentials + model |
|
|
45
|
+
|
|
46
|
+
`opencode` is still the separate Zen/Go HTTP provider and needs `OPENCODE_API_KEY`. `opencode-cli` runs the local CLI and requires a `provider/model` value in `CRITIC_MODEL`; see the CLI guide for details.
|
|
32
47
|
|
|
33
|
-
Full list: [docs/project/VARIABLES.md](docs/project/VARIABLES.md).
|
|
48
|
+
See [CLI provider setup and alternatives](docs/CLI_PROVIDERS.md) for CLI installation, login, configuration, OpenCode session details, and other candidates we evaluated. Full variable list: [docs/project/VARIABLES.md](docs/project/VARIABLES.md).
|
|
34
49
|
|
|
35
|
-
### 2. Cursor MCP (any consumer repo)
|
|
50
|
+
### 2. Configure Cursor MCP (any consumer repo)
|
|
36
51
|
|
|
37
|
-
Project or user [`.cursor/mcp.json`](examples/cursor-mcp.project.json):
|
|
52
|
+
Project or user [`.cursor/mcp.json`](examples/cursor-mcp.codex-cli.json) for Codex CLI (or use the [API-key example](examples/cursor-mcp.project.json)):
|
|
38
53
|
|
|
39
54
|
```json
|
|
40
55
|
{
|
|
@@ -44,15 +59,14 @@ Project or user [`.cursor/mcp.json`](examples/cursor-mcp.project.json):
|
|
|
44
59
|
"args": ["-y", "vibe-gate-mcp"],
|
|
45
60
|
"env": {
|
|
46
61
|
"VIBE_WORKSPACE_ROOT": "${workspaceFolder}",
|
|
47
|
-
"CRITIC_PROVIDER": "
|
|
48
|
-
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
|
|
62
|
+
"CRITIC_PROVIDER": "codex-cli"
|
|
49
63
|
}
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
66
|
}
|
|
53
67
|
```
|
|
54
68
|
|
|
55
|
-
|
|
69
|
+
For direct providers, prefer keys in a local `.env` next to the package or in the consumer project under `VIBE_WORKSPACE_ROOT` (never commit secrets). MCP `env` overrides `.env`. For a CLI provider, install and sign in to that CLI as the same OS user running the MCP server.
|
|
56
70
|
|
|
57
71
|
### 3. Call the tool (agents)
|
|
58
72
|
|
|
@@ -105,7 +119,8 @@ Probes: `updateStatus: false` or `phaseId` prefixes `mcp-smoke-` / `vibe-gate-pr
|
|
|
105
119
|
| Doc | Description |
|
|
106
120
|
| -------------------------------------------------------------- | ------------------------- |
|
|
107
121
|
| [docs/INSTALLATION.md](docs/INSTALLATION.md) | Install + multi-repo MCP |
|
|
108
|
-
| [docs/USAGE.md](docs/USAGE.md) | First run
|
|
122
|
+
| [docs/USAGE.md](docs/USAGE.md) | First run and providers |
|
|
123
|
+
| [docs/CLI_PROVIDERS.md](docs/CLI_PROVIDERS.md) | Local CLI providers |
|
|
109
124
|
| [docs/SEMANTIC_DIFF_PAYLOAD.md](docs/SEMANTIC_DIFF_PAYLOAD.md) | `files[]` contract |
|
|
110
125
|
| [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) | Stale MCP, path errors |
|
|
111
126
|
| [docs/project/VARIABLES.md](docs/project/VARIABLES.md) | Env SSoT |
|