C/C++ language server for code intelligence, diagnostics, and formatting in C++ projects.
## Clang MCP Server: C/C++ Language Intelligence The **Clang MCP Server** integrates clangd into Google Antigravity, providing powerful C and C++ language intelligence with real-time diagnostics, code completion, and modern C++ feature support. ### Why Clang MCP? C and C++ power systems programming worldwide. The clangd MCP provides: - **Real-time Diagnostics**: Catch errors without full compilation - **Smart Completions**: Context-aware with template support - **Include Management**: Auto-include headers - **Modern C++ Support**: C++20 and beyond ### Key Features #### 1. Code Intelligence Full C/C++ understanding: - Template instantiation - Macro expansion - Preprocessor handling - Header navigation #### 2. Diagnostics Comprehensive error checking: - Syntax errors - Type violations - Memory issues (with sanitizers) - Undefined behavior warnings #### 3. Build Integration CMake and build system support: - compile_commands.json - Header search paths - Compiler flags ### Configuration ```json { "mcpServers": { "clangd": { "command": "clangd", "args": ["--mcp", "--background-index"] } } } ``` The Clang MCP brings modern IDE features to C/C++ development with the reliability of the LLVM toolchain.
{
"mcpServers": {
"clangd": {}
}
}