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

Function _enter_interactive_mode

src/mcp_cli/run_command.py:273–293  ·  view source on GitHub ↗

Start the interactive-shell UI. We pass in the *StreamManager* plus the ToolManager for parity with production code.

(
    tool_manager,
    *,
    provider: str,
    model: str,
)

Source from the content-addressed store, hash-verified

271
272
273async def _enter_interactive_mode(
274 tool_manager,
275 *,
276 provider: str,
277 model: str,
278) -> bool:
279 """
280 Start the interactive-shell UI.
281
282 We pass in the *StreamManager* plus the ToolManager for parity with
283 production code.
284 """
285 from mcp_cli.commands.interactive import interactive_mode
286
287 result: bool = await interactive_mode(
288 stream_manager=tool_manager.stream_manager,
289 tool_manager=tool_manager,
290 provider=provider,
291 model=model,
292 )
293 return result
294
295
296# --------------------------------------------------------------------------- #

Callers 3

run_commandFunction · 0.85
_innerFunction · 0.85

Calls 1

interactive_modeFunction · 0.90

Tested by 1