MCP Catalogs
首页

oatpp-mcp

by oatpp·49·综合分 36

Oat++框架的C++ MCP服务器实现,支持API工具自动生成。

developer-toolsai-llmops-infra
6
Forks
2
活跃 Issue
17 个月前
最近提交
2 天前
收录于

概述

oatpp-mcp是专门为Oat++ C++ Web框架设计的Model Context Protocol实现。它使开发者能够将MCP功能集成到C++应用程序中,提供工具、资源和提示功能。服务器支持STDIO和HTTP SSE传输协议,使其能够灵活适应不同的集成场景。其突出功能是能够从Oat++ ApiController类自动生成MCP工具,实现REST API与语言模型之间的无缝连接。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:使LLM能够查询和交互现有的Oat++ REST API
:构建能够通过MCP集成利用LLM功能的C++应用程序
:使用Oat++框架为代码审查或日志系统创建MCP服务器
:oatpp-mcp支持哪些传输协议?
:如何从ApiController自动生成工具?

什么时候选它

如果您已经在使用 Oat++ 进行 C++ 开发,并希望将 API 端点作为 MCP 工具暴露给 LLM,请选择 oatpp-mcp。

什么时候不要选它

不适用于非 C++ 项目或需要除 STDIO/SSE 以外传输协议的项目;需要了解 Oat++ 框架。

此 server 暴露的工具

从 README 抽取出 1 个工具
  • Logger

    Logging tool for the MCP server

说明:Tool name inferred from example code in the README. The Logger tool is mentioned in examples but no detailed signature or description is provided in the documentation.

可对比工具

shell-mcpnode-mcppython-mcp

安装

安装 oatpp-mcp

前置要求

  • 安装主要的 [oatpp](https://github.com/oatpp/oatpp) 模块

构建步骤

  1. 克隆此仓库
  2. 在仓库根目录运行:

``bash mkdir build && cd build cmake .. make install ``

Claude Desktop 配置

要在Claude Desktop中使用,添加到 claude_desktop_config.json:

{
  "mcpServers": {
    "oatpp-mcp": {
      "command": "your/oatpp-mcp可执行文件的路径",
      "args": []
    }
  }
}

FAQ

oatpp-mcp支持哪些传输协议?
oatpp-mcp支持STDIO和HTTP SSE传输协议,适用于不同的集成场景。
如何从ApiController自动生成工具?
oatpp-mcp可以从您的Oat++ ApiController类自动生成MCP工具。查看[详细教程](https://medium.com/oatpp/c-restful-web-service-with-autogenerated-mcp-server-to-connect-with-llms-156d68bbb661)了解实现步骤。

Hacker News 讨论

开发者社区最近的相关讨论。

oatpp-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。