The cli/ directory provides a command-line interface for interacting with jcodemunch tools outside of the MCP protocol.
This module allows developers and operators to invoke jcodemunch operations directly from the terminal — useful for debugging, manual inspection, and scripting. It wraps the same underlying tools (search_symbols, get_symbol, etc.) that the MCP server exposes, presenting results in a human-readable format.
cli.pyThe main CLI entry point. Contains:
out(result) — A helper function that standardizes output formatting, printing or returning tool results to the caller.The CLI is designed as a thin wrapper: it handles argument parsing and output formatting, while all business logic is delegated to the core jcodemunch_mcp package in src/.