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

Method __init__

tests/planning/test_backends.py:41–53  ·  view source on GitHub ↗
(
        self,
        *,
        result: Any = "ok",
        success: bool = True,
        error: str | None = None,
        raise_exc: Exception | None = None,
    )

Source from the content-addressed store, hash-verified

39 """Minimal ToolManager stub for testing McpToolBackend."""
40
41 def __init__(
42 self,
43 *,
44 result: Any = "ok",
45 success: bool = True,
46 error: str | None = None,
47 raise_exc: Exception | None = None,
48 ):
49 self._result = result
50 self._success = success
51 self._error = error
52 self._raise_exc = raise_exc
53 self.calls: list[tuple[str, dict, str | None]] = []
54
55 async def execute_tool(
56 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected