@wisewandtools/mcp-server 2.0.5 → 2.0.7
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 +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3907,12 +3907,16 @@ var ProductPagesToolHandler = class {
|
|
|
3907
3907
|
|
|
3908
3908
|
// src/handlers/tools/DiscoverToolHandler.ts
|
|
3909
3909
|
import { z as z8 } from "zod";
|
|
3910
|
+
var boolField2 = z8.union([z8.boolean(), z8.string()]).transform(
|
|
3911
|
+
(val) => typeof val === "string" ? val === "true" : val
|
|
3912
|
+
).optional();
|
|
3910
3913
|
var DiscoverContentSchema = z8.object({
|
|
3911
3914
|
subject: z8.string().min(1),
|
|
3912
3915
|
target_keyword: z8.string().optional(),
|
|
3913
3916
|
keywords_secondary: z8.string().optional(),
|
|
3914
3917
|
project_id: z8.string().uuid().optional(),
|
|
3915
3918
|
persona_id: z8.string().uuid().optional(),
|
|
3919
|
+
apply_project_brief_config: boolField2,
|
|
3916
3920
|
lang: z8.enum(["fr", "en"]).optional(),
|
|
3917
3921
|
country: z8.enum(["fr", "be", "ch", "ca", "us", "gb"]).optional(),
|
|
3918
3922
|
length: z8.union([z8.number().max(2e3), z8.literal("auto")]).optional(),
|
|
@@ -4008,6 +4012,7 @@ var DiscoverToolHandler = class {
|
|
|
4008
4012
|
keywords_secondary: { type: "string", description: "Secondary keywords" },
|
|
4009
4013
|
project_id: { type: "string", format: "uuid", description: "Project UUID" },
|
|
4010
4014
|
persona_id: { type: "string", format: "uuid", description: "Persona UUID" },
|
|
4015
|
+
apply_project_brief_config: { type: "boolean", description: "Apply project brief configuration settings. When true, inherits all feature flags and settings from the project brief (use_faq, use_toc, use_inline_images, internal links, etc.). Recommended for consistency." },
|
|
4011
4016
|
lang: { type: "string", enum: ["fr", "en"], description: "Language code" },
|
|
4012
4017
|
country: { type: "string", enum: ["fr", "be", "ch", "ca", "us", "gb"], description: "Country code" },
|
|
4013
4018
|
length: { description: 'Number (max 2000) or "auto"' },
|
|
@@ -4069,6 +4074,11 @@ var DiscoverToolHandler = class {
|
|
|
4069
4074
|
handler: /* @__PURE__ */ __name(async (args) => {
|
|
4070
4075
|
try {
|
|
4071
4076
|
const validated = DiscoverContentSchema.parse(args);
|
|
4077
|
+
logger.debug("Discover article validated input", {
|
|
4078
|
+
apply_project_brief_config: validated.apply_project_brief_config,
|
|
4079
|
+
apply_project_brief_config_type: typeof validated.apply_project_brief_config,
|
|
4080
|
+
has_project_id: !!validated.project_id
|
|
4081
|
+
});
|
|
4072
4082
|
const discovery = await this.apiClient.discoverArticles(validated);
|
|
4073
4083
|
await this.cache.set(`discover:${discovery.id}`, discovery, 300);
|
|
4074
4084
|
this.metrics.recordAPICall("discover_content", "success");
|