@productbrain/mcp 0.0.1-beta.38 → 0.0.1-beta.39

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.
@@ -218,13 +218,13 @@ async function recordSessionActivity(activity) {
218
218
  var AUDIT_BUFFER_SIZE = 50;
219
219
  var auditBuffer = [];
220
220
  function bootstrap() {
221
+ process.env.CONVEX_SITE_URL ??= process.env.PRODUCTBRAIN_URL ?? DEFAULT_CLOUD_URL;
221
222
  const pbKey = process.env.PRODUCTBRAIN_API_KEY;
222
223
  if (!pbKey?.startsWith("pb_sk_")) {
223
- throw new Error(
224
- "PRODUCTBRAIN_API_KEY is required and must start with 'pb_sk_'. Generate one at Settings > API Keys in the Product OS UI."
224
+ process.stderr.write(
225
+ "[MCP] Warning: PRODUCTBRAIN_API_KEY is not set or invalid. Tool calls will fail until a valid key is provided.\n"
225
226
  );
226
227
  }
227
- process.env.CONVEX_SITE_URL ??= process.env.PRODUCTBRAIN_URL ?? DEFAULT_CLOUD_URL;
228
228
  }
229
229
  function bootstrapHttp() {
230
230
  process.env.CONVEX_SITE_URL ??= process.env.PRODUCTBRAIN_URL ?? DEFAULT_CLOUD_URL;
@@ -1865,4 +1865,4 @@ export {
1865
1865
  formatRubricCoaching,
1866
1866
  formatRubricVerdictSection
1867
1867
  };
1868
- //# sourceMappingURL=chunk-7LEGOXN4.js.map
1868
+ //# sourceMappingURL=chunk-7VJP2IMS.js.map