@koggitechorg/koggi-mcp-server 1.0.12 → 1.0.13
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/package.json +1 -1
- package/src/index.ts +6 -12
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Una herramienta (MCP server) ligera para exponer un comando/tool llamado `genera
|
|
|
23
23
|
|
|
24
24
|
- Tool MCP: `generate_simulator`
|
|
25
25
|
- Propósito: Generar un simulador financiero para un usuario dado.
|
|
26
|
-
- Schema (Zod): `
|
|
26
|
+
- Schema (Zod): `id_lead`, `builder`, `email_requester`,
|
|
27
27
|
`income_updated`, `observations` (todos son obligatorios — definidos en `index.ts`).
|
|
28
28
|
|
|
29
29
|
- Comunicación: stdin/stdout (StdioServerTransport) siguiendo el SDK `@modelcontextprotocol/sdk`.
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { getHdcByIdLead } from "./handlers/hdc.js";
|
|
|
10
10
|
// Crear el servidor MCP
|
|
11
11
|
const server = new McpServer({
|
|
12
12
|
name: "koggi-mcp-server",
|
|
13
|
-
version: "1.0.
|
|
13
|
+
version: "1.0.13",
|
|
14
14
|
description: "Servidor MCP Profiling personalizado para Koggi",
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -114,8 +114,7 @@ server.tool(
|
|
|
114
114
|
"generate_simulator",
|
|
115
115
|
`Genera un simulador financiero para un usuario usando su número de documento.
|
|
116
116
|
Campos requeridos:
|
|
117
|
-
-
|
|
118
|
-
- origen_identification (string): Origen de la identificación ('input' o 'state').
|
|
117
|
+
- id_lead (string): Número de documento del cliente o número del lead.
|
|
119
118
|
- builder (string): Nombre de la constructora.
|
|
120
119
|
- email_requester (string): Correo electrónico de quien solicita el simulador.
|
|
121
120
|
- income_updated (number): Ingreso mensual actualizado del cliente.
|
|
@@ -131,19 +130,15 @@ server.tool(
|
|
|
131
130
|
observations: z
|
|
132
131
|
.string()
|
|
133
132
|
.min(1, "Las observaciones son obligatorias."),
|
|
134
|
-
|
|
135
|
-
.string()
|
|
136
|
-
.min(1, "El número de identificación es obligatorio."),
|
|
137
|
-
origen_identification: z
|
|
133
|
+
id_lead: z
|
|
138
134
|
.string()
|
|
139
|
-
.min(1, "El
|
|
135
|
+
.min(1, "El número de id_lead es obligatorio."),
|
|
140
136
|
builder: z
|
|
141
137
|
.string()
|
|
142
138
|
.min(1, "El nombre de la constructora es obligatorio."),
|
|
143
139
|
},
|
|
144
140
|
async ({
|
|
145
|
-
|
|
146
|
-
origen_identification,
|
|
141
|
+
id_lead,
|
|
147
142
|
builder,
|
|
148
143
|
email_requester,
|
|
149
144
|
income_updated,
|
|
@@ -151,8 +146,7 @@ server.tool(
|
|
|
151
146
|
}) => {
|
|
152
147
|
return errorHandler(async () => {
|
|
153
148
|
const user = await generateSimulator({
|
|
154
|
-
|
|
155
|
-
origen_identification,
|
|
149
|
+
id_lead,
|
|
156
150
|
builder,
|
|
157
151
|
ingresosActualizados: income_updated,
|
|
158
152
|
observaciones: observations,
|