MCPcopy Index your code
hub / github.com/Waishnav/devspace / runShellTool

Function runShellTool

src/pi-tools.ts:121–129  ·  view source on GitHub ↗
(input: BashToolInput, context: ToolContext)

Source from the content-addressed store, hash-verified

119}
120
121export async function runShellTool(input: BashToolInput, context: ToolContext): Promise<ToolResponse> {
122 const tool = createBashTool(context.cwd);
123 const timeout = input.timeout === undefined ? 30 : Math.min(input.timeout, 300);
124
125 return runTool((params) => tool.execute("run_shell", params), {
126 command: input.command,
127 timeout,
128 }, context);
129}

Callers 1

createMcpServerFunction · 0.85

Calls 1

runToolFunction · 0.85

Tested by

no test coverage detected