Skip to content

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.

Capabilityexecution.package_scripts
AreaRun, test and tasks
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathstringWorkspace-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.

Terminal window
ferris-idea call ~/my-project package_scripts
Input schema as JSON
{
"type": "object",
"properties": {
"path": {
"description": "Workspace-relative `package.json` or the folder that holds it (default the root).",
"type": [
"string",
"null"
]
}
}
}