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

Method validate_provider

src/mcp_cli/model_management/model_manager.py:401–403  ·  view source on GitHub ↗

Check if a provider is available.

(self, provider: str)

Source from the content-addressed store, hash-verified

399 # ── Validation ────────────────────────────────────────────────────────────
400
401 def validate_provider(self, provider: str) -> bool:
402 """Check if a provider is available."""
403 return provider in self.get_available_providers()
404
405 def validate_model(self, model: str, provider: str | None = None) -> bool:
406 """Check if a model is available for a provider."""

Callers 3

main_callbackFunction · 0.95
_chat_commandFunction · 0.95
models_commandFunction · 0.95

Calls 1

Tested by

no test coverage detected