package_scripts
MCP tools › Run, test and tasks
The scripts of a package.json (what the ▶ markers next to them offer, SPEC-0168): name, 1-based line, command and the run configuration that runs it with the package's manager (packageManager, else the lockfile's, else npm) in the package's folder. Run one with run_command, debug one with debug_start and npm_script.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | execution.package_scripts |
|---|---|
| Area | Run, test and tasks |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
path | string | Workspace-relative package.json or the folder that holds it (default the root). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project package_scriptsInput schema as JSON
{ "type": "object", "properties": { "path": { "description": "Workspace-relative `package.json` or the folder that holds it (default the root).", "type": [ "string", "null" ] } }}