mcp-state-machine-test-framework 1.0.5 → 1.0.7
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/index.js +9 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -335,7 +335,9 @@ server.tool("execute_suite", "Ejecución de Suite Completa", { name: z.string()
|
|
|
335
335
|
server.tool("upsert_node", "Añadir o actualizar un nodo en el mapa de estados", {
|
|
336
336
|
mapName: z.string(),
|
|
337
337
|
nodeName: z.string(),
|
|
338
|
-
nodeData: z.
|
|
338
|
+
nodeData: z.object({
|
|
339
|
+
transiciones: z.any().optional()
|
|
340
|
+
}).passthrough()
|
|
339
341
|
}, async ({ mapName, nodeName, nodeData }) => {
|
|
340
342
|
const mapPath = path.join(__dirname, 'maps', mapName);
|
|
341
343
|
let map = { nodos: {} };
|
|
@@ -403,7 +405,10 @@ server.tool("inspect_framework", "Inspeccionar integridad y listar entidades del
|
|
|
403
405
|
|
|
404
406
|
server.tool("save_test_case", "Crear o actualizar un caso de prueba", {
|
|
405
407
|
name: z.string(),
|
|
406
|
-
steps: z.array(z.
|
|
408
|
+
steps: z.array(z.object({
|
|
409
|
+
name: z.string().optional(),
|
|
410
|
+
action: z.string().optional()
|
|
411
|
+
}).passthrough())
|
|
407
412
|
}, async ({ name, steps }) => {
|
|
408
413
|
const fileName = name.endsWith('.json') ? name : `${name}.json`;
|
|
409
414
|
const filePath = path.join(__dirname, 'test_cases', fileName);
|
|
@@ -417,8 +422,8 @@ server.tool("save_suite", "Crear o actualizar una suite de pruebas", {
|
|
|
417
422
|
name: z.string(),
|
|
418
423
|
state_map: z.string(),
|
|
419
424
|
tests: z.array(z.string()),
|
|
420
|
-
beforeSuite: z.
|
|
421
|
-
afterSuite: z.
|
|
425
|
+
beforeSuite: z.array(z.string()).optional().default([]),
|
|
426
|
+
afterSuite: z.array(z.string()).optional().default([])
|
|
422
427
|
}, async ({ name, state_map, tests, beforeSuite, afterSuite }) => {
|
|
423
428
|
const fileName = name.endsWith('.json') ? name : `${name}.json`;
|
|
424
429
|
const filePath = path.join(__dirname, 'suites', fileName);
|