Cover image
Peterparker57_Cpp-Builder-MCP-Server
Public

Peterparker57_Cpp-Builder-MCP-Server

Try Now
2025-01-19

Mirror ofhttps: //github.com/peterparker57/cpp-builder-mcp-server

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

C++ Builder MCP Server

An MCP server providing C++ DLL compilation and analysis capabilities. This server enables building C++ DLLs with specific export settings and analyzing DLL exports using Visual Studio build tools.

Features

  • C++ DLL compilation with MSBuild
  • Custom export settings via .def files
  • DLL export analysis using dumpbin
  • Configurable build settings
  • Platform and configuration targeting
  • Detailed build output

Tools

DLL Compilation

compile_dll

Compile a C++ DLL with specific export settings using MSBuild.

  • projectPath: Path to the .vcxproj file (required)
  • configuration: Build configuration (optional)
    • Values: 'Debug' or 'Release'
    • Default: 'Release'
  • platform: Target platform (optional)
    • Values: 'x86' or 'x64'
    • Default: 'x86'
  • defFile: Path to .def file for exports (optional)
    • Specifies exported functions and their attributes
    • Used to control which functions are exposed by the DLL

The tool uses Visual Studio's MSBuild to compile the DLL, providing:

  • Full build output with warnings and errors
  • Support for different configurations and platforms
  • Module definition file integration
  • Detailed build logs

Export Analysis

analyze_exports

Analyze exports from a compiled DLL using dumpbin.

  • dllPath: Path to the DLL file (required)

The analysis provides:

  • List of all exported functions
  • Export ordinals
  • Function names and addresses
  • Export forwarding information
  • Detailed export table analysis

Requirements

  • Visual Studio 2022 Community Edition or higher
  • Visual C++ build tools
  • Windows SDK

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/cpp-builder-mcp-server.git
cd cpp-builder-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your MCP settings file:

{
  "mcpServers": {
    "cpp-builder": {
      "command": "node",
      "args": ["path/to/cpp-builder-mcp-server/dist/index.js"],
      "env": {}
    }
  }
}

Usage Examples

Compile DLL

// Basic compilation
await mcp.use("cpp-builder", "compile_dll", {
  projectPath: "./src/MyLibrary.vcxproj"
});

// Compilation with specific settings
await mcp.use("cpp-builder", "compile_dll", {
  projectPath: "./src/MyLibrary.vcxproj",
  configuration: "Debug",
  platform: "x64",
  defFile: "./src/exports.def"
});

Analyze DLL Exports

await mcp.use("cpp-builder", "analyze_exports", {
  dllPath: "./bin/Release/MyLibrary.dll"
});

Development

  1. Make changes to the source code
  2. Run tests:
npm test
  1. Build the project:
npm run build

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Jan Meindl
  • Builds new GPTs

  • Khalid kalib
  • Write professional emails

  • XLwebDev.com
  • PR Professional: Guiding You to Get Media Placements and Publicity Quickly and Effectively

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • OffchainLabs
  • GO -Umsetzung des Ethereum -Beweises des Anteils

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

    Reviews

    2 (1)
    Avatar
    user_gM2HwaFh
    2025-04-17

    I recently used peterparker57_cpp-builder-mcp-server by MCP-Mirror and I'm thoroughly impressed. It's a remarkable tool for CPP developers, streamlining server management effortlessly. The comprehensive documentation at the GitHub link ensures smooth setup and functionality. Kudos to the creators for this efficient and user-friendly solution! Highly recommend it to any developer looking to enhance their MCP applications.