@wisewandtools/mcp-server 2.0.4 → 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 +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -589,9 +589,10 @@ var WisewandAPIClient = class {
|
|
|
589
589
|
}
|
|
590
590
|
async checkHealth() {
|
|
591
591
|
try {
|
|
592
|
-
const response = await fetch(`${this.config.apiUrl}/
|
|
592
|
+
const response = await fetch(`${this.config.apiUrl}/v1/projects/?take=1`, {
|
|
593
593
|
headers: {
|
|
594
|
-
"Authorization": `Bearer ${this.config.apiKey}
|
|
594
|
+
"Authorization": `Bearer ${this.config.apiKey}`,
|
|
595
|
+
"Content-Type": "application/json"
|
|
595
596
|
},
|
|
596
597
|
signal: AbortSignal.timeout(5e3)
|
|
597
598
|
});
|
|
@@ -3906,12 +3907,16 @@ var ProductPagesToolHandler = class {
|
|
|
3906
3907
|
|
|
3907
3908
|
// src/handlers/tools/DiscoverToolHandler.ts
|
|
3908
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();
|
|
3909
3913
|
var DiscoverContentSchema = z8.object({
|
|
3910
3914
|
subject: z8.string().min(1),
|
|
3911
3915
|
target_keyword: z8.string().optional(),
|
|
3912
3916
|
keywords_secondary: z8.string().optional(),
|
|
3913
3917
|
project_id: z8.string().uuid().optional(),
|
|
3914
3918
|
persona_id: z8.string().uuid().optional(),
|
|
3919
|
+
apply_project_brief_config: boolField2,
|
|
3915
3920
|
lang: z8.enum(["fr", "en"]).optional(),
|
|
3916
3921
|
country: z8.enum(["fr", "be", "ch", "ca", "us", "gb"]).optional(),
|
|
3917
3922
|
length: z8.union([z8.number().max(2e3), z8.literal("auto")]).optional(),
|
|
@@ -4007,6 +4012,7 @@ var DiscoverToolHandler = class {
|
|
|
4007
4012
|
keywords_secondary: { type: "string", description: "Secondary keywords" },
|
|
4008
4013
|
project_id: { type: "string", format: "uuid", description: "Project UUID" },
|
|
4009
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." },
|
|
4010
4016
|
lang: { type: "string", enum: ["fr", "en"], description: "Language code" },
|
|
4011
4017
|
country: { type: "string", enum: ["fr", "be", "ch", "ca", "us", "gb"], description: "Country code" },
|
|
4012
4018
|
length: { description: 'Number (max 2000) or "auto"' },
|
|
@@ -4068,6 +4074,11 @@ var DiscoverToolHandler = class {
|
|
|
4068
4074
|
handler: /* @__PURE__ */ __name(async (args) => {
|
|
4069
4075
|
try {
|
|
4070
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
|
+
});
|
|
4071
4082
|
const discovery = await this.apiClient.discoverArticles(validated);
|
|
4072
4083
|
await this.cache.set(`discover:${discovery.id}`, discovery, 300);
|
|
4073
4084
|
this.metrics.recordAPICall("discover_content", "success");
|