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

Method __init__

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

Source from the content-addressed store, hash-verified

66
67class DummyStreamManager:
68 def __init__(self, return_result=None, raise_exception=False):
69 # return_result: dictionary to return when call_tool is invoked.
70 self.return_result = return_result or {
71 "isError": False,
72 "content": "Successful call",
73 }
74 self.raise_exception = raise_exception
75 self.called_tool = None
76 self.called_args = None
77
78 async def call_tool(self, tool_name, arguments):
79 self.called_tool = tool_name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected