diff --git a/tools/trap-sandbox/test-integration/lua/mcp-server-client.lua b/tools/trap-sandbox/test-integration/lua/mcp-server-client.lua index 3fa5718..4c75cb7 100644 --- a/tools/trap-sandbox/test-integration/lua/mcp-server-client.lua +++ b/tools/trap-sandbox/test-integration/lua/mcp-server-client.lua @@ -38,7 +38,7 @@ sandbox.serve('exec-lua', function(payload) end, { eventloop = el }); sandbox.serve('run-file', function(payload) - local result = mcp.executeFile(payload and payload.path); + local result = mcp.executeFile(payload and payload.path, nil, payload and payload.args); return true, { ok = result.ok, returns = result.returns or {}, diff --git a/tools/trap-sandbox/test-integration/mcp.test.ts b/tools/trap-sandbox/test-integration/mcp.test.ts index d9ee787..7ad1e5c 100644 --- a/tools/trap-sandbox/test-integration/mcp.test.ts +++ b/tools/trap-sandbox/test-integration/mcp.test.ts @@ -56,7 +56,7 @@ test("MCP exec-lua / run-file / write-file / probe round-trip over the gateway", traposId: "7:base", code: "local h = fs.open('/mcp-it.lua', 'r'); local c = h.readAll(); h.close(); return c", }); - assert.match(verify, /"shell.getRunningProgram/); + assert.match(verify, /shell\.getRunningProgram/); // Unknown traposId is a transport (not_connected) failure, not a crash. const ghost = await callTool(sandbox, "exec-lua", { traposId: "9:ghost", code: "return 1" });