@productmaker/mcp 12.27.0 → 12.28.0
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/README.md +1 -0
- package/dist/http.js +62 -1
- package/dist/stdio.js +62 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,6 +248,7 @@ its service-page editor, including its generation progress.
|
|
|
248
248
|
| `resolve_unmatched_product` | Give an owner to an unrecognized imported product: with `productControlId` the alias hangs off that record and its orders move there; without it a new record is created under `label`. Neither path discards orders — there is no "not mine" route because the information already came in |
|
|
249
249
|
| `list_linkable_campaigns` | Read the Meta/TikTok campaigns available to tie to a product, so identifiers never have to be typed. Empty means the ad account is not connected or has no campaigns — connecting happens in Integrations, not here |
|
|
250
250
|
| `link_product_campaign` | Tie an ad campaign to a product in financial control; its spend then feeds the product's cost-per-sale. The identifiers come from `list_linkable_campaigns` — never invent them. The product is said ONE way: `productControlId`, or `shopDomain` + `shopifyProductId` |
|
|
251
|
+
| `unlink_product_campaign` | Untie a campaign from a product in financial control; its spend stops counting for that product. The campaign itself stays as it is in Meta or TikTok and can be linked again. Ids come from `get_product_control` — confirm with the person first |
|
|
251
252
|
| `delete_monthly_expense` | Delete one fixed expense of the month by month + label. To change the amount do NOT delete — `set_monthly_expense` with the new value is the correction |
|
|
252
253
|
| `remove_product_control` | Remove a product from financial control together with its costs and its linked campaign. The id comes from `get_product_control` — confirm by NAME which product leaves |
|
|
253
254
|
| `get_agent_memory_brief` | Read the Drop Maker agent's memory at the start of a run: latest playbook, product sheets (stage, target CPA, verdict, links), open experiments, open pending items and recent notes. Business numbers are NOT here — read them from financial control |
|
package/dist/http.js
CHANGED
|
@@ -24004,6 +24004,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
24004
24004
|
"requiere confirmaci\xF3n; desde ese momento el sem\xE1foro lee el gasto de esa campa\xF1a"
|
|
24005
24005
|
]
|
|
24006
24006
|
},
|
|
24007
|
+
unlink_product_campaign: {
|
|
24008
|
+
summary: "Suelta una campa\xF1a de un producto de su control financiero.",
|
|
24009
|
+
useWhen: [
|
|
24010
|
+
"esa campa\xF1a ya no es de este producto",
|
|
24011
|
+
"desliga la campa\xF1a vieja del producto"
|
|
24012
|
+
],
|
|
24013
|
+
avoidWhen: [
|
|
24014
|
+
"quiere sacar el producto entero: remove_product_control"
|
|
24015
|
+
],
|
|
24016
|
+
defaults: [
|
|
24017
|
+
"la campa\xF1a sale de get_product_control; nunca la inventes"
|
|
24018
|
+
],
|
|
24019
|
+
disclosures: [
|
|
24020
|
+
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
24021
|
+
]
|
|
24022
|
+
},
|
|
24007
24023
|
delete_monthly_expense: {
|
|
24008
24024
|
summary: "Borra un gasto fijo del mes.",
|
|
24009
24025
|
useWhen: [
|
|
@@ -27579,6 +27595,32 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27579
27595
|
],
|
|
27580
27596
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27581
27597
|
),
|
|
27598
|
+
defineCapability(
|
|
27599
|
+
"unlink_product_campaign",
|
|
27600
|
+
// Filled by the MCP schema fingerprint test.
|
|
27601
|
+
"ef6d612607189774545d0aaeb1f392a239bfcd83de0d732b049222372ef243f5",
|
|
27602
|
+
"state_change",
|
|
27603
|
+
"business",
|
|
27604
|
+
[
|
|
27605
|
+
"state_change"
|
|
27606
|
+
],
|
|
27607
|
+
[
|
|
27608
|
+
slot("product_control", true, [
|
|
27609
|
+
"productControlId"
|
|
27610
|
+
]),
|
|
27611
|
+
slot("campaign", true, [
|
|
27612
|
+
"campaignId"
|
|
27613
|
+
])
|
|
27614
|
+
],
|
|
27615
|
+
[
|
|
27616
|
+
"product_control",
|
|
27617
|
+
"campaign_link"
|
|
27618
|
+
],
|
|
27619
|
+
[
|
|
27620
|
+
"campaign_link"
|
|
27621
|
+
],
|
|
27622
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27623
|
+
),
|
|
27582
27624
|
defineCapability(
|
|
27583
27625
|
"delete_monthly_expense",
|
|
27584
27626
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -34935,7 +34977,7 @@ var ApiClient = class {
|
|
|
34935
34977
|
};
|
|
34936
34978
|
|
|
34937
34979
|
// src/index.ts
|
|
34938
|
-
var MCP_VERSION = "12.
|
|
34980
|
+
var MCP_VERSION = "12.28.0";
|
|
34939
34981
|
|
|
34940
34982
|
// src/meta-upload-app.ts
|
|
34941
34983
|
import { readFileSync } from "fs";
|
|
@@ -36348,6 +36390,7 @@ var McpErrorCode = {
|
|
|
36348
36390
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND",
|
|
36349
36391
|
// Drop Maker agent memory
|
|
36350
36392
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
36393
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
36351
36394
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
36352
36395
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
36353
36396
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -36615,6 +36658,7 @@ var CODE_MESSAGES = {
|
|
|
36615
36658
|
DROPSHIPPING_PROJECT_CAMPAIGN_ALREADY_LINKED: "That campaign is already linked to a different project. Choose another campaign, or unlink it from the other project first.",
|
|
36616
36659
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "That campaign was not found in any of this user's connected ad accounts. Verify the `campaignId` (and `accountId` for TikTok).",
|
|
36617
36660
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
36661
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
36618
36662
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
36619
36663
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
36620
36664
|
AGENT_EXPERIMENT_NOT_FOUND: "No experiment with that id in this account's agent memory. Read the brief or search experiments for the right id.",
|
|
@@ -36674,6 +36718,7 @@ var CODE_MESSAGES = {
|
|
|
36674
36718
|
};
|
|
36675
36719
|
var AGENT_MEMORY_CODES = [
|
|
36676
36720
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
36721
|
+
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
36677
36722
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
36678
36723
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
36679
36724
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -45624,6 +45669,7 @@ var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatch
|
|
|
45624
45669
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
45625
45670
|
var listLinkableCampaignsGuidance = getProductMakerCapabilityModelGuidance("list_linkable_campaigns");
|
|
45626
45671
|
var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_product_campaign");
|
|
45672
|
+
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
45627
45673
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
45628
45674
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
45629
45675
|
var DateOnly2 = z173.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
@@ -45741,6 +45787,10 @@ var LinkProductCampaignInput = z173.object({
|
|
|
45741
45787
|
shopifyProductId: z173.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
45742
45788
|
}).strict();
|
|
45743
45789
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
45790
|
+
var UnlinkProductCampaignInput = z173.object({
|
|
45791
|
+
productControlId: z173.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
45792
|
+
campaignId: z173.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("La campa\xF1a vinculada que se suelta. Sale de get_product_control; nunca se inventa.")
|
|
45793
|
+
}).strict();
|
|
45744
45794
|
var RemoveProductControlInput = z173.object({
|
|
45745
45795
|
productControlId: z173.string().guid().describe("El id del producto en su control. Sale del listado; nunca se inventa.")
|
|
45746
45796
|
}).strict();
|
|
@@ -46097,6 +46147,17 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
46097
46147
|
throw translateError(error);
|
|
46098
46148
|
}
|
|
46099
46149
|
});
|
|
46150
|
+
server.registerTool("unlink_product_campaign", {
|
|
46151
|
+
description: unlinkProductCampaignGuidance.summary + " Solo borra el v\xEDnculo: la campa\xF1a sigue igual en Meta o TikTok y se puede volver a vincular con link_product_campaign. Desde ese momento su gasto deja de contar para el producto y para el balance del mes, tambi\xE9n el que ya gast\xF3: si la campa\xF1a gast\xF3, av\xEDsale a la persona y corrige el mes con set_ad_spend usando el total del mes de todas sus campa\xF1as. Si la campa\xF1a no estaba vinculada a ese producto responde que no est\xE1 vinculada. Confirma con la persona qu\xE9 campa\xF1a suelta antes de llamarla.",
|
|
46152
|
+
inputSchema: UnlinkProductCampaignInput.shape,
|
|
46153
|
+
annotations: OVERWRITES_INTERNAL
|
|
46154
|
+
}, async (input) => {
|
|
46155
|
+
try {
|
|
46156
|
+
return asText(await api.deleteJson(`/v1/product-control/${encodeURIComponent(input.productControlId)}/campaigns/${encodeURIComponent(input.campaignId)}`));
|
|
46157
|
+
} catch (error) {
|
|
46158
|
+
throw translateError(error);
|
|
46159
|
+
}
|
|
46160
|
+
});
|
|
46100
46161
|
server.registerTool("delete_monthly_expense", {
|
|
46101
46162
|
description: deleteMonthlyExpenseGuidance.summary + " Borra por mes + etiqueta, los dos datos que la persona ve en su lista. Para cambiar el monto NO se borra: set_monthly_expense con el valor nuevo es la correcci\xF3n.",
|
|
46102
46163
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/dist/stdio.js
CHANGED
|
@@ -23779,6 +23779,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
23779
23779
|
"requiere confirmaci\xF3n; desde ese momento el sem\xE1foro lee el gasto de esa campa\xF1a"
|
|
23780
23780
|
]
|
|
23781
23781
|
},
|
|
23782
|
+
unlink_product_campaign: {
|
|
23783
|
+
summary: "Suelta una campa\xF1a de un producto de su control financiero.",
|
|
23784
|
+
useWhen: [
|
|
23785
|
+
"esa campa\xF1a ya no es de este producto",
|
|
23786
|
+
"desliga la campa\xF1a vieja del producto"
|
|
23787
|
+
],
|
|
23788
|
+
avoidWhen: [
|
|
23789
|
+
"quiere sacar el producto entero: remove_product_control"
|
|
23790
|
+
],
|
|
23791
|
+
defaults: [
|
|
23792
|
+
"la campa\xF1a sale de get_product_control; nunca la inventes"
|
|
23793
|
+
],
|
|
23794
|
+
disclosures: [
|
|
23795
|
+
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
23796
|
+
]
|
|
23797
|
+
},
|
|
23782
23798
|
delete_monthly_expense: {
|
|
23783
23799
|
summary: "Borra un gasto fijo del mes.",
|
|
23784
23800
|
useWhen: [
|
|
@@ -27354,6 +27370,32 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27354
27370
|
],
|
|
27355
27371
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27356
27372
|
),
|
|
27373
|
+
defineCapability(
|
|
27374
|
+
"unlink_product_campaign",
|
|
27375
|
+
// Filled by the MCP schema fingerprint test.
|
|
27376
|
+
"ef6d612607189774545d0aaeb1f392a239bfcd83de0d732b049222372ef243f5",
|
|
27377
|
+
"state_change",
|
|
27378
|
+
"business",
|
|
27379
|
+
[
|
|
27380
|
+
"state_change"
|
|
27381
|
+
],
|
|
27382
|
+
[
|
|
27383
|
+
slot("product_control", true, [
|
|
27384
|
+
"productControlId"
|
|
27385
|
+
]),
|
|
27386
|
+
slot("campaign", true, [
|
|
27387
|
+
"campaignId"
|
|
27388
|
+
])
|
|
27389
|
+
],
|
|
27390
|
+
[
|
|
27391
|
+
"product_control",
|
|
27392
|
+
"campaign_link"
|
|
27393
|
+
],
|
|
27394
|
+
[
|
|
27395
|
+
"campaign_link"
|
|
27396
|
+
],
|
|
27397
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27398
|
+
),
|
|
27357
27399
|
defineCapability(
|
|
27358
27400
|
"delete_monthly_expense",
|
|
27359
27401
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -33262,7 +33304,7 @@ var ApiClient = class {
|
|
|
33262
33304
|
};
|
|
33263
33305
|
|
|
33264
33306
|
// src/index.ts
|
|
33265
|
-
var MCP_VERSION = "12.
|
|
33307
|
+
var MCP_VERSION = "12.28.0";
|
|
33266
33308
|
|
|
33267
33309
|
// src/meta-upload-app.ts
|
|
33268
33310
|
import { readFileSync } from "fs";
|
|
@@ -34679,6 +34721,7 @@ var McpErrorCode = {
|
|
|
34679
34721
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND",
|
|
34680
34722
|
// Drop Maker agent memory
|
|
34681
34723
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
34724
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
34682
34725
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
34683
34726
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
34684
34727
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -34946,6 +34989,7 @@ var CODE_MESSAGES = {
|
|
|
34946
34989
|
DROPSHIPPING_PROJECT_CAMPAIGN_ALREADY_LINKED: "That campaign is already linked to a different project. Choose another campaign, or unlink it from the other project first.",
|
|
34947
34990
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "That campaign was not found in any of this user's connected ad accounts. Verify the `campaignId` (and `accountId` for TikTok).",
|
|
34948
34991
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
34992
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
34949
34993
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
34950
34994
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
34951
34995
|
AGENT_EXPERIMENT_NOT_FOUND: "No experiment with that id in this account's agent memory. Read the brief or search experiments for the right id.",
|
|
@@ -35005,6 +35049,7 @@ var CODE_MESSAGES = {
|
|
|
35005
35049
|
};
|
|
35006
35050
|
var AGENT_MEMORY_CODES = [
|
|
35007
35051
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
35052
|
+
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
35008
35053
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
35009
35054
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
35010
35055
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -44109,6 +44154,7 @@ var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatch
|
|
|
44109
44154
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
44110
44155
|
var listLinkableCampaignsGuidance = getProductMakerCapabilityModelGuidance("list_linkable_campaigns");
|
|
44111
44156
|
var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_product_campaign");
|
|
44157
|
+
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
44112
44158
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
44113
44159
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
44114
44160
|
var DateOnly2 = z172.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
@@ -44226,6 +44272,10 @@ var LinkProductCampaignInput = z172.object({
|
|
|
44226
44272
|
shopifyProductId: z172.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
44227
44273
|
}).strict();
|
|
44228
44274
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
44275
|
+
var UnlinkProductCampaignInput = z172.object({
|
|
44276
|
+
productControlId: z172.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
44277
|
+
campaignId: z172.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("La campa\xF1a vinculada que se suelta. Sale de get_product_control; nunca se inventa.")
|
|
44278
|
+
}).strict();
|
|
44229
44279
|
var RemoveProductControlInput = z172.object({
|
|
44230
44280
|
productControlId: z172.string().guid().describe("El id del producto en su control. Sale del listado; nunca se inventa.")
|
|
44231
44281
|
}).strict();
|
|
@@ -44582,6 +44632,17 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44582
44632
|
throw translateError(error);
|
|
44583
44633
|
}
|
|
44584
44634
|
});
|
|
44635
|
+
server.registerTool("unlink_product_campaign", {
|
|
44636
|
+
description: unlinkProductCampaignGuidance.summary + " Solo borra el v\xEDnculo: la campa\xF1a sigue igual en Meta o TikTok y se puede volver a vincular con link_product_campaign. Desde ese momento su gasto deja de contar para el producto y para el balance del mes, tambi\xE9n el que ya gast\xF3: si la campa\xF1a gast\xF3, av\xEDsale a la persona y corrige el mes con set_ad_spend usando el total del mes de todas sus campa\xF1as. Si la campa\xF1a no estaba vinculada a ese producto responde que no est\xE1 vinculada. Confirma con la persona qu\xE9 campa\xF1a suelta antes de llamarla.",
|
|
44637
|
+
inputSchema: UnlinkProductCampaignInput.shape,
|
|
44638
|
+
annotations: OVERWRITES_INTERNAL
|
|
44639
|
+
}, async (input) => {
|
|
44640
|
+
try {
|
|
44641
|
+
return asText(await api.deleteJson(`/v1/product-control/${encodeURIComponent(input.productControlId)}/campaigns/${encodeURIComponent(input.campaignId)}`));
|
|
44642
|
+
} catch (error) {
|
|
44643
|
+
throw translateError(error);
|
|
44644
|
+
}
|
|
44645
|
+
});
|
|
44585
44646
|
server.registerTool("delete_monthly_expense", {
|
|
44586
44647
|
description: deleteMonthlyExpenseGuidance.summary + " Borra por mes + etiqueta, los dos datos que la persona ve en su lista. Para cambiar el monto NO se borra: set_monthly_expense con el valor nuevo es la correcci\xF3n.",
|
|
44587
44648
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.28.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ProductMaker MCP server — cost products, generate landing pages, UGC videos, and ad creatives, and publish to Shopify, Meta Ads, and TikTok Ads.",
|