@bridge_gpt/mcp-server 0.1.7 → 0.1.8
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 +79 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,30 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for [Bridge API](https://bridgegpt-api.com) — exposes Jira integration endpoints as MCP tools for AI coding agents. Works with Claude Code, VS Code/Copilot, Cursor, Windsurf, and OpenAI Codex.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Getting Started
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|---|---|---|---|
|
|
9
|
-
| `BAPI_BASE_URL` | Yes | `https://bridgegpt-api.com` | Bridge API base URL |
|
|
10
|
-
| `BAPI_REPO_NAME` | Yes | _(none)_ | Jira project/repository identifier configured in Bridge API |
|
|
11
|
-
| `BAPI_API_KEY` | Yes | _(none)_ | API key obtained from the Bridge API setup UI |
|
|
12
|
-
| `BAPI_PROJECT_ROOT` | No | _(auto-set by --init)_ | Absolute path to project root. Anchors BAPI_DOCS_DIR and BAPI_PIPELINES_DIR resolution. Set automatically by --init. |
|
|
13
|
-
| `BAPI_DOCS_DIR` | No | `docs/tmp` | Local directory for saving plans, critiques, and research reports |
|
|
14
|
-
| `BAPI_PIPELINES_DIR` | No | `.bridge/pipelines` | Directory for user-defined custom pipeline JSON files |
|
|
15
|
-
|
|
16
|
-
## Configuration
|
|
7
|
+
### 1. Install the Package
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
From your **project root**, install the MCP server and scaffold slash commands:
|
|
19
10
|
|
|
20
11
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--env BAPI_REPO_NAME=your-repo \
|
|
24
|
-
--env BAPI_API_KEY=your-api-key \
|
|
25
|
-
--env BAPI_DOCS_DIR=docs/tmp
|
|
12
|
+
npm i @bridge_gpt/mcp-server
|
|
13
|
+
npx @bridge_gpt/mcp-server --init
|
|
26
14
|
```
|
|
27
15
|
|
|
28
|
-
|
|
16
|
+
`--init` must be run from the directory containing your `package.json`. It:
|
|
17
|
+
|
|
18
|
+
- Creates slash commands in `.claude/commands/` and `.cursor/commands/`
|
|
19
|
+
- Detects existing MCP config files and sets `BAPI_PROJECT_ROOT` so local file output resolves correctly
|
|
20
|
+
- Scaffolds `.bridge/pipelines/` for custom pipeline authoring
|
|
21
|
+
|
|
22
|
+
Re-run `--init` after upgrading the package to get updated commands.
|
|
23
|
+
|
|
24
|
+
### 2. Generate an API Key
|
|
25
|
+
|
|
26
|
+
1. Log in to [Bridge API](https://bridgegpt-api.com) and navigate to your project's **Security** page
|
|
27
|
+
2. Click **Create New Key**
|
|
28
|
+
3. Enter your email, an optional label (e.g., "MCP Server"), and select the **Admin** role
|
|
29
|
+
4. Click **Create Key**
|
|
30
|
+
5. **Copy the key immediately** — it will not be shown again
|
|
31
|
+
|
|
32
|
+
### 3. Configure the MCP Server
|
|
33
|
+
|
|
34
|
+
Add the following to your editor's MCP configuration file, pasting in the API key from step 2:
|
|
35
|
+
|
|
36
|
+
<details>
|
|
37
|
+
<summary><strong>Claude Code (.mcp.json)</strong></summary>
|
|
29
38
|
|
|
30
39
|
```json
|
|
31
40
|
{
|
|
@@ -44,7 +53,19 @@ claude mcp add bridge-api -- npx -y @bridge_gpt/mcp-server \
|
|
|
44
53
|
}
|
|
45
54
|
```
|
|
46
55
|
|
|
47
|
-
|
|
56
|
+
Or via CLI:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
claude mcp add bridge-api -- npx -y @bridge_gpt/mcp-server \
|
|
60
|
+
--env BAPI_BASE_URL=https://bridgegpt-api.com \
|
|
61
|
+
--env BAPI_REPO_NAME=your-repo \
|
|
62
|
+
--env BAPI_API_KEY=your-api-key \
|
|
63
|
+
--env BAPI_DOCS_DIR=docs/tmp
|
|
64
|
+
```
|
|
65
|
+
</details>
|
|
66
|
+
|
|
67
|
+
<details>
|
|
68
|
+
<summary><strong>VS Code / Copilot (.vscode/mcp.json)</strong></summary>
|
|
48
69
|
|
|
49
70
|
```json
|
|
50
71
|
{
|
|
@@ -62,8 +83,10 @@ claude mcp add bridge-api -- npx -y @bridge_gpt/mcp-server \
|
|
|
62
83
|
}
|
|
63
84
|
}
|
|
64
85
|
```
|
|
86
|
+
</details>
|
|
65
87
|
|
|
66
|
-
|
|
88
|
+
<details>
|
|
89
|
+
<summary><strong>Cursor (.cursor/mcp.json)</strong></summary>
|
|
67
90
|
|
|
68
91
|
```json
|
|
69
92
|
{
|
|
@@ -82,11 +105,13 @@ claude mcp add bridge-api -- npx -y @bridge_gpt/mcp-server \
|
|
|
82
105
|
}
|
|
83
106
|
```
|
|
84
107
|
|
|
85
|
-
>
|
|
108
|
+
> If project-local config is not supported in your Cursor version, use `~/.cursor/config/mcp.json` instead.
|
|
109
|
+
</details>
|
|
86
110
|
|
|
87
|
-
|
|
111
|
+
<details>
|
|
112
|
+
<summary><strong>Windsurf (~/.codeium/windsurf/mcp_config.json)</strong></summary>
|
|
88
113
|
|
|
89
|
-
|
|
114
|
+
Windsurf only supports global MCP configuration.
|
|
90
115
|
|
|
91
116
|
```json
|
|
92
117
|
{
|
|
@@ -104,8 +129,10 @@ claude mcp add bridge-api -- npx -y @bridge_gpt/mcp-server \
|
|
|
104
129
|
}
|
|
105
130
|
}
|
|
106
131
|
```
|
|
132
|
+
</details>
|
|
107
133
|
|
|
108
|
-
|
|
134
|
+
<details>
|
|
135
|
+
<summary><strong>OpenAI Codex (~/.codex/config.toml)</strong></summary>
|
|
109
136
|
|
|
110
137
|
```toml
|
|
111
138
|
[mcp_servers.bridge-api]
|
|
@@ -119,25 +146,27 @@ BAPI_API_KEY = "your-api-key"
|
|
|
119
146
|
BAPI_DOCS_DIR = "docs/tmp"
|
|
120
147
|
```
|
|
121
148
|
|
|
122
|
-
|
|
149
|
+
> Codex users: set `BAPI_PROJECT_ROOT` manually in your config (see Environment Variables below).
|
|
150
|
+
</details>
|
|
123
151
|
|
|
124
|
-
|
|
152
|
+
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.
|
|
125
153
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
154
|
+
### First-Time Setup: Teach Bridge Your Codebase
|
|
155
|
+
|
|
156
|
+
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.
|
|
129
157
|
|
|
130
|
-
|
|
158
|
+
You only need to do this once per project — the learned standards persist for all team members.
|
|
131
159
|
|
|
132
|
-
|
|
133
|
-
2. **MCP config files** — creates or updates `.mcp.json`, `.vscode/mcp.json`, and `.cursor/mcp.json` with sensible defaults and placeholder values (`YOUR_API_KEY`, `YOUR_REPO_NAME`). Only creates IDE-specific configs when that IDE is detected. Existing configs are preserved — only the `bridge-api` entry is added or updated.
|
|
134
|
-
3. **Gitignore** — newly created config files are automatically added to `.gitignore` to prevent committing API key placeholders.
|
|
135
|
-
4. **Slash commands** — writes command files to `.claude/commands/` (always) and `.cursor/commands/` (when Cursor is detected).
|
|
136
|
-
5. **Windsurf** — since Windsurf only supports global config, outputs a ready-to-paste JSON snippet to the console.
|
|
160
|
+
## Commands & Pipelines
|
|
137
161
|
|
|
138
|
-
|
|
162
|
+
Slash commands are available after running `--init`. Invoke them from your AI assistant's chat.
|
|
139
163
|
|
|
140
|
-
|
|
164
|
+
| Command | Description |
|
|
165
|
+
|---|---|
|
|
166
|
+
| `/explore-ticket` | Free-form codebase exploration — searches code, runs research, writes analysis with implementation options |
|
|
167
|
+
| `/review-ticket PROJ-123` | Two-round ticket quality review with clarifying questions and critiques from multiple LLM providers |
|
|
168
|
+
| `/implement-ticket PROJ-123` | End-to-end implementation — generates a plan, executes it, commits, opens a PR, monitors CI |
|
|
169
|
+
| `/learn-repository` | Teaches Bridge API about your codebase by analyzing architecture, testing, and review patterns |
|
|
141
170
|
|
|
142
171
|
## Available Tools
|
|
143
172
|
|
|
@@ -183,34 +212,26 @@ Re-run after upgrading the package to get updated commands. Replace placeholder
|
|
|
183
212
|
| `list_pipelines` | List available pipeline recipes |
|
|
184
213
|
| `get_pipeline_recipe` | Retrieve a resolved pipeline recipe |
|
|
185
214
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
The `list_pipelines` and `get_pipeline_recipe` tools provide access to declarative multi-step workflow recipes (e.g., `implement-ticket`, `review-ticket`, `learn-repository`). These are resolved locally from bundled definitions — no additional server calls are needed.
|
|
189
|
-
|
|
190
|
-
Example pipeline JSON files are included in the published package under `pipelines/` for reference when authoring custom pipelines.
|
|
191
|
-
|
|
192
|
-
### Custom Pipelines
|
|
215
|
+
## Custom Pipelines
|
|
193
216
|
|
|
194
|
-
You can create your own pipelines by placing JSON files in `.bridge/pipelines/` (or the directory specified by `BAPI_PIPELINES_DIR`). Custom pipelines are loaded at server startup and appear alongside bundled pipelines in `list_pipelines
|
|
195
|
-
|
|
196
|
-
**Getting started:**
|
|
217
|
+
You can create your own pipelines by placing JSON files in `.bridge/pipelines/` (or the directory specified by `BAPI_PIPELINES_DIR`). Custom pipelines are loaded at server startup and appear alongside bundled pipelines in `list_pipelines`.
|
|
197
218
|
|
|
198
219
|
1. Run `npx @bridge_gpt/mcp-server --init` to scaffold the directory structure with a README and example pipeline.
|
|
199
220
|
2. Add pipeline JSON files to `.bridge/pipelines/`.
|
|
200
221
|
3. Optionally add instruction markdown files to `.bridge/instructions/` and reference them via `instruction_file` in your pipeline steps.
|
|
201
222
|
|
|
202
|
-
**Pipeline JSON schema:**
|
|
203
|
-
|
|
204
|
-
- `name` (string, required) — display name
|
|
205
|
-
- `description` (string, optional) — shown in `list_pipelines`
|
|
206
|
-
- `variables` (string[], optional) — variable names for `{variable_name}` substitution
|
|
207
|
-
- `steps` (array, required) — ordered list of `mcp_call` or `agent_task` steps
|
|
208
|
-
|
|
209
|
-
Each step supports `on_error` (`"halt"` or `"warn_and_continue"`) and `requires_approval` (boolean). See the generated `README.md` in `.bridge/pipelines/` for full documentation.
|
|
210
|
-
|
|
211
223
|
If a custom pipeline has the same key as a bundled pipeline, it overrides the bundled one (a warning is logged at startup).
|
|
212
224
|
|
|
213
|
-
|
|
225
|
+
## Environment Variables
|
|
226
|
+
|
|
227
|
+
| Variable | Required | Default | Description |
|
|
228
|
+
|---|---|---|---|
|
|
229
|
+
| `BAPI_BASE_URL` | Yes | `https://bridgegpt-api.com` | Bridge API base URL |
|
|
230
|
+
| `BAPI_REPO_NAME` | Yes | _(none)_ | Jira project/repository identifier configured in Bridge API |
|
|
231
|
+
| `BAPI_API_KEY` | Yes | _(none)_ | API key obtained from the Bridge API setup UI |
|
|
232
|
+
| `BAPI_PROJECT_ROOT` | No | _(auto-set by --init)_ | Absolute path to project root. Anchors `BAPI_DOCS_DIR` and `BAPI_PIPELINES_DIR` resolution |
|
|
233
|
+
| `BAPI_DOCS_DIR` | No | `docs/tmp` | Local directory for saving plans, critiques, and research reports |
|
|
234
|
+
| `BAPI_PIPELINES_DIR` | No | `.bridge/pipelines` | Directory for user-defined custom pipeline JSON files |
|
|
214
235
|
|
|
215
236
|
## Publishing
|
|
216
237
|
|
|
@@ -218,7 +239,7 @@ This package uses tag-based publishing. To release a new version:
|
|
|
218
239
|
|
|
219
240
|
```bash
|
|
220
241
|
cd mcp_server
|
|
221
|
-
npm version patch # creates tag mcp-server/v0.1.
|
|
242
|
+
npm version patch # creates tag mcp-server/v0.1.x
|
|
222
243
|
git push --follow-tags
|
|
223
244
|
```
|
|
224
245
|
|