@bridge_gpt/mcp-server 0.2.9 → 0.2.12

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.
Files changed (43) hide show
  1. package/README.md +59 -7
  2. package/build/commands.generated.js +6 -6
  3. package/build/conductor/bridge-api-client.js +263 -35
  4. package/build/conductor/cli.js +38 -17
  5. package/build/conductor/doctor.js +35 -2
  6. package/build/conductor/done-gate.js +301 -58
  7. package/build/conductor/epic-reconcile.js +318 -4
  8. package/build/conductor/epic-runtime.js +382 -18
  9. package/build/conductor/epic-state.js +188 -15
  10. package/build/conductor/errors.js +12 -0
  11. package/build/conductor/git-ci-types.js +16 -0
  12. package/build/conductor/git-producer.js +4 -4
  13. package/build/conductor/merge-ledger.js +7 -7
  14. package/build/conductor/pr-ci-producer.js +118 -19
  15. package/build/conductor/pr-review-producer.js +116 -0
  16. package/build/conductor/producer-ledger.js +5 -5
  17. package/build/conductor/spec-review-producer.js +88 -0
  18. package/build/conductor/store.js +105 -26
  19. package/build/conductor/supervisor-ledger.js +2 -2
  20. package/build/conductor/supervisor-merge.js +5 -5
  21. package/build/conductor/supervisor-message-relay.js +32 -1
  22. package/build/conductor/supervisor-runtime.js +10 -10
  23. package/build/conductor/taxonomy.js +8 -0
  24. package/build/conductor/tools.js +7 -7
  25. package/build/conductor-bin.js +12350 -19
  26. package/build/conductor-claude-hook-bin.js +167 -17
  27. package/build/decision-page-schema.js +26 -0
  28. package/build/doctor.js +200 -0
  29. package/build/index.js +23696 -4351
  30. package/build/init.js +481 -0
  31. package/build/install-bridge.js +772 -0
  32. package/build/mcp-profile.js +43 -0
  33. package/build/pipelines.generated.js +70 -48
  34. package/build/readme.generated.js +1 -1
  35. package/build/start-tickets-conductor.js +1 -0
  36. package/build/start-tickets.js +186 -10
  37. package/build/upgrade-cli.js +154 -0
  38. package/build/version.generated.js +1 -1
  39. package/package.json +7 -4
  40. package/pipelines/check-ci-ticket.json +2 -2
  41. package/pipelines/implement-ticket.json +2 -2
  42. package/pipelines/learn-repository.json +84 -42
  43. package/smoke-test/SMOKE-TEST.md +11 -17
