We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ravipesala/spark_mcp_optimizer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
debug_models.py•502 B
import os
import google.generativeai as genai
api_key = os.getenv("GEMINI_API_KEY")
if not api_key:
# Use the one provided by user if env var not set in this context
# (Though I will export it in the run_command)
pass
try:
genai.configure(api_key=api_key)
print("Listing available models...")
for m in genai.list_models():
if 'generateContent' in m.supported_generation_methods:
print(m.name)
except Exception as e:
print(f"Error listing models: {e}")