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

Method from_tuple

src/mcp_cli/tools/models.py:417–420  ·  view source on GitHub ↗

Create from legacy tuple format.

(cls, result: tuple[bool, str | None])

Source from the content-addressed store, hash-verified

415
416 @classmethod
417 def from_tuple(cls, result: tuple[bool, str | None]) -> "ValidationResult":
418 """Create from legacy tuple format."""
419 is_valid, error = result
420 return cls(is_valid=is_valid, error_message=error)
421
422 @property
423 def display_result(self) -> str:

Callers 1

Calls

no outgoing calls

Tested by 1