| 503 | /* ── Help ───────────────────────────────────────────────────────── */ |
| 504 | |
| 505 | static void print_help(void) { |
| 506 | printf("codebase-memory-mcp %s\n\n", CBM_VERSION); |
| 507 | printf("Usage:\n"); |
| 508 | printf(" codebase-memory-mcp Run MCP server on stdio\n"); |
| 509 | printf(" codebase-memory-mcp cli <tool> [json] Run a single tool\n"); |
| 510 | printf(" codebase-memory-mcp install [-y|-n] [--force] [--dry-run]\n"); |
| 511 | printf(" codebase-memory-mcp uninstall [-y|-n] [--dry-run]\n"); |
| 512 | printf(" codebase-memory-mcp update [-y|-n]\n"); |
| 513 | printf(" codebase-memory-mcp config <list|get|set|reset>\n"); |
| 514 | printf(" codebase-memory-mcp --version Print version\n"); |
| 515 | printf(" codebase-memory-mcp --help Print this help\n"); |
| 516 | printf("\nUI options:\n"); |
| 517 | printf(" --ui=true Enable HTTP graph visualization (persisted)\n"); |
| 518 | printf(" --ui=false Disable HTTP graph visualization (persisted)\n"); |
| 519 | printf(" --port=N Set UI port (default 9749, persisted)\n"); |
| 520 | printf("\nSupported agents (auto-detected):\n"); |
| 521 | printf(" Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode,\n"); |
| 522 | printf(" Antigravity, Aider, KiloCode, Kiro\n"); |
| 523 | printf("\nTools: index_repository, search_graph, query_graph, trace_path,\n"); |
| 524 | printf(" get_code_snippet, get_graph_schema, get_architecture, search_code,\n"); |
| 525 | printf(" list_projects, delete_project, index_status, detect_changes,\n"); |
| 526 | printf(" manage_adr, ingest_traces\n"); |
| 527 | } |
| 528 | |
| 529 | /* ── Main ───────────────────────────────────────────────────────── */ |
| 530 | |