Cover image
PeterParker57_clarion-Builder-MCP-Server
Public

PeterParker57_clarion-Builder-MCP-Server

Try Now
2025-01-19

镜像://github.com/peterparker57/clarion-builder-mcp-server

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

Clarion Builder MCP Server

An MCP server providing Clarion development and build capabilities. This server enables automated Clarion IDE operations, project compilation, and build management using ClarionCL and MSBuild.

Features

  • ClarionCL command execution
  • Project generation and compilation
  • Template management
  • Dictionary import/export
  • TXA file handling
  • MSBuild integration
  • Comprehensive build configuration

Tools

ClarionCL Operations

clarion_cl

Execute ClarionCL commands for IDE tasks.

  • action: ClarionCL action to perform (required)
    • Values:
      • generate: Generate project files
      • import-txa: Import TXA files
      • export-txa: Export TXA files
      • export-dict: Export dictionary
      • import-dict: Import dictionary
      • register-template: Register a template
      • unregister-template: Unregister a template
      • list-templates: List registered templates
      • register-driver: Register a driver
  • filePath: Path to APP/SLN/TXA/DCT file
  • secondaryPath: Secondary path for import/export operations
  • version: Clarion version to use (e.g., "Clarion 11.0 Enterprise Edition")
  • conditionalGeneration: Enable conditional generation for generate action
  • debugGeneration: Enable debug generation for generate action
  • useWindowsRedirection: Use Windows redirection file (/win switch) (required)
  • templateClass: Template class name for template operations
  • redirectionFile: Redirection file to use (e.g., "Clarion110.red") (required)

Solution Building

compile_solution

Compile a Clarion solution using MSBuild.

  • solutionPath: Full path to the .sln file (required)
  • projectName: Name of specific project to compile (e.g., MyApp.app)
  • targetName: Name of specific target/exe to build (e.g., MyApp.exe)
  • configuration: Build configuration
    • Values: 'Debug' or 'Release'
  • platform: Target platform
    • Values: 'Win32' or 'x64'
  • clarionBinPath: Path to Clarion binaries
  • logFile: Path for build log file
  • additionalArgs: Additional MSBuild arguments

Build Options:

  • checkIndex: Generate array index check code
  • checkStack: Generate stack access check code
  • lineNumbers: Add line numbers to MAP file
  • generateMap: Generate MAP file
  • stackSize: Stack size
  • vid: Debug support level
    • Values: 'full', 'min', 'off'
  • model: Memory model
    • Values: 'Dll', 'Lib', 'CustomDll'
  • copyCoreFiles: Copy core DLLs
  • defines: Semicolon-separated list of defines

Requirements

  • Clarion 11.0 or higher
  • Microsoft .NET Framework 4.0 or higher
  • Visual Studio build tools
  • Windows SDK

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/clarion-builder-mcp-server.git
cd clarion-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": {
    "clarion-builder": {
      "command": "node",
      "args": ["path/to/clarion-builder-mcp-server/dist/index.js"],
      "env": {}
    }
  }
}

Usage Examples

Generate Project

await mcp.use("clarion-builder", "clarion_cl", {
  action: "generate",
  filePath: "./src/MyApp.app",
  version: "Clarion 11.0 Enterprise Edition",
  conditionalGeneration: true,
  useWindowsRedirection: true,
  redirectionFile: "Clarion110.red"
});

Import/Export TXA

// Export TXA
await mcp.use("clarion-builder", "clarion_cl", {
  action: "export-txa",
  filePath: "./src/MyApp.app",
  secondaryPath: "./backup/MyApp.txa",
  useWindowsRedirection: true,
  redirectionFile: "Clarion110.red"
});

// Import TXA
await mcp.use("clarion-builder", "clarion_cl", {
  action: "import-txa",
  filePath: "./src/MyApp.app",
  secondaryPath: "./backup/MyApp.txa",
  useWindowsRedirection: true,
  redirectionFile: "Clarion110.red"
});

Compile Solution

await mcp.use("clarion-builder", "compile_solution", {
  solutionPath: "./MyApp.sln",
  configuration: "Release",
  platform: "Win32",
  generateMap: true,
  vid: "full",
  model: "Dll",
  copyCoreFiles: true
});

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.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • 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
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    2 (1)
    Avatar
    user_CDkunEP5
    2025-04-15

    As a dedicated user of the mcp application, I have found the mcp_repo_8fe29404 to be an invaluable resource. Created by sanskarmk, this repository is incredibly well-structured and easy to navigate. It has streamlined my workflow significantly. I highly recommend it to anyone looking to optimize their server processes. Check it out at: https://mcp.so/server/mcp_repo_8fe29404/sanskarmk.