pare-process

v0.24.2
io.github.Dave-London/pare-process Checked 5 hours ago Published 3 days ago

Pare Process — Run commands with structured output, timeout, and signal support as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run Process Run

Runs a command and returns structured output (stdout, stderr, exit code, duration, timeout status). **Security warning**: This tool executes arbitrary commands on the host system. Configure `PARE_PROCESS_ALLOWED_COMMANDS` (comma-separated list of allowed executables) to restrict which commands can be run. Without this configuration, ANY command is permitted. Configure `PARE_PROCESS_ALLOWED_ROOTS` to restrict working directories. **Shell mode**: The `shell` parameter enables shell-mode execution. When shell=true, the command string is passed through the system shell (e.g., /bin/sh or cmd.exe…

ParameterTypeDescription
command *stringExecutable name to run (e.g., 'node', 'python', 'echo'). This must be the executable only — pass arguments via the 'args' array. Do NOT include arguments here (e.g., 'echo hello' will fail).
argsarrayArguments to pass to the command
compactbooleanPrefer compact output
cwdstringWorking directory
encodingstringOutput encoding for commands that produce non-UTF-8 output (default: utf-8)
envobjectAdditional environment variables as key-value pairs
killSignalstringSignal sent to the process on timeout (default: SIGTERM)
maxBufferintegerMaximum combined stdout+stderr buffer size in bytes (default: 10MB, max: 100MB)
maxOutputLinesintegerTruncate stdout/stderr to this many lines (more agent-friendly than byte-based maxBuffer)
shellbooleanRun the command through the system shell (enables glob expansion, piping, variable substitution). WARNING: shell=true exposes the command to shell injection risks. Only use when you trust the input.
stdinstringInput data to write to the command's stdin (e.g., for piping to jq, grep)
stripEnvbooleanRun with a minimal environment (only PATH + explicit env vars). Prevents leaking sensitive parent environment variables to the child process.
timeoutintegerTimeout in milliseconds (default: 60000, max: 600000)

reload Reload Server

Rebuilds the MCP server (or a specified project) and sends a `notifications/tools/list_changed` notification so the host re-fetches tool definitions. Useful during local development when code changes require a rebuild without restarting the session. Default build command: `pnpm build`. Override with `buildCommand` for custom setups. **Security warning**: The `buildCommand` parameter executes arbitrary commands. Configure `PARE_PROCESS_ALLOWED_COMMANDS` to restrict which executables are permitted. When not configured, any command is allowed.

ParameterTypeDescription
buildCommandstringBuild command to run (default: "pnpm build")
pathstringWorking directory
timeoutintegerBuild timeout in milliseconds (default: 120000, max: 600000)