resource_run
Runs a one-off command such as a seed script, migration, or status check in a specific resource's environment, returning exit code, stdout, and stderr; requires confirm=true for safety.
Instructions
Run a one-off command (a seed script, a migration, a status check) with the environment one resource has in the stack, and return its exit code, stdout and stderr (the last 64 KB of each; values from the project's .env files are masked). It runs any command, so it is refused unless confirm is true: ask the user first. A container resource must be running (start it with up); a local-process resource runs from its folder. No input is passed. Names come from resource_list. Set projectPath when the MCP server is not running from the project root.
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": {
"resource": "<resource>",
"command": "<command>"
},
"name": "resource_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The program and its arguments, for example ["node", "scripts/seed.js"] | |
| confirm | No | Must be true to run the command: it runs arbitrary code in the resource's environment | |
| resource | Yes | Name of the resource whose environment the command gets | |
| projectPath | No | Absolute path to the Flisk project root; run this operation from that directory. |