| 1121 | /* ── Help ───────────────────────────────────────────────────────── */ |
| 1122 | |
| 1123 | static void print_help(void) { |
| 1124 | printf("codebase-memory-mcp %s\n\n", CBM_VERSION); |
| 1125 | printf("Usage:\n"); |
| 1126 | printf(" codebase-memory-mcp Run MCP server on stdio\n"); |
| 1127 | printf(" codebase-memory-mcp cli [--quiet] [--progress] [--verbose] [--json] <tool> " |
| 1128 | "[args]\n"); |
| 1129 | printf(" Run one tool locally, then exit\n"); |
| 1130 | printf(" codebase-memory-mcp install [-y|-n] [--force] [--dry-run] " |
| 1131 | "[--dir=<path>] [--skip-config]\n"); |
| 1132 | printf(" [--clients=<tokens>] Run " |
| 1133 | "'install --clients' to list tokens\n"); |
| 1134 | printf(" codebase-memory-mcp uninstall [-y|-n] [--dry-run] [--delete-indexes]\n"); |
| 1135 | printf(" codebase-memory-mcp update [-y|-n]\n"); |
| 1136 | printf(" codebase-memory-mcp config <list|get|set|reset>\n"); |
| 1137 | printf(" codebase-memory-mcp --version Print version\n"); |
| 1138 | printf(" codebase-memory-mcp --help Print this help\n"); |
| 1139 | printf("\nCLI output options:\n"); |
| 1140 | printf(" --quiet Show errors only; disable automatic terminal progress\n"); |
| 1141 | printf(" --progress Show lifecycle progress even with redirected stderr\n"); |
| 1142 | printf(" --verbose Include informational diagnostics\n"); |
| 1143 | printf(" --json Print the raw MCP result envelope\n"); |
| 1144 | printf(" --quiet cannot be combined with --progress or outer --verbose.\n"); |
| 1145 | printf("\nUI options:\n"); |
| 1146 | printf(" --ui=true Enable HTTP graph visualization (persisted)\n"); |
| 1147 | printf(" --ui=false Disable HTTP graph visualization (persisted)\n"); |
| 1148 | printf(" --port=N Set UI port (default 9749, persisted)\n"); |
| 1149 | printf(" --tool-profile=analysis|scout Expose a restricted inspection surface\n"); |
| 1150 | printf("\nSupported automatic/conditional client surfaces (45):\n"); |
| 1151 | printf(" Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode,\n"); |
| 1152 | printf(" Antigravity, Aider, KiloCode, VS Code, Cursor, Windsurf,\n"); |
| 1153 | printf(" Augment / Auggie, OpenClaw, Kiro, Junie, Hermes, OpenHands,\n"); |
| 1154 | printf(" Cline, Warp, Qwen Code, GitHub Copilot CLI, Factory Droid, Crush,\n"); |
| 1155 | printf(" Goose, Mistral Vibe, Grok Build, Qoder CLI, Kimi Code CLI, GitLab Duo CLI,\n"); |
| 1156 | printf(" Rovo Dev CLI, Amp, Devin CLI / Local, Tabnine, Continue / cn,\n"); |
| 1157 | printf(" Visual Studio, TRAE, Roo Code, Amazon Q Developer IDE,\n"); |
| 1158 | printf(" CodeBuddy Code CLI, IBM Bob IDE, IBM Bob Shell, Pochi, Pi,\n"); |
| 1159 | printf(" Sourcegraph Cody, Oh My Pi (omp)\n"); |
| 1160 | printf(" Conditional/explicit targets are changed only when their documented\n"); |
| 1161 | printf(" platform, marker, or explicit existing config path is present.\n"); |
| 1162 | printf(" Manual/UI MCP boundaries: Qodo, Warp, JetBrains AI/ACP, Replit,\n"); |
| 1163 | printf(" Plandex, SWE-agent, BLACKBOX, GitHub cloud agents, Jules,\n"); |
| 1164 | printf(" CodeRabbit.\n"); |
| 1165 | /* Rendered from the MCP tool registry: a hand-maintained copy here |
| 1166 | * omitted check_index_coverage (#1361) and could silently drift again. */ |
| 1167 | char *tools_help = cbm_mcp_tools_help_list(); |
| 1168 | if (tools_help) { |
| 1169 | printf("\n%s", tools_help); |
| 1170 | free(tools_help); |
| 1171 | } |
| 1172 | } |
| 1173 | |
| 1174 | /* ── Main ───────────────────────────────────────────────────────── */ |
| 1175 |
no test coverage detected