Execute shell commands and capture stdout, stderr and exit code. Supports cmd (Windows), PowerShell, and bash. Cross-platform: Windows and Linux.
| Parameter | Type | Description |
|---|---|---|
| commandrequired | string | Command line to execute. Required. |
| shelloptional | string | Shell: cmd (Windows default), powershell, bash (Linux/macOS). One of: cmd, powershell, bash. |
| workDiroptional | string | Working directory for the process. |
| timeoutMsoptional | integer | Max wait time in milliseconds. Default: 30000. |
| stdinDataoptional | string | Text to write to stdin before execution. |
| Field | Type | Description |
|---|---|---|
| stdout | string | |
| stderr | string | |
| exit_code | integer | |
| timed_out | boolean | |
| elapsed_ms | integer |
No examples available.
ppm install mcp-shell
GET /v1/packages/mcp-shell/1.1.2/schema
GET /v1/mcp/discover?q=shell
ppm install mcp-shell or invoke remotely via POST /v1/invoke/mcp-shell on the MCP Service.