OpenGrok
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.