Skip to main content
Glama

STAC MCP Server

by BnJam
test_execution_cache.py527 B
from stac_mcp.tools import execution def test_get_cached_client_singleton_per_key(): # Ensure the client cache returns the same instance for the same key execution._CLIENT_CACHE.clear() # noqa: SLF001 c1 = execution._get_cached_client(None, None) # noqa: SLF001 c2 = execution._get_cached_client(None, None) # noqa: SLF001 assert c1 is c2 # Different headers should produce a different cached client c3 = execution._get_cached_client(None, {"x": "1"}) # noqa: SLF001 assert c3 is not c1

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/BnJam/stac-mcp'

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