
peppemas/mcp_server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
peppemas/mcp server は [https://github.com/peppemas/mcp_server.] からインポートされた MCP サーバーの候補です
概要
peppemas/mcp server は [https://github.com/peppemas/mcp_server.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
プラグイン可能なモジュールアーキテクチャを持つモデルコンテキストプロトコルサーバーのC++実装。
| サーバー | リソース | プロンプト | ツール | サンプリング | 通知 | ルート | 排除 | |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | MCP-SERVER | ✅ | ✅ | 〇 | 〇 | 〇 | 〇 | 〇 |
* リソーステンプレートはまだサポートされていません
** 一部サポート
クロードコードの構成
セットアップログ ディレクトリ
デフォルトでは、mcp サーバは ./logs ディレクトリ (MUST BE EXISTS) にログインします。
[-l]コマンドラインオプションを使用して、ログを好みのダイアにリダイレクトできます。
対応輸送
| 輸送 | 対応 | 承認 | お問い合わせ | ステージ | | | | | | | お知らせ | | HttpStream | ✅ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
サポートされているプラットフォーム
| プラットフォーム | 対応 | コンパイル | |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ウィンドウズ | ✅ | MINGW64 | | UbuntuのLinux | ✅ | GCC | | Mac OS | | | ご利用案内 |
コンパイル方法
ローカルマシンのリポジトリをクローンする
コンパイラ
#MCPサーバーアーキテクチャ
MCP Server は、モデルコンテキストプロトコルを実装し、モジュール式で拡張可能なアーキテクチャを可能にします。 詳細はこちら
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
CPP MCP-SERVER
A C++ implementation of a Model Context Protocol Server with a pluggable module architecture.
| Server | Resources | Prompts | Tools | Sampling | Notifications | Roots | Elicitations |
|---|---|---|---|---|---|---|---|
| MCP-SERVER | ✅* | ✅ | ✅ | ❌ | ✅** | ❌ | ❌ |
* Resource Templates aren’t supported yet
** Partially supported
Claude Code Configuration
claude mcp add --transport http cpp_mcp_server http://localhost:8080/mcp
Setup Logs Directory
By default, the mcp server logs into ./logs directory (MUST BE EXISTS)
You can redirect logs into your preferred dir using the -l command line option.
Supported Transports
| Transport | Supported | Authorization |
|---|---|---|
| Stdio | ✅ | ❌ |
| SSE | ✅ | ❌ |
| HttpStream | ✅ | ❌ |
Supported Platforms
| Platform | Supported | Compiler |
|---|---|---|
| Windows | ✅ | MINGW64 |
| Ubuntu Linux | ✅ | GCC |
| Mac OS | ✅ | GCC |
How to compile
Clone the repository on your local machine
git clone https://github.com/peppemas/mcp_server.git
Compile
cd mcp_server
mkdir build
cd build
cmake ..
make
MCP Server Architecture
The MCP Server is designed to implement a Model Context Protocol, enabling a modular and extensible architecture. Below is an overview of the project’s architecture:
Core Components
-
Server Core:
The central component of the server that handles the initialization and management of all major functionalities, including communication with clients, logging, and plugin management. -
Command-Line Interface:
Provides command-line arguments for configuration:-n: Specifies the name of the server to expose to clients. (optional)-p: Sets the path to the plugins directory where to search the plugins (it searches also in subdirectories).-l: Sets the path to the log directory.
-
Plugin System:
The server is designed to load plugins dynamically from a specified directory (-pargument). Each plugin extends the server’s functionality, allowing for future expansion without modifying the core codebase. -
Logging Module:
Logging is centralized, with logs stored in the directory specified by the-lparameter. This enhances debugging and monitoring of the server’s activity.
Execution Flow
-
Initialization:
- The server starts by parsing the command-line arguments to configure the server name, plugin directory, and logs directory.
- Logs are initialized, and the plugin system is prepared.
-
Plugin Loading:
- Plugins from the specified directory are identified and loaded dynamically.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"mcp-server": {
"command": "C:\\mcp-server\\mcp_server.exe",
"args": [
"-n","developer-server",
"-l","C:\\mcp-server\\logs",
"-p","C:\\mcp-server\\plugins"
],
"env": {
"CUSTOM_API_KEY_1": "your-api-key-here",
"CUSTOM_API_KEY_2": "your-api-key-here",
"SAVE_DIR": "/path/to/save/directory"
}
}
}
}