
conan-io/conan-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Conan のモデルコンテキストプロトコルサーバー
概要
Conanパッケージマネージャの統合のためのモデルコンテキストプロトコルサーバー。 「新しいバージョンのfmtとopensslを要件として持っているConanでCMakeライブラリプロジェクトを作成し、依存関係をインストールし、私が依存するライブラリが深刻な脆弱性を持っていないことを確認し、アプリケーションが商用になることを可能にするライセンスを持っている」 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パッケージマネージャの統合のためのモデルコンテキストプロトコルサーバー。
使用例
"最新のfmtバージョンを持つConanでCMakeライブラリプロジェクトを作成 要件としてopenssl, 依存関係をインストールし、それを検証 私は深刻な脆弱性を持っていないと、ライセンスを持っているに依存するライブラリ アプリケーションが商用化できるようにする。
インストール
要件
- python >= 3.10 の
- Conan は取付けました
MCP の設定
[mcp.json]に追加します。
注記:
uvx]はuvによって提供されます。 [uvがインストールされていない場合は、[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"]
}
}
}