Skip to main content
Glama

Sandbox MCP

MIT License
78
  • Linux
  • Apple
python.json1.08 kB
[ { "request": { "main_py": "print(\"Hello from Python!\")" }, "response": { "text": "Hello from Python!\n" } }, { "request": { "main_py": "with open(\"test_file.txt\", \"r\") as f:\n content = f.read()\n print(content)", "files": [ { "filename": "test_file.txt", "content": "This is a test file for Python sandbox." } ] }, "response": { "text": "This is a test file for Python sandbox.\n" } }, { "request": { "main_py": "import non_existent_module\nprint(\"This won't execute\")" }, "response": { "text": "ModuleNotFoundError: No module named 'non_existent_module'", "isError": true } }, { "request": { "main_py": "a = 1/0" }, "response": { "text": "ZeroDivisionError: division by zero", "isError": true } }, { "request": { "main_py": "import sys\nprint(sys.version)\nimport os\nprint(os.environ.get('HOME'))" }, "response": { "text": "/sandbox" } } ]

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/pottekkat/sandbox-mcp'

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