@denik.me/mcp 0.2.0 → 0.3.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 +37 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -163,6 +163,43 @@ const tools = [
163
163
  },
164
164
  handler: async (args) => denikPost("events", { intent: "send_reminder", eventId: args.eventId }),
165
165
  },
166
+ // ==================== Landing (Phase 3) ====================
167
+ {
168
+ name: "get_landing",
169
+ description: "Devuelve las secciones actuales de la landing de la org (id, label, tipo, preview). Útil antes de editar.",
170
+ inputSchema: {
171
+ type: "object",
172
+ properties: {
173
+ includeHtml: {
174
+ type: "boolean",
175
+ description: "true para devolver HTML completo (muy verboso). Default false.",
176
+ },
177
+ },
178
+ },
179
+ handler: async (args) => denikGet("landing", { intent: "get", includeHtml: args.includeHtml }),
180
+ },
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').",
184
+ inputSchema: {
185
+ type: "object",
186
+ required: ["sectionId", "instruction"],
187
+ properties: {
188
+ sectionId: { type: "string" },
189
+ instruction: { type: "string" },
190
+ },
191
+ },
192
+ handler: async (args) => denikPost("landing", { intent: "refine_section", ...args }),
193
+ },
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 }),
202
+ },
166
203
  {
167
204
  name: "get_org_stats",
168
205
  description: "Estadísticas de la org en un rango custom (from/to ISO).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denik.me/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.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": {