We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anirban1592/google_openai_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
apply_env.py•688 B
import os
def apply_env():
"""
Apply environment variables from .env file to the current environment.
"""
env_file = "../.env"
if os.path.exists(env_file):
with open(env_file) as f:
for line in f:
# Ignore comments and empty lines
if line.startswith("#") or not line.strip():
continue
key, value = line.strip().split("=", 1)
os.environ[key] = value
print(f"{env_file} environment variables applied.")
else:
print(f"{env_file} file not found. No environment variables applied.")
apply_env()