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

Method stream_execute_tool

src/mcp_cli/chat/chat_context.py:650–655  ·  view source on GitHub ↗

Execute a tool with streaming.

(
        self, tool_name: str, arguments: dict[str, Any]
    )

Source from the content-addressed store, hash-verified

648 return await self.tool_manager.execute_tool(tool_name, arguments)
649
650 async def stream_execute_tool(
651 self, tool_name: str, arguments: dict[str, Any]
652 ) -> AsyncIterator[Any]:
653 """Execute a tool with streaming."""
654 async for result in self.tool_manager.stream_execute_tool(tool_name, arguments):
655 yield result
656
657 async def get_server_for_tool(self, tool_name: str) -> str:
658 """Get server for tool."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected