Skip to main content
Glama

Code MCP Server

by block

run_python

Execute Python code or script directly, supporting code input, script paths, command-line arguments, and virtual environments for efficient programming tasks.

Instructions

Execute Python code or script

Input Schema

NameRequiredDescriptionDefault
argsNoCommand line arguments
codeNoPython code to execute
script_pathNoPath to Python script file
venvNoPath to virtual environment

Input Schema (JSON Schema)

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