AOSP Android Source
Enables AI agents to rapidly search and access Android source code from cs.android.com with token efficiency.
The aosp-mcp tool is a high-performance Model Context Protocol (MCP) server built with Bun, specifically designed to empower AI coding agents to search and read Android source code from cs.android.com. It provides a fast, token-efficient interface, delivering compact ripgrep-style results, utilizing response caching, and supporting request coalescing and pagination. This optimization ensures that AI agents can efficiently navigate and understand the vast Android codebase while respecting their token budgets, integrating seamlessly with popular clients like Claude Code, Cursor, VS Code Copilot, and Gemini CLI.
主要功能
01Fast performance through Bun, TLS warm-up, in-memory caching, and fast retries
02Efficient file reading with line numbers, ranges, and continuation hints for large files
03Comprehensive code search across AOSP, AndroidX, Android Studio, and Android LLVM with advanced operators
041 GitHub stars
05Token-efficient results via concise search outputs, deduplicated matches, snippet caps, and short pagination handles
06Symbol suggestions to resolve partial class, method, or file names
使用案例
01Integrating Android source code search and retrieval capabilities into various IDEs and CLIs that support MCP
02Providing real-time Android source code context and documentation to AI coding agents
03Assisting developers in debugging, exploring, and understanding the AOSP codebase with AI tools