@denik.me/mcp 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -179,8 +179,8 @@ const tools = [
179
179
  handler: async (args) => denikGet("landing", { intent: "get", includeHtml: args.includeHtml }),
180
180
  },
181
181
  {
182
- name: "refine_landing_section",
183
- description: "Modifica una sección de la landing con una instrucción en lenguaje natural (ej: 'hazla más formal', 'añade testimonios', 'cambia el copy del CTA a NAVIDAD2026').",
182
+ name: "update_landing_section",
183
+ description: "Modifica una sección de la landing con una instrucción en lenguaje natural (ej: 'hazla más formal', 'añade testimonios', 'aplica descuento NAVIDAD2026 en el CTA'). Preserva el estado de publicación actual: si la landing ya estaba live, los cambios quedan live; si era borrador, sigue como borrador.",
184
184
  inputSchema: {
185
185
  type: "object",
186
186
  required: ["sectionId", "instruction"],
@@ -189,16 +189,13 @@ const tools = [
189
189
  instruction: { type: "string" },
190
190
  },
191
191
  },
192
- handler: async (args) => denikPost("landing", { intent: "refine_section", ...args }),
192
+ handler: async (args) => denikPost("landing", { intent: "update_section", ...args }),
193
193
  },
194
194
  {
195
- name: "publish_landing",
196
- description: "Publica (o despublica con published=false) la landing de la org.",
197
- inputSchema: {
198
- type: "object",
199
- properties: { published: { type: "boolean", default: true } },
200
- },
201
- handler: async (args) => denikPost("landing", { intent: "publish", ...args }),
195
+ name: "unpublish_landing",
196
+ description: "Despublica la landing (la quita del sitio público). Úsalo solo si algo salió mal; los cambios normales preservan el estado.",
197
+ inputSchema: { type: "object", properties: {} },
198
+ handler: async () => denikPost("landing", { intent: "unpublish" }),
202
199
  },
203
200
  {
204
201
  name: "get_org_stats",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denik.me/mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Denik Agenda MCP stdio server — tools para operar una org desde un agente (p.ej. bot de WhatsApp).",
5
5
  "type": "module",
6
6
  "bin": {