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

Method execute

src/tools/docker/docker-tools.ts:31–36  ·  view source on GitHub ↗
(a: z.infer<typeof PsArgs>)

Source from the content-addressed store, hash-verified

29 description = 'List Docker containers with id, image, status, ports and name (condensed table). Read-only.';
30 isReadOnly = true; isDestructive = false; argsSchema = PsArgs;
31 async execute(a: z.infer<typeof PsArgs>): Promise<ToolResult> {
32 const fmt = 'table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}';
33 const args = ['ps', '--format', fmt];
34 if (a.all) args.push('-a');
35 return docker(args, 20_000);
36 }
37}
38
39// ---- docker_logs ----

Callers

nothing calls this directly

Calls 2

dockerFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected