Skip to content

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

Type Alias: ShellCommandHandler

ShellCommandHandler = (args, ctx, stdin) => Promise<string>

Defined in: tools/shell/types.ts:27

A shell command handler.

Parameters

args

string[]

Parsed argument tokens (excluding the command name itself).

ctx

ShellContext

VFS and root context.

stdin

string | null

Piped input from the previous command in a pipeline, or null.

Returns

Promise<string>

  • The command's stdout string.

Released under the PolyForm Shield 1.0.0 License.