package/README.md CHANGED
@@ -6,7 +6,58 @@ MCP server for [Bridge API](https://bridgegpt-api.com) — exposes Jira integrat
6
6
 
7
7
  ## Getting Started
8
8
 
9
- ### 1. Install the Package
9
+ ### Quick start (one command)
10
+
11
+ From your **project root**, run:
12
+
13
+ ```bash
14
+ npx -y @bridge_gpt/mcp-server@latest install-bridge
15
+ ```
16
+
17
+ `install-bridge` collapses the whole setup into a single command. It:
18
+
19
+ 1. **Scaffolds** the project (the same artifacts `--init` writes: slash commands,
20
+ agents, `.bridge/pipelines/`, and secret-free MCP config placeholders).
21
+ 2. **Writes the per-host MCP config** (`.mcp.json` / `.cursor/mcp.json` /
22
+ `.vscode/mcp.json`) with your real `BAPI_REPO_NAME` / `BAPI_API_KEY` /
23
+ `BAPI_BASE_URL` / `BAPI_DOCS_DIR`, preserving any unrelated servers. The
24
+ launcher it writes is pinned to the exact installed version so `npx` never
25
+ silently reuses a stale local copy. (Windsurf and Codex are global configs it
26
+ can't safely write — it prints copy-paste instructions for those.)
27
+ 3. **Verifies connectivity** against the Bridge API before persisting anything.
28
+ 4. **Persists your key** to the user-scoped credential store
29
+ (`~/.config/bridge/credentials.json`, target `bapi:<repo>`) so shell-spawned
30
+ tooling (e.g. `start-tickets`) can resolve it.
31
+ 5. **Opens a fresh agent session** that runs `/install-bridge` (to derive the
32
+ remaining config fields from your codebase) and then `/learn-repository`.
33
+
34
+ The only inputs are an **API key** and a **repo name** (everything else is
35
+ derived). Resolution order:
36
+
37
+ - **API key:** `--api-key <key>` → `BAPI_API_KEY` env → an interactive (no-echo)
38
+ prompt. Generate one first on the Bridge API web UI **Security** page (see
39
+ [Generate an API Key](#2-generate-an-api-key)); the command consumes a key, it
40
+ never mints one. The key is **never printed or logged**.
41
+ - **Repo name:** `--repo <name>` → `BAPI_REPO_NAME` env → an inferred default you
42
+ confirm interactively. It MUST match the server-side repository registration.
43
+
44
+ Useful flags:
45
+
46
+ - `--dry-run` — preview every step (scaffold targets, config files and keys with
47
+ the key value **redacted**, the ping target, the credential store target, and
48
+ the exact agent spawn command) without writing, pinging, or spawning anything.
49
+ - `--force` — overwrite an existing real `BAPI_API_KEY` in a host config without
50
+ prompting (re-running is otherwise non-destructive).
51
+ - `--agent claude|cursor-agent` — which agent to launch for the agentic remainder
52
+ (default `claude`).
53
+
54
+ That's it — once `install-bridge` finishes you're connected. If you prefer to do
55
+ it by hand (or just want to understand each step), the manual flow below does the
56
+ same thing.
57
+
58
+ ### Manual Setup (Alternative)
59
+
60
+ #### 1. Install the Package
10
61
 
11
62
  From your **project root**, install the MCP server and scaffold slash commands:
12
63
 
@@ -23,7 +74,7 @@ npx -y @bridge_gpt/mcp-server --init
23
74
 
24
75
  Re-run `--init` after upgrading the package to get updated commands.
25
76
 
26
- ### 2. Generate an API Key
77
+ #### 2. Generate an API Key
27
78
 
28
79
  1. Log in to [Bridge API](https://bridgegpt-api.com) and navigate to your project's **Security** page
29
80
  2. Click **Create New Key**
@@ -31,7 +82,7 @@ Re-run `--init` after upgrading the package to get updated commands.
31
82
  4. Click **Create Key**
32
83
  5. **Copy the key immediately** — it will not be shown again
33
84
 
34
- ### 3. Configure the MCP Server
85
+ #### 3. Configure the MCP Server
35
86
 
36
87
  Add the following to your editor's MCP configuration file, pasting in the API key from step 2:
37
88
 
@@ -145,7 +196,7 @@ BAPI_DOCS_DIR = "docs/tmp"
145
196
 
146
197
  After saving the config, restart your editor or reload the MCP server connection. Verify connectivity by asking your AI assistant to call the `ping` tool.
147
198
 
148
- ### 4. First-Time Setup: Teach Bridge Your Codebase
199
+ #### 4. First-Time Setup: Teach Bridge Your Codebase
149
200
 
150
201
  If you're the first person to install Bridge API on your project, run the `/learn-repository` slash command after completing setup. This analyzes your codebase's architecture, testing patterns, code review standards, and documentation conventions, then uploads the findings to Bridge API. This gives Bridge the context it needs to generate implementation plans, ticket critiques, and code reviews that are consistent with your project's actual architecture and conventions.
151
202
 
@@ -540,6 +591,7 @@ Reports are written to `<BAPI_DOCS_DIR>/smoke-test/REPORT-<host>-<timestamp>.md`
540
591
  | `BAPI_WORKTRUNK_BIN` | No | `wt` (`git-wt` on Windows) | Override the Worktrunk executable name/path used by `start-tickets` for nonstandard installs |
541
592
  | `BAPI_TMUX_SESSION` | No | `bridge-start-tickets` | Override the tmux session-name prefix used by `start-tickets` on Linux |
542
593
  | `BAPI_MCP_UPGRADE_ADVICE_ENABLED` | No | _(enabled)_ | MCP-local opt-out for proactively surfacing upgrade advice in pipeline recipe preambles. Set to `false`/`0`/`no`/`off`/`disabled` to suppress. Disabling it does **not** change the `/jira/ping` response or server-side upgrade computation — it only gates the recipe-preamble convention |
594
+ | `BRIDGE_MCP_PROFILE` | No | `core` | Startup-time tool registration profile. Controls which tool groups are registered when the server starts. Valid values: `core` (default — normal coding tools only), `conductor` (core + 8 conductor/event/supervisor tools), `pipeline-authoring` (core + 5 pipeline run/admin tools — `get_pipeline_recipe` is NOT gated; it stays in `core` because the recipe-driven slash commands depend on it), `full` (all tools, equivalent to the legacy unconditional registration). Unknown, blank, or malformed values fail safe to `core`. Dynamic mid-session switching via `tools/list_changed` is unsupported — the profile is resolved once at process startup. **Phase 2b note:** epic/conductor sessions launched via `start-tickets` will automatically inject `BRIDGE_MCP_PROFILE=conductor`; that injection is handled at the spawn boundary and is out of scope for this phase. |
543
595
 
544
596
  ## Worktree credentials and the `mcp-invoke` shim
545
597
 
@@ -614,18 +666,18 @@ The full surface, for when you need the complete enumeration. Day-to-day, use [U
614
666
 
615
667
  ### MCP tools
616
668
 
617
- The server registers **62 tools**. Async AI tools follow a request/get pattern: call the `request_*` tool to kick off generation, then the matching `get_*` tool to retrieve the result (or pass `wait_for_result: true` to poll automatically).
669
+ The server registers **58 tools**. Async AI tools follow a request/get pattern: call the `request_*` tool to kick off generation, then the matching `get_*` tool to retrieve the result (or pass `wait_for_result: true` to poll automatically).
618
670
 
619
671
  - **Connectivity & identity** — `ping`, `get_my_role`, `get_docs_dir`
620
672
  - **Jira tickets** — `get_tickets`, `get_ticket`, `create_ticket`, `update_ticket_description`, `add_comment`, `get_comments`
621
- - **Attachments** — `list_attachments`, `upload_attachment`, `download_attachment`
673
+ - **Attachments** — `attachment` (operations: `upload`, `download`, `list`)
622
674
  - **AI generation (request/get)** — `request_plan_generation`/`get_plan`, `request_architecture`/`get_architecture`, `create_doc`/`get_doc` (design docs by `doc_type`: tdd/fsd/prd), `request_prd`/`get_prd`, `request_clarifying_questions`/`get_clarifying_questions`, `request_ticket_critique`/`get_ticket_critique`, `request_ticket_review`, `request_reimplement_context`/`get_reimplement_context`, `request_brainstorm`/`get_brainstorm`, `request_deep_research`/`get_deep_research`
623
675
  - **Other AI** — `second_opinion`, `generate_image`, `generate_decision_page`
624
676
  - **Ticket lifecycle** — `track_ticket`, `update_ticket_state`, `get_ticket_state`
625
677
  - **Jira status** — `get_jira_transitions`, `update_jira_status`, `resolve_target_status`
626
678
  - **Repository & CI** — `parse_repository`, `get_parse_status`, `regenerate_directory_map`, `create_pull_request`, `resolve_ci_checks`, `poll_ci_checks`
627
679
  - **Pipelines & automation** — `list_pipelines`, `get_pipeline_recipe`, `run_pipeline`, `resume_pipeline`, `list_pipeline_runs`, `delete_pipeline_run`, `run_full_automation`, `resume_full_automation`
628
- - **Config** — `get_project_standards`, `list_config_fields`, `get_config_field`, `update_config_field`
680
+ - **Config** — `get_project_standards`, `config_field` (operations: `get`, `update`, `list`)
629
681
 
630
682
  ### Bundled pipelines
631
683