test(mcp): pass run-file args in integration fixture

This commit is contained in:
Guillaume ARM 2026-06-16 03:09:25 +02:00
parent 61bd5d3eb7
commit aa6ddd3bfd
2 changed files with 2 additions and 2 deletions

View File

@ -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 {},

View File

@ -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" });