Skip to main content
Glama

Code MCP Server

by block

run_javascript

Execute JavaScript code or files using Node.js via the Code MCP Server, enabling seamless integration and automation for AI agents and VS Code workflows.

Instructions

Execute JavaScript code or script with Node.js

Input Schema

NameRequiredDescriptionDefault
argsNoCommand line arguments
codeNoJavaScript code to execute
script_pathNoPath to JavaScript file

Input Schema (JSON Schema)

{ "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "code": { "description": "JavaScript code to execute", "type": "string" }, "script_path": { "description": "Path to JavaScript file", "type": "string" } }, "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