@wisewandtools/mcp-server 2.0.7 → 2.0.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/dist/index.js CHANGED
@@ -288,11 +288,19 @@ var WisewandAPIClient = class {
288
288
  this.abortController.abort();
289
289
  }, this.config.timeout);
290
290
  try {
291
- logger.debug("API request", { method, endpoint, body });
291
+ const bodyJSON = body ? JSON.stringify(body) : void 0;
292
+ logger.info("API HTTP REQUEST", {
293
+ method,
294
+ endpoint,
295
+ url,
296
+ body,
297
+ bodyJSON,
298
+ body_includes_apply_project_brief_config: body?.apply_project_brief_config !== void 0
299
+ });
292
300
  const response = await fetch(url, {
293
301
  method,
294
302
  headers: this.headers,
295
- body: body ? JSON.stringify(body) : void 0,
303
+ body: bodyJSON,
296
304
  signal: this.abortController.signal,
297
305
  ...options
298
306
  });
@@ -495,6 +503,14 @@ var WisewandAPIClient = class {
495
503
  }
496
504
  // ============= Content Discovery =============
497
505
  async discoverArticles(input) {
506
+ logger.info("API Client discoverArticles - INPUT TO API", {
507
+ apply_project_brief_config: input.apply_project_brief_config,
508
+ apply_project_brief_config_type: typeof input.apply_project_brief_config,
509
+ has_project_id: !!input.project_id,
510
+ subject: input.subject,
511
+ endpoint: "/v1/discoverarticles/",
512
+ full_input: input
513
+ });
498
514
  return this.request("POST", "/v1/discoverarticles/", input);
499
515
  }
500
516
  async getDiscoverArticle(id) {
@@ -4073,11 +4089,17 @@ var DiscoverToolHandler = class {
4073
4089
  },
4074
4090
  handler: /* @__PURE__ */ __name(async (args) => {
4075
4091
  try {
4092
+ logger.info("discover_content RAW INPUT", {
4093
+ raw_args: args,
4094
+ apply_project_brief_config_raw: args.apply_project_brief_config,
4095
+ apply_project_brief_config_raw_type: typeof args.apply_project_brief_config
4096
+ });
4076
4097
  const validated = DiscoverContentSchema.parse(args);
4077
- logger.debug("Discover article validated input", {
4098
+ logger.info("discover_content VALIDATED (after boolField transform)", {
4078
4099
  apply_project_brief_config: validated.apply_project_brief_config,
4079
4100
  apply_project_brief_config_type: typeof validated.apply_project_brief_config,
4080
- has_project_id: !!validated.project_id
4101
+ has_project_id: !!validated.project_id,
4102
+ full_validated: validated
4081
4103
  });
4082
4104
  const discovery = await this.apiClient.discoverArticles(validated);
4083
4105
  await this.cache.set(`discover:${discovery.id}`, discovery, 300);