What is CPP MCP-SERVER?
CPP MCP-SERVER is a C++ implementation of a Model Context Protocol Server with a pluggable module architecture. It supports resources, prompts, tools, and partial notifications, but does not support sampling, roots, or elicitations.
How to use CPP MCP-SERVER?
Compile from source using CMake and Make (or MinGW on Windows). Configure the server via command-line arguments: -n for server name, -p for plugins directory, -l for logs directory. Add the server to Claude Code using claude mcp add --transport http cpp_mcp_server http://localhost:8080/mcp. For Claude Desktop, add a JSON configuration block specifying the executable path, arguments, and environment variables for plugins.
Key features of CPP MCP-SERVER
- C++ based MCP server with pluggable module architecture
- Supports Stdio, SSE, and HttpStream transports (no authorization)
- No resource templates, sampling, roots, or elicitations
- Runs on Windows (MinGW64), Ubuntu Linux (GCC), and macOS (GCC)
- Plugins loaded dynamically from a specified directory
- Centralized logging configurable via
-l command-line option
Use cases of CPP MCP-SERVER
- Extending an MCP client with custom tools using dynamically loaded plugins
- Adding weather data fetching, code review, or sleep functionality via example plugins
- Developing and testing time‑based operations with the Sleep plugin
- Integrating with version control systems for automated code review feedback
评论