@productmaker/mcp 12.27.0 → 12.29.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 +80 -3
- package/dist/stdio.js +80 -3
- 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
|
@@ -20030,6 +20030,16 @@ var SaveAgentSettingsSchema = z81.object({
|
|
|
20030
20030
|
* Null = un día del presupuesto de la campaña en Meta (dueño, 21/11/2026).
|
|
20031
20031
|
*/
|
|
20032
20032
|
testLossCap: z81.number().int().min(1).max(1e9).nullable().optional(),
|
|
20033
|
+
/**
|
|
20034
|
+
* Etapa 4.2: tope de pauta del día en `budgetCurrency` (presupuestos de las
|
|
20035
|
+
* campañas prendidas más lo gastado hoy). El servidor no propone prender ni
|
|
20036
|
+
* lanzar lo que no cabe, y si el gasto real lo pasa propone pausar.
|
|
20037
|
+
*/
|
|
20038
|
+
dailyAdSpendCap: z81.number().int().min(1).max(1e9).nullable().optional(),
|
|
20039
|
+
/** Etapa 4.2: campañas de prueba prendidas a la vez. */
|
|
20040
|
+
openTestCap: z81.number().int().min(1).max(100).nullable().optional(),
|
|
20041
|
+
/** Etapa 4.2: lanzamientos del servidor por semana, lunes a lunes. */
|
|
20042
|
+
weeklyLaunchCap: z81.number().int().min(1).max(100).nullable().optional(),
|
|
20033
20043
|
/** Prende o apaga los turnos cada 3 horas. */
|
|
20034
20044
|
autopilot: z81.boolean().optional()
|
|
20035
20045
|
}).strict();
|
|
@@ -20171,6 +20181,12 @@ var AgentSettingsSchema = z81.object({
|
|
|
20171
20181
|
budgetCurrency: z81.string(),
|
|
20172
20182
|
/** Pérdida máxima por prueba abierta en `budgetCurrency`; null = un día del presupuesto de la campaña. */
|
|
20173
20183
|
testLossCap: z81.number().int().nullable(),
|
|
20184
|
+
/** Etapa 4.2, null = sin tope: pauta del día en `budgetCurrency`. */
|
|
20185
|
+
dailyAdSpendCap: z81.number().int().nullable(),
|
|
20186
|
+
/** Etapa 4.2, null = sin tope: pruebas prendidas a la vez. */
|
|
20187
|
+
openTestCap: z81.number().int().nullable(),
|
|
20188
|
+
/** Etapa 4.2, null = sin tope: lanzamientos por semana (lunes a lunes). */
|
|
20189
|
+
weeklyLaunchCap: z81.number().int().nullable(),
|
|
20174
20190
|
autopilot: z81.boolean(),
|
|
20175
20191
|
/** Null mientras la cuenta no ha guardado nada. */
|
|
20176
20192
|
updatedAt: z81.string().nullable()
|
|
@@ -24004,6 +24020,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
24004
24020
|
"requiere confirmaci\xF3n; desde ese momento el sem\xE1foro lee el gasto de esa campa\xF1a"
|
|
24005
24021
|
]
|
|
24006
24022
|
},
|
|
24023
|
+
unlink_product_campaign: {
|
|
24024
|
+
summary: "Suelta una campa\xF1a de un producto de su control financiero.",
|
|
24025
|
+
useWhen: [
|
|
24026
|
+
"esa campa\xF1a ya no es de este producto",
|
|
24027
|
+
"desliga la campa\xF1a vieja del producto"
|
|
24028
|
+
],
|
|
24029
|
+
avoidWhen: [
|
|
24030
|
+
"quiere sacar el producto entero: remove_product_control"
|
|
24031
|
+
],
|
|
24032
|
+
defaults: [
|
|
24033
|
+
"la campa\xF1a sale de get_product_control; nunca la inventes"
|
|
24034
|
+
],
|
|
24035
|
+
disclosures: [
|
|
24036
|
+
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
24037
|
+
]
|
|
24038
|
+
},
|
|
24007
24039
|
delete_monthly_expense: {
|
|
24008
24040
|
summary: "Borra un gasto fijo del mes.",
|
|
24009
24041
|
useWhen: [
|
|
@@ -27579,6 +27611,32 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27579
27611
|
],
|
|
27580
27612
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27581
27613
|
),
|
|
27614
|
+
defineCapability(
|
|
27615
|
+
"unlink_product_campaign",
|
|
27616
|
+
// Filled by the MCP schema fingerprint test.
|
|
27617
|
+
"ef6d612607189774545d0aaeb1f392a239bfcd83de0d732b049222372ef243f5",
|
|
27618
|
+
"state_change",
|
|
27619
|
+
"business",
|
|
27620
|
+
[
|
|
27621
|
+
"state_change"
|
|
27622
|
+
],
|
|
27623
|
+
[
|
|
27624
|
+
slot("product_control", true, [
|
|
27625
|
+
"productControlId"
|
|
27626
|
+
]),
|
|
27627
|
+
slot("campaign", true, [
|
|
27628
|
+
"campaignId"
|
|
27629
|
+
])
|
|
27630
|
+
],
|
|
27631
|
+
[
|
|
27632
|
+
"product_control",
|
|
27633
|
+
"campaign_link"
|
|
27634
|
+
],
|
|
27635
|
+
[
|
|
27636
|
+
"campaign_link"
|
|
27637
|
+
],
|
|
27638
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27639
|
+
),
|
|
27582
27640
|
defineCapability(
|
|
27583
27641
|
"delete_monthly_expense",
|
|
27584
27642
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -27711,7 +27769,7 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27711
27769
|
], SHARED_CHANNEL_EXPOSURE),
|
|
27712
27770
|
defineCapability(
|
|
27713
27771
|
"save_agent_memory",
|
|
27714
|
-
"
|
|
27772
|
+
"9175878d077502b36e523815ac836aaef9d352f7f8327818fcb4987d6e590a84",
|
|
27715
27773
|
// La memoria es el cuaderno del propio agente y no cobra créditos. Aprobar
|
|
27716
27774
|
// un pendiente que trae `operation` sí cambia la campaña o el conjunto en
|
|
27717
27775
|
// Meta: esa aprobación ES la confirmación del dueño (el pendiente muestra
|
|
@@ -34935,7 +34993,7 @@ var ApiClient = class {
|
|
|
34935
34993
|
};
|
|
34936
34994
|
|
|
34937
34995
|
// src/index.ts
|
|
34938
|
-
var MCP_VERSION = "12.
|
|
34996
|
+
var MCP_VERSION = "12.29.0";
|
|
34939
34997
|
|
|
34940
34998
|
// src/meta-upload-app.ts
|
|
34941
34999
|
import { readFileSync } from "fs";
|
|
@@ -36348,6 +36406,7 @@ var McpErrorCode = {
|
|
|
36348
36406
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND",
|
|
36349
36407
|
// Drop Maker agent memory
|
|
36350
36408
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
36409
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
36351
36410
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
36352
36411
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
36353
36412
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -36615,6 +36674,7 @@ var CODE_MESSAGES = {
|
|
|
36615
36674
|
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
36675
|
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
36676
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
36677
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
36618
36678
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
36619
36679
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
36620
36680
|
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 +36734,7 @@ var CODE_MESSAGES = {
|
|
|
36674
36734
|
};
|
|
36675
36735
|
var AGENT_MEMORY_CODES = [
|
|
36676
36736
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
36737
|
+
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
36677
36738
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
36678
36739
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
36679
36740
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -45551,7 +45612,7 @@ function queryString(values) {
|
|
|
45551
45612
|
__name(queryString, "queryString");
|
|
45552
45613
|
function registerAgentMemoryTools(server, api) {
|
|
45553
45614
|
server.registerTool("get_agent_memory_brief", {
|
|
45554
|
-
description: briefGuidance.summary + " Ll\xE1mala UNA vez al empezar cada corrida, antes de decidir nada: devuelve la \xFAltima versi\xF3n del playbook, la ficha de cada producto (c\xF3digo, etapa, CPA objetivo, veredicto y sus enlaces productControlId/projectId), los experimentos abiertos, los pendientes abiertos (aprobaciones del due\xF1o y seguimientos), las notas m\xE1s recientes, `settings` (tienda, cuenta de Meta, pa\xEDs, zona horaria, moneda, presupuesto sugerido por campa\xF1a, topes diarios
|
|
45615
|
+
description: briefGuidance.summary + " Ll\xE1mala UNA vez al empezar cada corrida, antes de decidir nada: devuelve la \xFAltima versi\xF3n del playbook, la ficha de cada producto (c\xF3digo, etapa, CPA objetivo, veredicto y sus enlaces productControlId/projectId), los experimentos abiertos, los pendientes abiertos (aprobaciones del due\xF1o y seguimientos), las notas m\xE1s recientes, `settings` (tienda, cuenta de Meta, pa\xEDs, zona horaria, moneda, presupuesto sugerido por campa\xF1a, topes diarios, el tope de p\xE9rdida por prueba (`testLossCap`), los topes de la etapa 4.2 (`dailyAdSpendCap` pauta del d\xEDa, `openTestCap` campa\xF1as prendidas a la vez, `weeklyLaunchCap` lanzamientos por semana) si el vendedor pidi\xF3 alguno y si el piloto autom\xE1tico est\xE1 prendido; lo que no se ha acordado viene en null: nada trae un valor fijo, s\xE1calo del contexto del vendedor y su producto o preg\xFAntale), `budget` (lo gastado HOY en esa zona: cr\xE9ditos de ProductMaker y conjuntos nuevos, contra su tope solo si existe), `currentSlot` (el turno de ahora del piloto autom\xE1tico y su fase, con `run` si alguien ya lo corri\xF3; null fuera de horario) y `recentRuns` (los \xFAltimos turnos con su reporte). Una cuenta nueva recibe todo vac\xEDo, no un error. Los n\xFAmeros de negocio (ventas, costo por venta, gasto) NO est\xE1n aqu\xED: l\xE9elos con get_daily_control / get_product_control usando los enlaces de cada ficha.",
|
|
45555
45616
|
inputSchema: BriefInput.shape,
|
|
45556
45617
|
annotations: READS_INTERNAL
|
|
45557
45618
|
}, async (input) => {
|
|
@@ -45624,6 +45685,7 @@ var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatch
|
|
|
45624
45685
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
45625
45686
|
var listLinkableCampaignsGuidance = getProductMakerCapabilityModelGuidance("list_linkable_campaigns");
|
|
45626
45687
|
var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_product_campaign");
|
|
45688
|
+
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
45627
45689
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
45628
45690
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
45629
45691
|
var DateOnly2 = z173.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
@@ -45741,6 +45803,10 @@ var LinkProductCampaignInput = z173.object({
|
|
|
45741
45803
|
shopifyProductId: z173.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
45742
45804
|
}).strict();
|
|
45743
45805
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
45806
|
+
var UnlinkProductCampaignInput = z173.object({
|
|
45807
|
+
productControlId: z173.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
45808
|
+
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.")
|
|
45809
|
+
}).strict();
|
|
45744
45810
|
var RemoveProductControlInput = z173.object({
|
|
45745
45811
|
productControlId: z173.string().guid().describe("El id del producto en su control. Sale del listado; nunca se inventa.")
|
|
45746
45812
|
}).strict();
|
|
@@ -46097,6 +46163,17 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
46097
46163
|
throw translateError(error);
|
|
46098
46164
|
}
|
|
46099
46165
|
});
|
|
46166
|
+
server.registerTool("unlink_product_campaign", {
|
|
46167
|
+
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.",
|
|
46168
|
+
inputSchema: UnlinkProductCampaignInput.shape,
|
|
46169
|
+
annotations: OVERWRITES_INTERNAL
|
|
46170
|
+
}, async (input) => {
|
|
46171
|
+
try {
|
|
46172
|
+
return asText(await api.deleteJson(`/v1/product-control/${encodeURIComponent(input.productControlId)}/campaigns/${encodeURIComponent(input.campaignId)}`));
|
|
46173
|
+
} catch (error) {
|
|
46174
|
+
throw translateError(error);
|
|
46175
|
+
}
|
|
46176
|
+
});
|
|
46100
46177
|
server.registerTool("delete_monthly_expense", {
|
|
46101
46178
|
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
46179
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/dist/stdio.js
CHANGED
|
@@ -19805,6 +19805,16 @@ var SaveAgentSettingsSchema = z81.object({
|
|
|
19805
19805
|
* Null = un día del presupuesto de la campaña en Meta (dueño, 21/11/2026).
|
|
19806
19806
|
*/
|
|
19807
19807
|
testLossCap: z81.number().int().min(1).max(1e9).nullable().optional(),
|
|
19808
|
+
/**
|
|
19809
|
+
* Etapa 4.2: tope de pauta del día en `budgetCurrency` (presupuestos de las
|
|
19810
|
+
* campañas prendidas más lo gastado hoy). El servidor no propone prender ni
|
|
19811
|
+
* lanzar lo que no cabe, y si el gasto real lo pasa propone pausar.
|
|
19812
|
+
*/
|
|
19813
|
+
dailyAdSpendCap: z81.number().int().min(1).max(1e9).nullable().optional(),
|
|
19814
|
+
/** Etapa 4.2: campañas de prueba prendidas a la vez. */
|
|
19815
|
+
openTestCap: z81.number().int().min(1).max(100).nullable().optional(),
|
|
19816
|
+
/** Etapa 4.2: lanzamientos del servidor por semana, lunes a lunes. */
|
|
19817
|
+
weeklyLaunchCap: z81.number().int().min(1).max(100).nullable().optional(),
|
|
19808
19818
|
/** Prende o apaga los turnos cada 3 horas. */
|
|
19809
19819
|
autopilot: z81.boolean().optional()
|
|
19810
19820
|
}).strict();
|
|
@@ -19946,6 +19956,12 @@ var AgentSettingsSchema = z81.object({
|
|
|
19946
19956
|
budgetCurrency: z81.string(),
|
|
19947
19957
|
/** Pérdida máxima por prueba abierta en `budgetCurrency`; null = un día del presupuesto de la campaña. */
|
|
19948
19958
|
testLossCap: z81.number().int().nullable(),
|
|
19959
|
+
/** Etapa 4.2, null = sin tope: pauta del día en `budgetCurrency`. */
|
|
19960
|
+
dailyAdSpendCap: z81.number().int().nullable(),
|
|
19961
|
+
/** Etapa 4.2, null = sin tope: pruebas prendidas a la vez. */
|
|
19962
|
+
openTestCap: z81.number().int().nullable(),
|
|
19963
|
+
/** Etapa 4.2, null = sin tope: lanzamientos por semana (lunes a lunes). */
|
|
19964
|
+
weeklyLaunchCap: z81.number().int().nullable(),
|
|
19949
19965
|
autopilot: z81.boolean(),
|
|
19950
19966
|
/** Null mientras la cuenta no ha guardado nada. */
|
|
19951
19967
|
updatedAt: z81.string().nullable()
|
|
@@ -23779,6 +23795,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
23779
23795
|
"requiere confirmaci\xF3n; desde ese momento el sem\xE1foro lee el gasto de esa campa\xF1a"
|
|
23780
23796
|
]
|
|
23781
23797
|
},
|
|
23798
|
+
unlink_product_campaign: {
|
|
23799
|
+
summary: "Suelta una campa\xF1a de un producto de su control financiero.",
|
|
23800
|
+
useWhen: [
|
|
23801
|
+
"esa campa\xF1a ya no es de este producto",
|
|
23802
|
+
"desliga la campa\xF1a vieja del producto"
|
|
23803
|
+
],
|
|
23804
|
+
avoidWhen: [
|
|
23805
|
+
"quiere sacar el producto entero: remove_product_control"
|
|
23806
|
+
],
|
|
23807
|
+
defaults: [
|
|
23808
|
+
"la campa\xF1a sale de get_product_control; nunca la inventes"
|
|
23809
|
+
],
|
|
23810
|
+
disclosures: [
|
|
23811
|
+
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
23812
|
+
]
|
|
23813
|
+
},
|
|
23782
23814
|
delete_monthly_expense: {
|
|
23783
23815
|
summary: "Borra un gasto fijo del mes.",
|
|
23784
23816
|
useWhen: [
|
|
@@ -27354,6 +27386,32 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27354
27386
|
],
|
|
27355
27387
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27356
27388
|
),
|
|
27389
|
+
defineCapability(
|
|
27390
|
+
"unlink_product_campaign",
|
|
27391
|
+
// Filled by the MCP schema fingerprint test.
|
|
27392
|
+
"ef6d612607189774545d0aaeb1f392a239bfcd83de0d732b049222372ef243f5",
|
|
27393
|
+
"state_change",
|
|
27394
|
+
"business",
|
|
27395
|
+
[
|
|
27396
|
+
"state_change"
|
|
27397
|
+
],
|
|
27398
|
+
[
|
|
27399
|
+
slot("product_control", true, [
|
|
27400
|
+
"productControlId"
|
|
27401
|
+
]),
|
|
27402
|
+
slot("campaign", true, [
|
|
27403
|
+
"campaignId"
|
|
27404
|
+
])
|
|
27405
|
+
],
|
|
27406
|
+
[
|
|
27407
|
+
"product_control",
|
|
27408
|
+
"campaign_link"
|
|
27409
|
+
],
|
|
27410
|
+
[
|
|
27411
|
+
"campaign_link"
|
|
27412
|
+
],
|
|
27413
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27414
|
+
),
|
|
27357
27415
|
defineCapability(
|
|
27358
27416
|
"delete_monthly_expense",
|
|
27359
27417
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -27486,7 +27544,7 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27486
27544
|
], SHARED_CHANNEL_EXPOSURE),
|
|
27487
27545
|
defineCapability(
|
|
27488
27546
|
"save_agent_memory",
|
|
27489
|
-
"
|
|
27547
|
+
"9175878d077502b36e523815ac836aaef9d352f7f8327818fcb4987d6e590a84",
|
|
27490
27548
|
// La memoria es el cuaderno del propio agente y no cobra créditos. Aprobar
|
|
27491
27549
|
// un pendiente que trae `operation` sí cambia la campaña o el conjunto en
|
|
27492
27550
|
// Meta: esa aprobación ES la confirmación del dueño (el pendiente muestra
|
|
@@ -33262,7 +33320,7 @@ var ApiClient = class {
|
|
|
33262
33320
|
};
|
|
33263
33321
|
|
|
33264
33322
|
// src/index.ts
|
|
33265
|
-
var MCP_VERSION = "12.
|
|
33323
|
+
var MCP_VERSION = "12.29.0";
|
|
33266
33324
|
|
|
33267
33325
|
// src/meta-upload-app.ts
|
|
33268
33326
|
import { readFileSync } from "fs";
|
|
@@ -34679,6 +34737,7 @@ var McpErrorCode = {
|
|
|
34679
34737
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND",
|
|
34680
34738
|
// Drop Maker agent memory
|
|
34681
34739
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
34740
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
34682
34741
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
34683
34742
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
34684
34743
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -34946,6 +35005,7 @@ var CODE_MESSAGES = {
|
|
|
34946
35005
|
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
35006
|
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
35007
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
35008
|
+
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
34949
35009
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
34950
35010
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
34951
35011
|
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 +35065,7 @@ var CODE_MESSAGES = {
|
|
|
35005
35065
|
};
|
|
35006
35066
|
var AGENT_MEMORY_CODES = [
|
|
35007
35067
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
35068
|
+
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
35008
35069
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
35009
35070
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
35010
35071
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -44036,7 +44097,7 @@ function queryString(values) {
|
|
|
44036
44097
|
__name(queryString, "queryString");
|
|
44037
44098
|
function registerAgentMemoryTools(server, api) {
|
|
44038
44099
|
server.registerTool("get_agent_memory_brief", {
|
|
44039
|
-
description: briefGuidance.summary + " Ll\xE1mala UNA vez al empezar cada corrida, antes de decidir nada: devuelve la \xFAltima versi\xF3n del playbook, la ficha de cada producto (c\xF3digo, etapa, CPA objetivo, veredicto y sus enlaces productControlId/projectId), los experimentos abiertos, los pendientes abiertos (aprobaciones del due\xF1o y seguimientos), las notas m\xE1s recientes, `settings` (tienda, cuenta de Meta, pa\xEDs, zona horaria, moneda, presupuesto sugerido por campa\xF1a, topes diarios
|
|
44100
|
+
description: briefGuidance.summary + " Ll\xE1mala UNA vez al empezar cada corrida, antes de decidir nada: devuelve la \xFAltima versi\xF3n del playbook, la ficha de cada producto (c\xF3digo, etapa, CPA objetivo, veredicto y sus enlaces productControlId/projectId), los experimentos abiertos, los pendientes abiertos (aprobaciones del due\xF1o y seguimientos), las notas m\xE1s recientes, `settings` (tienda, cuenta de Meta, pa\xEDs, zona horaria, moneda, presupuesto sugerido por campa\xF1a, topes diarios, el tope de p\xE9rdida por prueba (`testLossCap`), los topes de la etapa 4.2 (`dailyAdSpendCap` pauta del d\xEDa, `openTestCap` campa\xF1as prendidas a la vez, `weeklyLaunchCap` lanzamientos por semana) si el vendedor pidi\xF3 alguno y si el piloto autom\xE1tico est\xE1 prendido; lo que no se ha acordado viene en null: nada trae un valor fijo, s\xE1calo del contexto del vendedor y su producto o preg\xFAntale), `budget` (lo gastado HOY en esa zona: cr\xE9ditos de ProductMaker y conjuntos nuevos, contra su tope solo si existe), `currentSlot` (el turno de ahora del piloto autom\xE1tico y su fase, con `run` si alguien ya lo corri\xF3; null fuera de horario) y `recentRuns` (los \xFAltimos turnos con su reporte). Una cuenta nueva recibe todo vac\xEDo, no un error. Los n\xFAmeros de negocio (ventas, costo por venta, gasto) NO est\xE1n aqu\xED: l\xE9elos con get_daily_control / get_product_control usando los enlaces de cada ficha.",
|
|
44040
44101
|
inputSchema: BriefInput.shape,
|
|
44041
44102
|
annotations: READS_INTERNAL
|
|
44042
44103
|
}, async (input) => {
|
|
@@ -44109,6 +44170,7 @@ var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatch
|
|
|
44109
44170
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
44110
44171
|
var listLinkableCampaignsGuidance = getProductMakerCapabilityModelGuidance("list_linkable_campaigns");
|
|
44111
44172
|
var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_product_campaign");
|
|
44173
|
+
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
44112
44174
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
44113
44175
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
44114
44176
|
var DateOnly2 = z172.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
@@ -44226,6 +44288,10 @@ var LinkProductCampaignInput = z172.object({
|
|
|
44226
44288
|
shopifyProductId: z172.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
44227
44289
|
}).strict();
|
|
44228
44290
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
44291
|
+
var UnlinkProductCampaignInput = z172.object({
|
|
44292
|
+
productControlId: z172.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
44293
|
+
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.")
|
|
44294
|
+
}).strict();
|
|
44229
44295
|
var RemoveProductControlInput = z172.object({
|
|
44230
44296
|
productControlId: z172.string().guid().describe("El id del producto en su control. Sale del listado; nunca se inventa.")
|
|
44231
44297
|
}).strict();
|
|
@@ -44582,6 +44648,17 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44582
44648
|
throw translateError(error);
|
|
44583
44649
|
}
|
|
44584
44650
|
});
|
|
44651
|
+
server.registerTool("unlink_product_campaign", {
|
|
44652
|
+
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.",
|
|
44653
|
+
inputSchema: UnlinkProductCampaignInput.shape,
|
|
44654
|
+
annotations: OVERWRITES_INTERNAL
|
|
44655
|
+
}, async (input) => {
|
|
44656
|
+
try {
|
|
44657
|
+
return asText(await api.deleteJson(`/v1/product-control/${encodeURIComponent(input.productControlId)}/campaigns/${encodeURIComponent(input.campaignId)}`));
|
|
44658
|
+
} catch (error) {
|
|
44659
|
+
throw translateError(error);
|
|
44660
|
+
}
|
|
44661
|
+
});
|
|
44585
44662
|
server.registerTool("delete_monthly_expense", {
|
|
44586
44663
|
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
44664
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.29.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.",
|