Skip to main content
Glama
sandbox_config.py775 B
"""Centralized sandbox configuration and guardrail constants.""" from __future__ import annotations from .executor import SandboxOptions # Network access is limited to localhost so the tool bridge can relay requests # without exposing the sandbox to the wider internet. External network access # should always happen via MCP tools. _LOCALHOST = ("127.0.0.1", "localhost") # Only a minimal set of environment variables may leak into the sandbox. _ENV_ALLOWLIST = ( "OPENAI_API_KEY", "GEMINI_API_KEY", "GOOGLE_API_KEY", ) DEFAULT_SANDBOX_OPTIONS = SandboxOptions( enable_network_access=_LOCALHOST, enable_env_vars=_ENV_ALLOWLIST, enable_read_paths=(), enable_write_paths=(), max_output_chars=64_000, ) __all__ = ["DEFAULT_SANDBOX_OPTIONS"]

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/draphonix/mcp-code-mode'

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