PM

peppemas/mcp_server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

52 stars 7 forks Качество 56 Тренд 0

peppemas/mcp server - кандидат на сервер MCP, импортированный из https://github.com/peppemas/mcp_server.

Обзор

peppemas/mcp server - кандидат на сервер MCP, импортированный из https://github.com/peppemas/mcp_server.

Обзор (машинный перевод)

Реализация C++ сервера протокола Model Context с подключаемой архитектурой модуля.

| Server | Resources | Prompts | Tools | Sampling | Notifications | Roots | Elicitations | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | MCP-SERVER | * | | |

  • Шаблоны пока не поддерживаются

** Частично поддерживается

##Клауд Код Конфигурация

Настройка Logs Directory

По умолчанию сервер mcp входит в каталог ./logs (MUST BE EXISTS) Вы можете перенаправить журналы в предпочитаемый вами дир, используя опцию командной строки -l.

Поддерживаемый транспорт

| Транспорт | Поддержка | Разрешение

| SSE | | HttpStream | |

Поддерживаемые платформы

| Платформа | Поддерживаемый | Компилятор

Главная → Windows → MINGW64 → Ubuntu Linux - GCC Главная → Mac OS → GCC →

Как сделать компиляцию

Клонируйте хранилище на локальной машине

компилировать

Архитектура MCP Server

Сервер MCP предназначен для реализации протокола Model Context, обеспечивающего модульную и расширяемую архитектуру. Ниже

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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

  1. 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.

  2. 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.
  3. Plugin System:
    The server is designed to load plugins dynamically from a specified directory (-p argument). Each plugin extends the server’s functionality, allowing for future expansion without modifying the core codebase.

  4. Logging Module:
    Logging is centralized, with logs stored in the directory specified by the -l parameter. This enhances debugging and monitoring of the server’s activity.

Execution Flow

  1. 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.
  2. Plugin Loading:

    • Plugins from the specified directory are identified and loaded dynamically.
Открыть полный README на GitHub

Установка

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" } } } }