OpenGrok

•
2
•

Facilitates OpenGrok code search by providing 15 specialized tools for full-text search, symbol definitions, and historical analysis across large codebases like AOSP.

The OpenGrok tool acts as an MCP (Model Context Protocol) server, meticulously engineered in Rust to extend and enhance OpenGrok's code search capabilities for extremely large codebases, such as AOSP. It offers a comprehensive suite of 15 tools for in-depth code exploration, including six variants of search, file content retrieval, definition lookup, history tracking, annotation, and directory listing. Built with an asynchronous `reqwest` client, an in-memory TTL cache, and rate limiting, it's optimized for performance and scale. The server ensures secure access through flexible authentication methods like Bearer tokens and HTTP Basic Auth, and supports custom CA certificates for enterprise environments. It's designed for robust deployment with Docker, including multi-stage builds for small images and support for air-gapped environments, alongside health metrics and DNS rebinding protection.

Características Principales

0115 MCP tools for full OpenGrok REST API coverage (search, definitions, history, etc.)
020 GitHub stars
03Optimized for AOSP-scale codebases with result caching, rate limiting, and pagination
04Flexible authentication supporting Bearer token, HTTP Basic Auth, and custom CA certificates
05Dual transport modes: stdio and Streamable HTTP with DNS rebinding protection
06Docker-ready with multi-stage builds for compact images (~35 MB) and air-gapped deployment support

Casos de Uso

01Performing detailed code searches and analysis on massive projects such as Android Open Source Project (AOSP).
02Integrating secure OpenGrok code search functionality within corporate or isolated (air-gapped) network environments.
03Providing a high-performance and robust backend for code exploration across large source code repositories.