C++ DLL 编译与分析服务器

C++ DLL 编译与分析服务器

提供 C++ DLL 编译和导出分析功能的 MCP 服务器。

快速入门

  1. 克隆仓库: git clone https://github.com/yourusername/cpp-builder-mcp-server.git cd cpp-builder-mcp-server

  2. 安装依赖: npm install

  3. 构建项目: npm run build

  4. 配置服务器,添加到 MCP 设置文件中: { "mcpServers": { "cpp-builder": { "command": "node", "args": ["path/to/cpp-builder-mcp-server/dist/index.js"], "env": {} } } }

  5. 使用示例:

    • 编译 DLL: await mcp.use("cpp-builder", "compile_dll", { projectPath: "./src/MyLibrary.vcxproj" });
    • 分析 DLL 导出: await mcp.use("cpp-builder", "analyze_exports", { dllPath: "./bin/Release/MyLibrary.dll" });