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
test_ai_advisor.py•781 B
import sys
import os
# Hack to run from root dir
sys.path.append(os.getcwd())
from src.main import ask_spark_advisor
def test_ai(app_id):
print(f"Asking AI Advisor about: {app_id}")
try:
response = ask_spark_advisor(app_id, code_path=None)
print("\n=== AI RESPONSE ===\n")
print(response)
print("\n===================\n")
if "Gemini API Key Missing" in response or "Analysis Context" in response:
print("SUCCESS: Tool executed (even if key missing).")
else:
print("UNKNOWN RESPONSE??")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
app_id = sys.argv[1] if len(sys.argv) > 1 else "application_1768320005356_0007"
test_ai(app_id)