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

Method get_help

src/mcp_cli/adapters/interactive.py:259–276  ·  view source on GitHub ↗

Get help text for all available commands. Returns: Formatted help text.

()

Source from the content-addressed store, hash-verified

257
258 @staticmethod
259 def get_help() -> str:
260 """
261 Get help text for all available commands.
262
263 Returns:
264 Formatted help text.
265 """
266 lines = ["Available commands:", ""]
267
268 for cmd in registry.list_commands(mode=CommandMode.INTERACTIVE):
269 lines.append(f" {cmd.name:<15} {cmd.description}")
270 if cmd.aliases:
271 lines.append(f" Aliases: {', '.join(cmd.aliases)}")
272
273 lines.append("")
274 lines.append("Type 'help <command>' for detailed help on a specific command.")
275
276 return "\n".join(lines)
277
278 @staticmethod
279 def get_command_help(command_name: str) -> str:

Callers 1

test_get_helpMethod · 0.80

Calls 1

list_commandsMethod · 0.45

Tested by 1

test_get_helpMethod · 0.64