
conan-io/conan-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Conan을 위한 모형 Context 의정서 서버
개요
Conan 패키지 관리자 통합을위한 모델 Context Protocol 서버. "Create a CMake library project with Conan that has the latest version of fmt and openssl as requirements, 격리를 설치하고 내가 심각한 취약점이 없다는 것을 확인하고 내 응용 프로그램을 상업화 할 수있는 라이센스가 있습니다." uvx는 uv에 의해 제공됩니다. uv가 설치되어 있지 않으면 pip install conan-mcp를 설치하거나 명령으로 conan-mcp를 직접 사용할 수 있습니다. 기본적으로 서버는 시스템 PATH (또는 MCP 서버가 실행되는 가상 환경)에서 conan을 사용합니다. 특정한 Conan 설치 또는 버전을 사용해야하는 경우, MCP 구성에서 CONAN MCP CONAN PATH 환경 변수를 설정할 수 있습니다. CONAN MCP CONAN PATH가 설정되지 않은 경우, 서버는 PATH 또는 MCP 서버가 실행되는 가상 환경에서 conan을 사용할 것입니다.
개요(AI 번역)
Conan 패키지 관리자 통합을위한 모델 Context Protocol 서버.
사용 예제
“Create the CMake library project with Conan that has the latest version of fmt and opensssl as requirements, 의존성을 설치하고 그 확인 라이브러리는 심각한 취약점이 없으며 라이센스가 없습니다. 그것은 내 응용 프로그램을 상업화 할 수 있습니다.”
설치
요구 사항
- 파이썬 >= 3.10
- Conan 설치
MCP 구성
mcp.json에 추가:
Note:
uvx는 uv로 제공됩니다.uv가 설치되어 있지 않은 경우,pip install conan-mcp]를 설치하거나pip install conan-mcp]를 설치하고conan-mcp]를 명령으로 사용합니다.
구성 Conan 바이너리 경로
기본적으로 서버는 시스템 PATH (또는 MCP 서버가 실행되는 가상 환경)에서 conan를 사용합니다. 특정 Conan 설치 또는 버전을 사용해야하는 경우 MCP 구성의 CONAN_MCP_CONAN_PATH] 환경 변수를 설정할 수 있습니다.
CONAN_MCP_CONAN_PATH이 설정되지 않는 경우, 서버는 PATH에서 conan]를 사용한다.
MCP 서버가 실행되는 가상 환경.
사용 가능한 도구
get_conan_profile]:
Conan 프로필 구성 받기
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Conan MCP Server
A Model Context Protocol server for Conan package manager integration.
Usage Examples
“Create a CMake library project with Conan that has the latest version of fmt and openssl as requirements, install the dependencies and verify that the libraries I depend on don’t have serious vulnerabilities and have a license that allows my application to be commercial.”
Installation
Requirements
- Python >= 3.10
- Conan installed
MCP Configuration
Add to your mcp.json:
{
"mcpServers": {
"conan": {
"command": "uvx",
"args": ["conan-mcp"]
}
}
}
Note:
uvxis provided by uv. If you don’t haveuvinstalled, you can install it or usepip install conan-mcpand then useconan-mcpdirectly as the command.
Configuring Conan Binary Path
By default, the server uses conan from the system PATH (or the virtual environment where the MCP server is running). If you need to use a specific Conan installation or version, you can set the CONAN_MCP_CONAN_PATH environment variable in your MCP configuration:
{
"mcpServers": {
"conan": {
"command": "uv",
"args": ["--directory", "/path/to/conan-mcp", "run", "conan-mcp"],
"env": {
"CONAN_MCP_CONAN_PATH": "/home/user/venv/bin/conan"
}
}
}
}
If CONAN_MCP_CONAN_PATH is not set, the server will use conan from PATH or
the virtual environment where the MCP server is running.
Available Tools
get_conan_profile:
Get Conan profile configuration
Parameters:
profile(optional): If provided, show that specific profile; otherwise, default
Usage examples:
- “What is my default Conan profile?”
- “Show me the linux-debug profile configuration”
list_conan_profiles
List available Conan profiles
Parameters:
- No parameters
Usage examples:
- “What Conan profiles do I have available?”
create_conan_project
Create a new Conan project with specified dependencies
Parameters:
template(required): Template type for the project.- Libraries:
cmake_lib(default),header_lib,meson_lib,msbuild_lib,bazel_lib,autotools_lib - Executables:
cmake_exe(default),meson_exe,msbuild_exe,bazel_exe,autotools_exe
- Libraries:
name(required): Name of the projectversion(optional): Version of the project (default: “0.1”)requires(optional): List of dependencies with versions (e.g., [“fmt/12.0.0”, “openssl/3.6.0”])tool_requires(optional): List of tool dependencies (e.g., [“cmake/4.1.2”, “ninja/1.13.1”, “meson/1.9.1”])work_dir(required): Working directory where the command should be executed. The project will be created directly in this directory.force(optional): Overwrite existing files if they exist (default: False)
Usage examples:
설치
uvx conan-mcp설정
{
"mcpServers": {
"conan": {
"command": "uvx",
"args": ["conan-mcp"]
}
}
}