MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _scope_path

Method _scope_path

src/mcp_cli/memory/store.py:165–169  ·  view source on GitHub ↗

Return the file path for a scope.

(self, scope: MemoryScope)

Source from the content-addressed store, hash-verified

163 # ------------------------------------------------------------------
164
165 def _scope_path(self, scope: MemoryScope) -> Path:
166 """Return the file path for a scope."""
167 if scope == MemoryScope.GLOBAL:
168 return self._base_dir / "global.json"
169 return self._base_dir / "workspace" / f"{self._workspace_hash}.json"
170
171 def _load(self, scope: MemoryScope) -> MemoryScopeFile:
172 """Load scope data from disk. Returns empty file if not found."""

Callers 2

_loadMethod · 0.95
_saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected