Skip to content

@nogoo9/mcp-server-cloud-fs / executeShell

Function: executeShell()

executeShell(command, ctx): Promise<string>

Defined in: tools/shell/index.ts:55

Execute a shell command string against the VFS.

This is the programmatic API — use it without MCP.

Parameters

command

string

ctx

ShellContext

Returns

Promise<string>

Example

ts
import { executeShell, VirtualFS } from "@nogoo9/mcp-server-cloud-fs";

const result = await executeShell("ls -l s3://my-bucket", {
  vfs,
  roots,
  enableDelete: false,
});
console.log(result);

Released under the PolyForm Shield 1.0.0 License.