Skip to main content
Glama
hileamlakB

PRIMS – Python Runtime Interpreter MCP Server

config.py528 B
"""Centralised configuration for PRIMCS. Environment variables: • PRIMCS_TMP_DIR – custom temp directory • PRIMCS_TIMEOUT – max seconds per run (default 10) • PRIMCS_MAX_OUTPUT – cap on stdout/stderr bytes (default 1 MB) """ import os from pathlib import Path TMP_DIR = Path(os.getenv("PRIMCS_TMP_DIR", "/tmp/primcs")) TMP_DIR.mkdir(parents=True, exist_ok=True) TIMEOUT_SECONDS = int(os.getenv("PRIMCS_TIMEOUT", "100")) MAX_OUTPUT_BYTES = int(os.getenv("PRIMCS_MAX_OUTPUT", str(1024 * 1024))) # 1MB

Latest Blog Posts

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/hileamlakB/Python-Runtime-Interpreter-MCP-Server'

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