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

Function slow_execute

tests/tools/test_execution.py:414–416  ·  view source on GitHub ↗
(self, tool_name, arguments, namespace=None, timeout=None)

Source from the content-addressed store, hash-verified

412
413 # Create a slow tool that we can cancel
414 async def slow_execute(self, tool_name, arguments, namespace=None, timeout=None):
415 await asyncio.sleep(10) # Long delay
416 return ToolCallResult(tool_name=tool_name, success=True, result={})
417
418 manager.execute_tool = lambda *args, **kwargs: slow_execute(
419 manager, *args, **kwargs

Calls 1

ToolCallResultClass · 0.90

Tested by

no test coverage detected