@bridge_gpt/mcp-server 0.2.78 → 0.2.80
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/README.md +112 -7
- package/build/decision-page-template.js +360 -23
- package/build/epic-implementer-bin.js +241 -1069
- package/build/index.js +1041 -1498
- package/build/worker-guard-hook-bin.js +2 -2
- package/docs/EPIC-IMPLEMENTER-INSTALL.md +13 -0
- package/docs/EPIC-IMPLEMENTER.md +44 -0
- package/docs/epic-implementer/getting-started.md +34 -0
- package/native/windows/bin/win32-x64/bridge-windows-native.exe +0 -0
- package/native/windows/bin/win32-x64/manifest.json +3 -3
- package/package.json +10 -4
- package/pipelines/review-ticket.json +1 -1
package/README.md
CHANGED
|
@@ -412,7 +412,7 @@ later boot.
|
|
|
412
412
|
"mcpServers": {
|
|
413
413
|
"bridge": {
|
|
414
414
|
"command": "npx",
|
|
415
|
-
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
415
|
+
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.80", "serve"],
|
|
416
416
|
"env": {
|
|
417
417
|
"BAPI_BASE_URL": "https://bridgegpt-api.com",
|
|
418
418
|
"BAPI_REPO_NAME": "your-repo",
|
|
@@ -434,7 +434,7 @@ later boot.
|
|
|
434
434
|
"bridge": {
|
|
435
435
|
"type": "stdio",
|
|
436
436
|
"command": "npx",
|
|
437
|
-
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
437
|
+
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.80", "serve"],
|
|
438
438
|
"env": {
|
|
439
439
|
"BAPI_BASE_URL": "https://bridgegpt-api.com",
|
|
440
440
|
"BAPI_REPO_NAME": "your-repo",
|
|
@@ -456,7 +456,7 @@ later boot.
|
|
|
456
456
|
"bridge": {
|
|
457
457
|
"type": "stdio",
|
|
458
458
|
"command": "npx",
|
|
459
|
-
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
459
|
+
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.80", "serve"],
|
|
460
460
|
"env": {
|
|
461
461
|
"BAPI_BASE_URL": "https://bridgegpt-api.com",
|
|
462
462
|
"BAPI_REPO_NAME": "your-repo",
|
|
@@ -479,7 +479,7 @@ Windsurf only supports global MCP configuration.
|
|
|
479
479
|
"mcpServers": {
|
|
480
480
|
"bridge": {
|
|
481
481
|
"command": "npx",
|
|
482
|
-
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
482
|
+
"args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.80", "serve"],
|
|
483
483
|
"env": {
|
|
484
484
|
"BAPI_BASE_URL": "https://bridgegpt-api.com",
|
|
485
485
|
"BAPI_REPO_NAME": "your-repo",
|
|
@@ -498,7 +498,7 @@ Windsurf only supports global MCP configuration.
|
|
|
498
498
|
```toml
|
|
499
499
|
[mcp_servers.bridge]
|
|
500
500
|
command = "npx"
|
|
501
|
-
args = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
501
|
+
args = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.80", "serve"]
|
|
502
502
|
|
|
503
503
|
[mcp_servers.bridge.env]
|
|
504
504
|
BAPI_BASE_URL = "https://bridgegpt-api.com"
|
|
@@ -770,9 +770,9 @@ Useful once in a while.
|
|
|
770
770
|
- **Flags:** None.
|
|
771
771
|
|
|
772
772
|
**8. Ticket Attachments**
|
|
773
|
-
- **What it does:** Uploads, lists, downloads, replaces, and deletes files on a ticket, in Jira or
|
|
773
|
+
- **What it does:** Uploads, lists, downloads, replaces, and deletes files on a ticket, in Jira, local, or Linear mode. Linear files are stored by Bridge and linked from the issue.
|
|
774
774
|
- **When it's useful:** (Refinement | Implementation) When a ticket has design files or logs you need locally, or you want to attach output back to it.
|
|
775
|
-
- **How to use it:** Ask your agent — "Upload, list, download, replace, and delete files on a ticket in Jira or
|
|
775
|
+
- **How to use it:** Ask your agent — "Upload, list, download, replace, and delete files on a ticket in Jira, local, or Linear mode," for example "Download the design mockups attached to BAPI-123 into my docs folder," or "Attach build-log.txt to BAPI-123."
|
|
776
776
|
- **Flags:** Choose the direction (download from the ticket, or upload to it) and, for a download, where the files should land.
|
|
777
777
|
|
|
778
778
|
**9. Estimate Epic**
|
|
@@ -1131,6 +1131,12 @@ See [The Epic Implementer](#the-epic-implementer) for what each command is for,
|
|
|
1131
1131
|
|
|
1132
1132
|
Workers also prune edit-confirmation tests conservatively and report them in the `## Tests removed` and `## Checked once` pull request sections. Details, and how `never delete tests` opts out, are in [Test pruning and checked-once evidence](./docs/EPIC-IMPLEMENTER.md#test-pruning-and-checked-once-evidence).
|
|
1133
1133
|
|
|
1134
|
+
### Worker runtime from the Codex skill
|
|
1135
|
+
|
|
1136
|
+
Which agent runs an epic's child work depends on how you start it. When you start a run through the installed Codex skill (`$bridge-drive-epic-run`), new runs default to Codex workers; pass `--runtime claude` to choose Claude. The direct `drive-epic` CLI and every other host keep their existing default, and an installation without the Codex skill is unchanged. A runtime applies to **new** runs only: attaching to a live run reports its stored runtime pin, the run id, and the executor identity read for that run, and an override you pass is reported as ignored, never applied.
|
|
1137
|
+
|
|
1138
|
+
Unattended Codex execution needs a supported macOS executor host, a supported Codex CLI release, an isolated worker login, an executor binding for the run, and the completion prerequisites. The launch preview reports each of these, role by role, as advisory evidence for this checkout and machine. It cannot prove future admission, and when the executor runs elsewhere it says remote evidence is unavailable. Missing evidence withholds only the affected work. Approving the launch is consent to create and start the run; it does not authorize a helper role.
|
|
1139
|
+
|
|
1134
1140
|
## CLI Subcommands
|
|
1135
1141
|
|
|
1136
1142
|
Beyond `--init` / `--upgrade`, the package ships operational subcommands of the **single `bridge-api-mcp-server` bin** (not separate binaries) — so they travel with the package to every consumer. See [Usage Documentation → Start Tickets](#regularly-useful) for *when* to use `start-tickets`; this section is the full CLI reference.
|
|
@@ -2111,3 +2117,102 @@ The current default adapter remains unqualified where isolated login and scoped
|
|
|
2111
2117
|
worker assets are unavailable. A live executor can still serve independently
|
|
2112
2118
|
eligible deterministic work. See `docs/BAPI-1840-local-codex-runtime.md` in the
|
|
2113
2119
|
repository for worker provisioning, local pilot behavior and live-verification limits.
|
|
2120
|
+
|
|
2121
|
+
### Codex epic driver (operator)
|
|
2122
|
+
|
|
2123
|
+
The Codex epic driver lets an operator leave an approved epic running overnight
|
|
2124
|
+
in Codex. It is a **private, checkout-scoped MCP server**, separate from the
|
|
2125
|
+
general Bridge registration (which stays available for ordinary chat) and from
|
|
2126
|
+
the worker approval profile (`--codex-profile`). Workers and restricted roles
|
|
2127
|
+
never load it.
|
|
2128
|
+
|
|
2129
|
+
**Supported Codex host baseline (verified locally, 2026-12-01).** Codex CLI
|
|
2130
|
+
**0.172.0** (`codex-cli 0.172.0`, macOS arm64) is the only verified version.
|
|
2131
|
+
Its feature table lists `tool_call_mcp_elicitation` as stable and on, and its
|
|
2132
|
+
MCP client declares form elicitation (`elicitation/create`, `form` mode) and
|
|
2133
|
+
roots (`roots/list`). The driver uses that form elicitation as the trusted owner
|
|
2134
|
+
confirmation: the installed server sends the request, the host shows it to a
|
|
2135
|
+
person, and the reply comes straight back to the server over its own stdio
|
|
2136
|
+
connection. The form always has non-empty fields (a decision and the typed epic
|
|
2137
|
+
key), so Codex's automated reviewer, which handles only empty forms, cannot
|
|
2138
|
+
answer it. The driver checks the capability on every session. When the host does
|
|
2139
|
+
not declare form elicitation, **create stays unavailable**. There is no
|
|
2140
|
+
fallback to chat, a terminal prompt, or a caller-supplied flag. Previews and
|
|
2141
|
+
reads keep working. No authoritative, per-operation host permission-prompt
|
|
2142
|
+
signal reaches the server, so host prompt counts are reported as
|
|
2143
|
+
`not observable`, never as zero.
|
|
2144
|
+
|
|
2145
|
+
**Install** (from the published package, in a checkout Codex already trusts):
|
|
2146
|
+
|
|
2147
|
+
```bash
|
|
2148
|
+
npx -y @bridge_gpt/mcp-server install --tools=codex --codex-epic-driver=on
|
|
2149
|
+
# or, after install:
|
|
2150
|
+
npx -y @bridge_gpt/mcp-server codex-epic-driver install [--base-url <url>] [--repo <name>]
|
|
2151
|
+
```
|
|
2152
|
+
|
|
2153
|
+
Install checks the hard dependencies first and shows no values: a trusted
|
|
2154
|
+
checkout, a stored `bapi:<repo>` key approved for the target, and an owner-only
|
|
2155
|
+
package entry outside the checkout. It then pins that entry's absolute path and
|
|
2156
|
+
digest. It adds one marker-delimited block to `~/.codex/config.toml` named
|
|
2157
|
+
`bridge_epic_driver_<id>`, with an `approve` grant for each fixed operation and
|
|
2158
|
+
no wildcard. The block is keyed by the canonical worktree path, so sibling
|
|
2159
|
+
worktrees each get their own. A repeat install with nothing changed is a no-op.
|
|
2160
|
+
Driver state (installation, decisions, bindings, recipe, refusals) lives outside
|
|
2161
|
+
the checkout, under `$XDG_STATE_HOME/bridge/codex-epic-driver/` (default
|
|
2162
|
+
`~/.local/state/…`), with owner-only permissions.
|
|
2163
|
+
|
|
2164
|
+
**Fresh-session inspection.** Start a new Codex session in the checkout and call
|
|
2165
|
+
`driver_status`. It reports the configured and observed checkout, the project,
|
|
2166
|
+
the credential's presence, host confirmation and recipe approval. From a shell:
|
|
2167
|
+
|
|
2168
|
+
```bash
|
|
2169
|
+
npx -y @bridge_gpt/mcp-server codex-epic-driver inspect
|
|
2170
|
+
npx -y @bridge_gpt/mcp-server doctor --agent codex
|
|
2171
|
+
```
|
|
2172
|
+
|
|
2173
|
+
`doctor` is read-only. It separates Bridge-managed settings, edits made outside
|
|
2174
|
+
Bridge, and observed effects. It reports session behavior as `not yet observed`
|
|
2175
|
+
rather than inferring it from TOML.
|
|
2176
|
+
|
|
2177
|
+
**Launch.** `preview_launch` runs the normal `drive-epic --dry-run` preview with
|
|
2178
|
+
write probes withheld (merge evidence reads "unverified"). `confirm_launch` asks
|
|
2179
|
+
the owner through the host. It shows the checkout, project, epic, effective
|
|
2180
|
+
runtime, mode, plan revision and full selection. `create_run` spends that one
|
|
2181
|
+
decision atomically and sends the create with a fresh attempt identity. If the
|
|
2182
|
+
response is lost, the driver reads the run back **by attempt identity only**. An
|
|
2183
|
+
unresolved outcome is reported as `unconfirmed`, keeps the decision spent, and
|
|
2184
|
+
grants no write authority. It is never retried, because a retry could create a
|
|
2185
|
+
second billable run. A local-plane launch keeps its owner-terminal hand-off.
|
|
2186
|
+
|
|
2187
|
+
**Conflicts.** If you edit the managed block, install and withdraw leave it
|
|
2188
|
+
alone and report `user_edited`. Resolve it by restoring or removing the block,
|
|
2189
|
+
then rerun install. If the pinned executable changes or gains unsafe
|
|
2190
|
+
permissions, doctor and driver startup both report a setup conflict. Rerun
|
|
2191
|
+
install (or `upgrade`) to re-pin.
|
|
2192
|
+
|
|
2193
|
+
**Verification recipe.** Approving a recipe is a separate, explicit setup step:
|
|
2194
|
+
|
|
2195
|
+
```bash
|
|
2196
|
+
npx -y @bridge_gpt/mcp-server codex-epic-driver approve-recipe --recipe-file ./epic-server-recipe.json \
|
|
2197
|
+
--launcher npm=/opt/homebrew/bin/npm
|
|
2198
|
+
```
|
|
2199
|
+
|
|
2200
|
+
The recipe is validated, shown verbatim with its checkout and project, and
|
|
2201
|
+
stored with its digest only after you accept. Proof, start and every rebuild
|
|
2202
|
+
check the recipe bytes against that digest, through the helper's environment.
|
|
2203
|
+
A changed recipe or launcher is refused, and the run continues through the
|
|
2204
|
+
verification hand-off. To change the recipe, approve it again.
|
|
2205
|
+
|
|
2206
|
+
**Withdraw.**
|
|
2207
|
+
|
|
2208
|
+
```bash
|
|
2209
|
+
npx -y @bridge_gpt/mcp-server codex-epic-driver withdraw
|
|
2210
|
+
# or: install --tools=codex --codex-epic-driver=off
|
|
2211
|
+
```
|
|
2212
|
+
|
|
2213
|
+
Withdrawal revokes driver authority durably first. It expires unspent launch
|
|
2214
|
+
decisions and closes live driver bindings. Only then does it remove Bridge's
|
|
2215
|
+
block from the Codex config. Runs are not cancelled or re-pinned. Your other
|
|
2216
|
+
settings and the general Bridge registration are untouched. Permissions you
|
|
2217
|
+
granted yourself outside the managed block stay in effect and are reported
|
|
2218
|
+
separately.
|