Skip to main content
Glama

Code MCP Server

by block

npm_command

Execute npm commands like install, test, or build directly within the MCP server environment. Simplify workflows by specifying commands, arguments, and working directories for efficient task management.

Instructions

Run npm commands (install, test, build, etc)

Input Schema

NameRequiredDescriptionDefault
argsNoAdditional arguments
commandYesnpm command (install, test, run, etc)
cwdNoWorking directory

Input Schema (JSON Schema)

{ "properties": { "args": { "description": "Additional arguments", "items": { "type": "string" }, "type": "array" }, "command": { "description": "npm command (install, test, run, etc)", "type": "string" }, "cwd": { "description": "Working directory", "type": "string" } }, "required": [ "command" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server