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

Method __init__

tests/tools/test_dynamic_tools_extended.py:29–35  ·  view source on GitHub ↗
(self, tools=None)

Source from the content-addressed store, hash-verified

27 """Mock tool manager for testing DynamicToolProvider."""
28
29 def __init__(self, tools=None):
30 self.tools = tools or []
31 self.execute_tool = AsyncMock(
32 return_value=ToolCallResult(
33 tool_name="test", success=True, result={"data": "ok"}
34 )
35 )
36
37 async def get_all_tools(self):
38 return self.tools

Callers

nothing calls this directly

Calls 1

ToolCallResultClass · 0.90

Tested by

no test coverage detected