@wisewandtools/mcp-server 2.1.1 → 2.1.2
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 +11 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -374,14 +374,17 @@ var WisewandAPIClient = class {
|
|
|
374
374
|
articles_type: typeof articles,
|
|
375
375
|
is_array: Array.isArray(articles),
|
|
376
376
|
articles_length: Array.isArray(articles) ? articles.length : "N/A",
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
wrapped_stringified: JSON.stringify({ articles }).substring(0, 200)
|
|
377
|
+
format: "raw_array",
|
|
378
|
+
first_article: articles.length > 0 ? articles[0] : null
|
|
380
379
|
});
|
|
381
|
-
|
|
380
|
+
const response = await this.request("POST", "/v1/articles/bulk", articles);
|
|
381
|
+
return {
|
|
382
|
+
items: response.ids.map((id) => ({ id })),
|
|
383
|
+
errors: []
|
|
384
|
+
};
|
|
382
385
|
}
|
|
383
386
|
async calculateBulkCost(articles) {
|
|
384
|
-
return this.request("POST", "/v1/articles/bulk/cost",
|
|
387
|
+
return this.request("POST", "/v1/articles/bulk/cost", articles);
|
|
385
388
|
}
|
|
386
389
|
// ============= Project Operations =============
|
|
387
390
|
async createProject(input) {
|
|
@@ -476,7 +479,7 @@ var WisewandAPIClient = class {
|
|
|
476
479
|
return this.request("POST", "/v1/categorypages/cost", input);
|
|
477
480
|
}
|
|
478
481
|
async createBulkCategoryPages(items) {
|
|
479
|
-
return this.request("POST", "/v1/categorypages/bulk",
|
|
482
|
+
return this.request("POST", "/v1/categorypages/bulk", items);
|
|
480
483
|
}
|
|
481
484
|
// ============= Product Pages =============
|
|
482
485
|
async createProductPage(input) {
|
|
@@ -502,7 +505,7 @@ var WisewandAPIClient = class {
|
|
|
502
505
|
return this.request("POST", "/v1/productpages/cost", input);
|
|
503
506
|
}
|
|
504
507
|
async createBulkProductPages(items) {
|
|
505
|
-
return this.request("POST", "/v1/productpages/bulk",
|
|
508
|
+
return this.request("POST", "/v1/productpages/bulk", items);
|
|
506
509
|
}
|
|
507
510
|
// ============= Content Discovery =============
|
|
508
511
|
async discoverArticles(input) {
|
|
@@ -528,7 +531,7 @@ var WisewandAPIClient = class {
|
|
|
528
531
|
return this.request("POST", "/v1/discoverarticles/cost", input);
|
|
529
532
|
}
|
|
530
533
|
async createBulkDiscoverArticles(items) {
|
|
531
|
-
return this.request("POST", "/v1/discoverarticles/bulk",
|
|
534
|
+
return this.request("POST", "/v1/discoverarticles/bulk", items);
|
|
532
535
|
}
|
|
533
536
|
// ============= Feeds (was RSS Feed Triggers) =============
|
|
534
537
|
async createFeed(input) {
|