MCP ExplorerExplorer

Bc Mcp

@vanachterjacobon 9 months ago
2 MIT
FreeCommunity
AI Systems
An attempt at creating a BC MCP server

Overview

What is Bc Mcp

BC-MCP is a Business Central MCP server designed to provide standardized development rules and context for Business Central projects, optimized for use with the Cursor editor.

Use cases

Use cases include ensuring consistent coding standards across team projects, facilitating easier onboarding of new team members, and providing a reliable framework for error handling and business naming conventions.

How to use

Team members can clone the repository or copy the necessary files, such as ‘bc-rules.json’ and ‘.cursor-context’, into their projects. Administrators can manage rules by editing ‘bc-rules.json’ or using a MongoDB database for dynamic rule management.

Key features

Key features include static JSON-based rules for the Cursor editor, easy deployment to Render.com, fallback mode for operation without a database connection, and automatic application of rules for all team members.

Where to use

BC-MCP is primarily used in software development projects that utilize Microsoft Dynamics 365 Business Central, particularly in environments where standardized coding practices are essential.

Content

Business Central MCP Server

A server that provides standardized development rules and context for Business Central projects, optimized for use with Cursor editor.

Features

  • Static Rules: JSON-based rules for Cursor editor
  • Render Deployment: Easy deployment to Render.com
  • Fallback Mode: Works without database connection
  • Team-Friendly: Rules automatically applied to all team members

Quick Start

For Team Members

To use the BC standards in your project:

  1. Clone this repository or copy the following files to your project:

    • bc-rules.json
    • .cursor-context
  2. Cursor will automatically pick up these rules when editing files in your project.

For Administrators

To update or manage the rules:

  1. Edit bc-rules.json directly to update static rules
  2. Or use the MongoDB database to store and manage rules dynamically
  3. Run node scripts/generateRules.js to update the static file from the database

Deployment

Using Render (Recommended)

  1. Run ./scripts/deployRender.sh to prepare for deployment
  2. Push to GitHub
  3. Connect repository to Render.com
  4. Set environment variables in Render dashboard:
    • NODE_ENV: production
    • MCP_SERVER_PORT: 10000
    • MONGODB_URI: Your MongoDB connection string (optional)

Endpoints

  • /cursorrules: Get the current rules (JSON format)
  • /health: Server health check

Rule Structure

Rules are structured as follows:

{
  "version": "1.0",
  "rules": [
    "Follow business naming conventions for all code",
    "Include proper error handling in all functions"
  ],
  "context": {
    "businessDomain": "Business Central",
    "preferredPatterns": [
      "Repository pattern",
      "SOLID principles"
    ]
  }
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers