resource_run
Run one-off commands such as seed scripts or status checks with a resource's environment and return the exit code, stdout, and stderr for quick debugging.
Instructions
Run a one-off command (a seed script, a status check, printenv) with the environment one resource has in the stack, and return its exit code, stdout and stderr (the last 64 KB of each). 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The program and its arguments, for example ["printenv", "DATABASE_URL"] | |
| 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. |