MCPcopy Create free account
hub / github.com/PraneshASP/foundry-mcp-server / executeCommand

Function executeCommand

src/utils/command.ts:55–66  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

53}
54
55export async function executeCommand(command: string): Promise<{success: boolean, message: string}> {
56 try {
57 const { stdout, stderr } = await execAsync(command);
58 if (stderr && !stdout) {
59 return { success: false, message: stderr };
60 }
61 return { success: true, message: stdout };
62 } catch (error) {
63 const errorMessage = error instanceof Error ? error.message : String(error);
64 return { success: false, message: errorMessage };
65 }
66}

Callers 14

registerForgeScriptToolFunction · 0.85
registerCastReceiptToolFunction · 0.85
registerCastCallToolFunction · 0.85
registerCastSendToolFunction · 0.85
registerCastChainToolFunction · 0.85
registerCastBalanceToolFunction · 0.85
registerHeimdallCfgToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected