Skip to main content
Glama

MCP Logging NL Query Server

test_main.py683 B
import requests import os BASE_URL = os.environ.get("MCP_BASE_URL", "http://localhost:8080") def test_nl_query(): resp = requests.post( f"{BASE_URL}/logs/nl_query", json={"query": "Show me error logs for my Cloud Run service", "max_results": 2} ) print("/logs/nl_query status:", resp.status_code) print(resp.json()) def test_lql_query(): resp = requests.post( f"{BASE_URL}/logs/query", json={"filter": "resource.type=\"cloud_run_revision\" AND severity=ERROR", "max_results": 2} ) print("/logs/query status:", resp.status_code) print(resp.json()) if __name__ == "__main__": test_nl_query() test_lql_query()

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/srtux/mcp'

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