@koggitechorg/koggi-mcp-server 1.0.7 → 1.0.8

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 CHANGED
@@ -13,7 +13,7 @@ Una herramienta (MCP server) ligera para exponer un comando/tool llamado `genera
13
13
 
14
14
  - Tool MCP: `generate_simulator`
15
15
  - Propósito: Generar un simulador financiero para un usuario dado.
16
- - Schema (Zod): `id_lead`, `identification_number`,`builder`,`email_requester`, `income_updated`, `observations` (email_requester,income_updated,observations son obligatorios `index.ts`).
16
+ - Schema (Zod): `identification`, `origen_identification`,`builder`,`email_requester`, `income_updated`, `observations` (todos son obligatorios `index.ts`).
17
17
  - Comunicación: stdin/stdout (StdioServerTransport) siguiendo el SDK `@modelcontextprotocol/sdk`.
18
18
  - Cliente HTTP: usa `node-fetch` y `EXTERNAL_URL` como base para las peticiones.
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koggitechorg/koggi-mcp-server",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -16,8 +16,8 @@ const server = new McpServer({
16
16
  server.tool(
17
17
  "generate_simulator",
18
18
  "Genera un simulador financiero para un usuario usando su número de documento. Campos requeridos: \
19
- id_lead (string, identificador único del lead), \
20
- identification_number (string, número de documento del cliente), \
19
+ identification (string, número de documento del cliente o número del lead), \
20
+ origen_identification (string, origen de la identificación del lead puede tener dos valores 'input' o 'state'), \
21
21
  builder (string, nombre de la constructora), \
22
22
  email_requester (string, correo electrónico de quien solicita el simulador), \
23
23
  income_updated (number, ingreso mensual actualizado del cliente), \
@@ -26,15 +26,15 @@ server.tool(
26
26
  email_requester: z.string().email().min(1, "Email is required"),
27
27
  income_updated: z.number().min(1, "Income is required"),
28
28
  observations: z.string().min(1, "Observations are required"),
29
- id_lead: z.string().optional(),
30
- identification_number: z.string().optional(),
31
- builder: z.string().optional(),
29
+ identification: z.string().min(1, "Identification number is required"),
30
+ origen_identification: z.string().min(1, "Origen is required"),
31
+ builder: z.string().min(1, "Builder is required"),
32
32
  },
33
- async ({ id_lead, identification_number, builder, email_requester, income_updated, observations }) => {
33
+ async ({ identification, origen_identification, builder, email_requester, income_updated, observations }) => {
34
34
  return errorHandler(async () => {
35
35
  const user = await generateSimulator({
36
- idLead: id_lead,
37
- identification_number,
36
+ identification,
37
+ origen_identification,
38
38
  builder,
39
39
  ingresosActualizados: income_updated,
40
40
  observaciones: observations,