@productbrain/mcp 0.0.1-beta.12322 → 0.0.1-beta.12328

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.
@@ -40,7 +40,7 @@ import {
40
40
  runWithToolContext,
41
41
  setSessionOriented,
42
42
  startAgentSession
43
- } from "./chunk-C6EW2Z4P.js";
43
+ } from "./chunk-MAMOO7UB.js";
44
44
 
45
45
  // src/server.ts
46
46
  import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -11941,4 +11941,4 @@ export {
11941
11941
  SERVER_VERSION,
11942
11942
  createProductBrainServer
11943
11943
  };
11944
- //# sourceMappingURL=chunk-NGPJ7O5G.js.map
11944
+ //# sourceMappingURL=chunk-KUDP47JE.js.map
@@ -1303,10 +1303,11 @@ function cacheScope() {
1303
1303
  const key = getRequestApiKey();
1304
1304
  return key ? hashKey(key) : "stdio";
1305
1305
  }
1306
+ var httpMode = false;
1306
1307
  function getActiveApiKey() {
1307
1308
  const fromRequest = getRequestApiKey();
1308
1309
  if (fromRequest) return fromRequest;
1309
- const fromEnv = process.env.PRODUCTBRAIN_API_KEY;
1310
+ const fromEnv = httpMode ? void 0 : process.env.PRODUCTBRAIN_API_KEY;
1310
1311
  if (!fromEnv) throw new Error("No API key available \u2014 set PRODUCTBRAIN_API_KEY or provide Bearer token");
1311
1312
  return fromEnv;
1312
1313
  }
@@ -1443,6 +1444,7 @@ function bootstrap() {
1443
1444
  }
1444
1445
  }
1445
1446
  function bootstrapHttp() {
1447
+ httpMode = true;
1446
1448
  const explicit = process.env.CONVEX_SITE_URL ?? process.env.PRODUCTBRAIN_URL;
1447
1449
  process.env.CONVEX_SITE_URL ??= process.env.PRODUCTBRAIN_URL ?? DEFAULT_CLOUD_URL;
1448
1450
  warnOnProdFallthrough(process.env.CONVEX_SITE_URL, { explicit: explicit != null });
@@ -1790,4 +1792,4 @@ export {
1790
1792
  appUrl,
1791
1793
  apiKeysUrl
1792
1794
  };
1793
- //# sourceMappingURL=chunk-C6EW2Z4P.js.map
1795
+ //# sourceMappingURL=chunk-MAMOO7UB.js.map