MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / available

Method available

core/peer_cli.py:96–100  ·  view source on GitHub ↗

Return cached list of installed peer CLIs.

(self)

Source from the content-addressed store, hash-verified

94 self._available: Optional[List[PeerCLI]] = None
95
96 def available(self) -> List[PeerCLI]:
97 """Return cached list of installed peer CLIs."""
98 if self._available is None:
99 self._available = [c for c in PEER_REGISTRY if self._is_installed(c)]
100 return self._available
101
102 def _is_installed(self, cli: PeerCLI) -> bool:
103 # shutil.which is the most reliable check — works even if

Callers 5

select_cliMethod · 0.95
confirmMethod · 0.95
handle_commandFunction · 0.80
escalateFunction · 0.80
run_agentFunction · 0.80

Calls 1

_is_installedMethod · 0.95

Tested by

no test coverage detected