| 889 | /* ── Help ───────────────────────────────────────────────────────── */ |
| 890 | |
| 891 | static void print_help(void) { |
| 892 | printf("codebase-memory-mcp %s\n\n", CBM_VERSION); |
| 893 | printf("Usage:\n"); |
| 894 | printf(" codebase-memory-mcp Run MCP server on stdio\n"); |
| 895 | printf(" codebase-memory-mcp cli [--progress] [--json] <tool> [args]\n"); |
| 896 | printf(" Run one tool locally, then exit\n"); |
| 897 | printf(" codebase-memory-mcp install [-y|-n] [--force] [--dry-run] " |
| 898 | "[--dir=<path>] [--skip-config]\n"); |
| 899 | printf(" codebase-memory-mcp uninstall [-y|-n] [--dry-run]\n"); |
| 900 | printf(" codebase-memory-mcp update [-y|-n]\n"); |
| 901 | printf(" codebase-memory-mcp config <list|get|set|reset>\n"); |
| 902 | printf(" codebase-memory-mcp --version Print version\n"); |
| 903 | printf(" codebase-memory-mcp --help Print this help\n"); |
| 904 | printf("\nUI options:\n"); |
| 905 | printf(" --ui=true Enable HTTP graph visualization (persisted)\n"); |
| 906 | printf(" --ui=false Disable HTTP graph visualization (persisted)\n"); |
| 907 | printf(" --port=N Set UI port (default 9749, persisted)\n"); |
| 908 | printf(" --tool-profile=analysis|scout Expose a restricted inspection surface\n"); |
| 909 | printf("\nSupported automatic/conditional client surfaces (43):\n"); |
| 910 | printf(" Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode,\n"); |
| 911 | printf(" Antigravity, Aider, KiloCode, VS Code, Cursor, Windsurf,\n"); |
| 912 | printf(" Augment / Auggie, OpenClaw, Kiro, Junie, Hermes, OpenHands,\n"); |
| 913 | printf(" Cline, Warp, Qwen Code, GitHub Copilot CLI, Factory Droid, Crush,\n"); |
| 914 | printf(" Goose, Mistral Vibe, Qoder CLI, Kimi Code CLI, GitLab Duo CLI,\n"); |
| 915 | printf(" Rovo Dev CLI, Amp, Devin CLI / Local, Tabnine, Continue / cn,\n"); |
| 916 | printf(" Visual Studio, TRAE, Roo Code, Amazon Q Developer IDE,\n"); |
| 917 | printf(" CodeBuddy Code CLI, IBM Bob IDE, IBM Bob Shell, Pochi, Pi,\n"); |
| 918 | printf(" Sourcegraph Cody\n"); |
| 919 | printf(" Conditional/explicit targets are changed only when their documented\n"); |
| 920 | printf(" platform, marker, or explicit existing config path is present.\n"); |
| 921 | printf(" Manual/UI MCP boundaries: Qodo, Warp, JetBrains AI/ACP, Replit,\n"); |
| 922 | printf(" Plandex, SWE-agent, BLACKBOX, GitHub cloud agents, Jules,\n"); |
| 923 | printf(" CodeRabbit.\n"); |
| 924 | /* Rendered from the MCP tool registry: a hand-maintained copy here |
| 925 | * omitted check_index_coverage (#1361) and could silently drift again. */ |
| 926 | char *tools_help = cbm_mcp_tools_help_list(); |
| 927 | if (tools_help) { |
| 928 | printf("\n%s", tools_help); |
| 929 | free(tools_help); |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | /* ── Main ───────────────────────────────────────────────────────── */ |
| 934 |
no test coverage detected