@bridge_gpt/mcp-server 0.1.3 → 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.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -27,7 +27,7 @@ let userPipelineKeys = new Set();
27
27
  const BASE_URL = process.env.BAPI_BASE_URL ?? "https://bridgegpt-api.com";
28
28
  const REPO_NAME = process.env.BAPI_REPO_NAME ?? "";
29
29
  const API_KEY = process.env.BAPI_API_KEY ?? "";
30
- const BAPI_DOCS_DIR = process.env.BAPI_DOCS_DIR ?? "docs/tmp";
30
+ const BAPI_DOCS_DIR = path.resolve(process.cwd(), process.env.BAPI_DOCS_DIR ?? "docs/tmp");
31
31
  const BAPI_PIPELINES_DIR = path.resolve(process.cwd(), process.env.BAPI_PIPELINES_DIR ?? ".bridge/pipelines");
32
32
  const GET_HEADERS = { "X-API-Key": API_KEY };
33
33
  const POST_HEADERS = {
@@ -191,7 +191,7 @@ async function pollForResult(getUrl, timeoutMs, label) {
191
191
  }
192
192
  console.error(`${label} in progress... (elapsed: ${elapsed}s)`);
193
193
  const resp = await fetch(getUrl, { headers: GET_HEADERS });
194
- if (resp.status === 404) {
194
+ if (resp.status === 404 || resp.status === 202) {
195
195
  await resp.text();
196
196
  }
197
197
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge_gpt/mcp-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Bridge API MCP server — exposes Jira endpoints as MCP tools for Claude Code agents",
5
5
  "license": "MIT",
6
6
  "type": "module",