Deploy and run on a QNX target
deploy_and_runDeploy a host-built QNX executable to the target and run it once with captured output, timeout, and crash core retrieval. Use for short-lived programs; supports running pre-installed target binaries too.
Instructions
Snapshot a host-built QNX executable, copy it to the target (content-addressed under /tmp/qnx-mcp/apps, SHA-256 verified on the target) and run it once via the qnx-mcp-run helper: own process group, stdin /dev/null, stdout and stderr captured separately (capped, truncation reported), wall-clock timeout; when the program ends the rest of its process group is killed too. Returns outcome (exited | crashed | killed | timeout | stopped | exec_failed), exit_code or signal_name, and for crashes the exact core_path obtained from dumper (DCMD_DUMPER_NOTIFYEVENT pulse, then DCMD_DUMPER_GETPATH), moved into the run's own directory. Checks the ELF arch and loader first. Arguments are an array, never interpreted by a shell. For long-running programs use run_start. To run a program that is already installed on the target, pass remote_binary (a target path) and no binary: an executable regular file below /tmp or /data (QNX_MCP_REMOTE_BINARY_ROOTS) and outside /tmp/qnx-mcp, never a shell or anything in /proc/boot, /bin, /sbin, /usr or /system (checked by real path on the target). get_crash then needs binary= to symbolise a crash.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "deploy_and_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory on the target | |
| env | No | Extra environment variables for the program | |
| args | No | Program arguments, one element per argv entry | |
| binary | No | Host path of the executable, usually build.artifacts[].path | |
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| timeout_s | No | Kill the program after this many seconds | |
| core_wait_s | No | How long to wait for dumper to finish a core | |
| max_output_kb | No | Cap for each of stdout and stderr | |
| remote_binary | No | Instead of binary: absolute path of an executable already on the target below /tmp or /data, e.g. /data/opt/svc/sensord |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||