@denik.me/mcp 0.3.0 → 0.4.1
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 -1
- package/dist/client.js +1 -1
- package/dist/index.js +7 -10
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/client.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fetch wrapper contra el backend de Denik.
|
|
3
3
|
* Lee `DENIK_API_KEY` y `DENIK_BASE_URL` del env.
|
|
4
4
|
*/
|
|
5
|
-
const BASE_URL = process.env.DENIK_BASE_URL ?? "https://denik.me";
|
|
5
|
+
const BASE_URL = process.env.DENIK_BASE_URL ?? "https://www.denik.me";
|
|
6
6
|
const API_KEY = process.env.DENIK_API_KEY;
|
|
7
7
|
if (!API_KEY) {
|
|
8
8
|
// No hacer throw aquí — el servidor MCP debe poder arrancar para listar tools.
|
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: "
|
|
183
|
-
description: "Modifica una sección de la landing con una instrucción en lenguaje natural (ej: 'hazla más formal', 'añade testimonios', '
|
|
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: "
|
|
192
|
+
handler: async (args) => denikPost("landing", { intent: "update_section", ...args }),
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
name: "
|
|
196
|
-
description: "
|
|
197
|
-
inputSchema: {
|
|
198
|
-
|
|
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",
|