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

Function _cmd_wrapper

src/mcp_cli/main.py:1658–1670  ·  view source on GitHub ↗
(**params)

Source from the content-addressed store, hash-verified

1656
1657 # Execute via run_command_sync
1658 async def _cmd_wrapper(**params):
1659 return await cli_execute(
1660 "cmd",
1661 input_file=params.get("input_file"),
1662 output_file=params.get("output_file"),
1663 prompt=params.get("prompt"),
1664 tool=params.get("tool"),
1665 tool_args=params.get("tool_args"),
1666 system_prompt=params.get("system_prompt"),
1667 raw=params.get("raw", False),
1668 single_turn=params.get("single_turn", False),
1669 max_turns=params.get("max_turns", 100),
1670 )
1671
1672 run_command_sync(
1673 _cmd_wrapper,

Callers

nothing calls this directly

Calls 2

cli_executeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected