Skip to main content
Glama
test_env_vars.py961 B
#!/usr/bin/env python3 """ Test script to verify that environment variables are properly read by mcp-mem. """ import os import sys import json from mcp_mem.config import get_config def main(): """Print the current HippoRAG configuration with environment variables.""" # Get the current configuration config = get_config() # Print the HippoRAG configuration print("Current HippoRAG configuration:") print(json.dumps(config.hipporag_config, indent=2)) # Print environment variables print("\nEnvironment variables:") for var in ["EMBEDDING_MODEL_NAME", "EMBEDDING_BASE_URL", "LLM_NAME", "LLM_BASE_URL", "OPENAI_API_KEY"]: value = os.environ.get(var, 'Not set') # Mask API key for security if var == "OPENAI_API_KEY" and value != 'Not set': value = value[:4] + "..." + value[-4:] if len(value) > 8 else "****" print(f"{var}: {value}") if __name__ == "__main__": main()

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/ddkang1/mcp-mem'

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