Back to Home
liuli-neko icon

coro-cpp-mcp

Verified Safe

by liuli-neko

Overview

A lightweight C++ server implementing the MCP (Model Context Protocol) via JSON-RPC over various transports (Stdio, SSE), designed to expose tool functions and resources to AI agents.

Installation

Run Command
xmake run server-example

Security Notes

The `registerLocalFileResource` function takes a `std::filesystem::path`, which could be susceptible to path traversal vulnerabilities if the `path` argument is derived from untrusted user input without sanitization. The `SseListener` exposes an HTTP/SSE endpoint, opening standard network attack surfaces (e.g., DoS, unauthenticated access) if not properly secured at a higher layer. No direct 'eval' or arbitrary code execution from user input is apparent. No hardcoded secrets were identified.

Similar Servers

Stats

Interest Score30
Security Score7
Cost ClassMedium
Avg Tokens750
Stars1
Forks0
Last Update2025-11-23

Tags

C++CoroutinesJSON-RPCMCPServerAI