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

Class DummyContext

tests/chat/test_tool_processor_extended.py:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231
232class DummyContext:
233 def __init__(self, tool_manager=None):
234 self.conversation_history = []
235 self.tool_manager = tool_manager
236 self.tool_processor = None
237
238 def inject_tool_message(self, message):
239 self.conversation_history.append(message)
240
241 def get_display_name_for_tool(self, tool_name):
242 return f"display:{tool_name}"
243
244
245def make_tool_call(name="echo", args='{"msg": "hi"}', call_id="call_0"):

Callers 15

test_empty_listMethod · 0.70
test_from_dictMethod · 0.70
test_empty_nameMethod · 0.70

Calls

no outgoing calls

Tested by 15

test_empty_listMethod · 0.56
test_from_dictMethod · 0.56
test_empty_nameMethod · 0.56