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

Method __init__

tests/apps/test_bridge.py:28–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 """Minimal ToolManager stub for bridge tests."""
27
28 def __init__(self):
29 self.executed_tools: list[tuple[str, dict, str | None]] = []
30 self.read_resources: list[tuple[str, str | None]] = []
31 self._next_result = FakeToolResult(True, result="ok")
32 self._next_resource = {
33 "contents": [{"uri": "ui://test", "text": "<html></html>"}]
34 }
35 self._raise_on_execute: Exception | None = None
36 self._execute_delay: float = 0
37
38 async def execute_tool(self, name, arguments, namespace=None):
39 if self._execute_delay:

Callers

nothing calls this directly

Calls 1

FakeToolResultClass · 0.70

Tested by

no test coverage detected