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

Method __init__

tests/chat/test_tool_processor.py:89–96  ·  view source on GitHub ↗
(self, return_result=None, raise_exception=False)

Source from the content-addressed store, hash-verified

87 """Mock tool manager with execute_tool and stream_execute_tools methods."""
88
89 def __init__(self, return_result=None, raise_exception=False):
90 self.return_result = return_result or {
91 "isError": False,
92 "content": "Tool executed successfully",
93 }
94 self.raise_exception = raise_exception
95 self.executed_tool = None
96 self.executed_args = None
97
98 async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None):
99 self.executed_tool = tool_name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected