Run project script
run_scriptExecute allowlisted npm/pnpm scripts inside a sandboxed macOS worktree with network disabled, using hash-pinned packages to safely run project tests.
Instructions
Execute an allowlisted, hash-pinned npm/pnpm script inside a macOS Seatbelt sandbox. network is always 'none'; script execution is confined to a runner-managed READ_WRITE mcp/* worktree. A non-zero script exit code is a successful MCP call (the script ran; the test failed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| network | No | ||
| project | Yes | ||
| timeoutSeconds | No | ||
| expectedPackageSha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| script | Yes | ||
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| endedAt | Yes | ||
| network | Yes | ||
| project | Yes | ||
| decision | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| cancelled | Yes | ||
| startedAt | Yes | ||
| durationMs | Yes | ||
| scriptSha256 | Yes | ||
| packageSha256 | Yes | ||
| packageManager | Yes | ||
| timeoutSeconds | Yes | ||
| descendantState | Yes | ||
| stderrTruncated | Yes | ||
| stdoutTruncated | Yes | ||
| descendantsRemaining | Yes |