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

Function dummy_async_command

tests/cli/test_run_command.py:83–90  ·  view source on GitHub ↗

Return a string proving param injection worked.

(*, extra_arg: str | None = None)

Source from the content-addressed store, hash-verified

81# Simple async / sync command callables to run
82# --------------------------------------------------------------------------- #
83async def dummy_async_command(*, extra_arg: str | None = None):
84 """Return a string proving param injection worked."""
85 # Commands now use context manager, no tool_manager parameter
86 from mcp_cli.context import get_context
87
88 get_context()
89 suffix = "" if extra_arg is None else f"-{extra_arg}"
90 return f"ok{suffix}"
91
92
93def dummy_sync_command(*, extra_arg: str | None = None):

Callers

nothing calls this directly

Calls 1

get_contextFunction · 0.90

Tested by

no test coverage detected