MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / has_cache

Method has_cache

openspace/grounding/backends/mcp/tool_cache.py:136–139  ·  view source on GitHub ↗

Check if cache exists and has data.

(self)

Source from the content-addressed store, hash-verified

134 return cache.get("servers", {})
135
136 def has_cache(self) -> bool:
137 """Check if cache exists and has data."""
138 cache = self.load()
139 return bool(cache.get("servers"))
140
141 def clear(self):
142 """Clear the cache."""

Callers 2

list_toolsMethod · 0.80

Calls 2

loadMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected