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

Method __init__

tests/tools/test_dynamic_tools.py:15–23  ·  view source on GitHub ↗
(self, tools: list[ToolInfo] | None = None)

Source from the content-addressed store, hash-verified

13 """Mock tool manager for testing DynamicToolProvider."""
14
15 def __init__(self, tools: list[ToolInfo] | None = None):
16 self.tools = tools or []
17 self.execute_tool = AsyncMock(
18 return_value=ToolCallResult(
19 tool_name="test_tool",
20 success=True,
21 result={"data": "test_result"},
22 )
23 )
24
25 async def get_all_tools(self) -> list[ToolInfo]:
26 return self.tools

Callers

nothing calls this directly

Calls 1

ToolCallResultClass · 0.90

Tested by

no test coverage detected