MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/docker/docker-tools.ts:102–104  ·  view source on GitHub ↗
(a: z.infer<typeof ExecArgs>)

Source from the content-addressed store, hash-verified

100 description = 'Run a command inside a running container (docker exec). Command is passed as an array (no shell injection). Destructive: it can mutate container state, so it is permission-gated.';
101 isReadOnly = false; isDestructive = true; argsSchema = ExecArgs;
102 async execute(a: z.infer<typeof ExecArgs>): Promise<ToolResult> {
103 return docker(['exec', a.container, ...a.command], (a.timeout_seconds ?? 120) * 1000);
104 }
105}
106
107// ---- docker_build ----

Callers

nothing calls this directly

Calls 1

dockerFunction · 0.85

Tested by

no test coverage detected