MM

mpsm/mcp-cpp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

114 stars 30 forks 품질 75 트렌드 16MIT

mpsm/mcp-CPP는 https://github.com/mpsm/mcp-cpp.에서 가져온 MCP 서버 후보입니다.

개요

mpsm/mcp-CPP는 https://github.com/mpsm/mcp-cpp.에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

clangd LSP 통합을 통해 C++ 코드 분석 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. AI 에이전트가 현대 IDE와 유사한 의미론적 이해를 통해 C++ 코드베이스를 다룰 수 있도록 지원합니다.

왜 이 MCP 서버일까요?

현대 C++ 개발은 복잡한 코드베이스를 탐색하기 위해 전처리 매크로, 템플릿 인스턴스화, 복잡한 상속 계층 구조를 탐색하기 위해 고급 도구에 크게 의존합니다. 인간은 이러한 복잡성을 이해하기 위해 IntelliSense 기반 IDE를 사용하지만, 대부분의 AI 에이전트는 텍스트 전용 브라우징에 의존합니다.

이 MCP 서버는 현대 IDE에서 경험하는 것과 유사한 의미 분석 기능을 AI 에이전트에게 제공함으로써 그 간극을 메웁니다. 일반적인 LSP MCP 구현과 달리, 이 서버는 C++ 워크플로우에 특별히 집중하고 있습니다.

서버는 여러 C++ 프로젝트를 동시에 처리할 수 있어, 개별 구성 요소 간 상호작용을 이해하는 데 중요한 임베디드 리눅스 개발과 같은 복잡한 시나리오에 특히 유용합니다. 자동 빌드 디렉터리 감지 및 스위칭을 지원하는 CMake와 Meson 빌드 시스템 모두를 지원합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

C++ MCP Server

A Model Context Protocol (MCP) server that provides C++ code analysis capabilities through clangd LSP integration. Enables AI agents to work with C++ codebases using semantic understanding similar to modern IDEs.

Why This MCP Server?

Modern C++ development relies heavily on advanced tooling to navigate complex codebases with preprocessor macros, template instantiations, and intricate inheritance hierarchies. While humans use IntelliSense-powered IDEs to understand these complexities, most AI agents rely on text-only browsing.

This MCP server bridges that gap by providing AI agents with semantic analysis capabilities similar to what developers experience in modern IDEs. Unlike generic LSP MCP implementations, this server focuses specifically on C++ workflows.

The server can handle multiple C++ projects simultaneously, which is particularly useful for complex scenarios like embedded Linux development where understanding interactions between individual components is crucial. It supports both CMake and Meson build systems with automatic build directory detection and switching.

Advanced indexing monitoring tracks both clangd’s index state and logs to ensure complete symbol coverage, while intelligent filtering distinguishes between project code and external dependencies.

Features

The server provides three core analysis tools for C++ development. The get_project_details tool performs dynamic CMake and Meson build environment discovery and enables configuration switching. For symbol exploration, search_symbols offers C++ symbol search with project boundary detection and intelligent filtering. When deeper analysis is needed, analyze_symbol_context provides symbol analysis with inheritance and call hierarchy support.

The implementation works with both CMake and Meson projects, handling projects with multiple libraries and executables simultaneously. Advanced indexing monitors clangd’s index state and logs to ensure complete symbol coverage, while intelligent filtering distinguishes between project code and external dependencies. The server automatically discovers and switches between build configurations, and includes a Python CLI tool for quick symbol exploration.

Component Discovery

GitHub에서 전체 README 보기

설치

docker run -i --rm -v /path/to/cpp-project:/workspace mcp-cpp-server --root /workspace
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "cpp-tools": { "command": "mcp-cpp-server", "env": { "CLANGD_PATH": "/usr/bin/clangd-20" } } } }