BC-MCP-Configuration-Engine
A standardized framework dictating development protocols and environmental settings for Microsoft Dynamics 365 Business Central initiatives, utilizing declarative JSON manifest files to enforce uniform coding styles and deployment pipelines across development cohorts, supporting both immutable and fluid rule governance models.
Author

vanachterjacob
Quick Info
Actions
Tags
Business Central Configuration and Policy Engine
This dedicated server infrastructure furnishes codified development mandates and project context specifically tailored for Business Central undertakings, featuring deep integration capabilities with the Cursor IDE environment.
Core Capabilities
- Static Policy Sets: Immutable development guidelines persisted within dedicated JSON artifact files, consumable directly by the Cursor editor.
- Render Deployment Facilitation: Streamlined mechanism for provisioning the service onto the Render.com platform.
- Database Independence: Operational continuity maintained even when direct database connectivity is absent.
- Collaborative Enforcement: Policies are automatically propagated and enforced across all engaged personnel within the shared repository space.
Initial Setup Guide
For Development Team Members
To integrate the established Business Central governance standards into your active workspace:
- Obtain a local copy of this repository, or manually transfer the following critical files into your root project directory:
bc-rules.json-
.cursor-context -
The Cursor IDE will autonomously detect and instantiate these established parameters upon file access within the project boundary.
For System Administrators / Governance Owners
To revise or oversee the established rule set:
- Direct modification of
bc-rules.jsonenables immediate alteration of static policies. - Alternatively, leverage the backend MongoDB instance for dynamic, centralized storage and management of evolving policies.
- Execute
node scripts/generateRules.jsto synchronize any database-held dynamic rules back into the static deployment artifact.
Operational Deployment
Utilizing Render (Recommended Pathway)
- Execute the utility script
./scripts/deployRender.shto finalize preparatory steps for deployment. - Commit and push changes to the designated GitHub repository.
- Establish the official connection link between the repository and the Render.com hosting environment.
- Configure essential environment variables within the Render administrative console:
NODE_ENV: Set toproductionMCP_SERVER_PORT: Designate as10000(or preferred alternative)MONGODB_URI: Supply the connection string for the backing MongoDB data store (this is optional if only static rules are utilized).
Service Access Points (Endpoints)
/cursorrules: Retrieves the currently active, consolidated policy manifest in JSON format./health: Reports the operational status and availability of the configuration service.
Manifest Schema Example
Policies adhere to the following structural blueprint:
{
"version": "1.0",
"rules": [
"Adherence to corporate naming conventions for all compiled artifacts",
"Mandatory inclusion of robust exception handling within every defined procedure"
],
"context": {
"businessDomain": "Business Central ERP",
"preferredPatterns": ["Data Access Layer pattern", "Adherence to all SOLID principles"]
}
}
