npm_command
Execute npm commands like install, test, and build directly from the Code MCP Server to manage Node.js packages and run scripts.
Instructions
Run npm commands (install, test, build, etc)
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": {
"command": "<command>"
},
"name": "npm_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | npm command (install, test, run, etc) | |
| args | No | Additional arguments | |
| cwd | No | Working directory |