Skip to main content

MCP Server

MCP (Model Context Protocol) Server for the MBC CQRS Serverless framework. This package enables interaction with the framework through tools like Claude Code and Cursor.

What is MCP?

Model Context Protocol (MCP) is a protocol for AI tools to interact with applications and frameworks in a standardized way. It provides three main concepts: Resources, Tools, and Prompts.

Features

Resources

Access framework documentation and project information.

Resource URIDescription
mbc://docs/overviewComplete framework documentation
mbc://docs/llms-shortConcise framework overview
mbc://docs/architectureCQRS architecture guide
mbc://docs/errorsError catalog with solutions
mbc://docs/faqFrequently asked questions
mbc://docs/troubleshootingTroubleshooting guide
mbc://docs/securitySecurity best practices
mbc://project/entitiesList of project entities
mbc://project/modulesList of project modules
mbc://project/structureProject directory structure

Tools

Provides code generation and project analysis tools.

ToolDescription
mbc_generate_moduleGenerate a complete CQRS module
mbc_generate_controllerGenerate a controller
mbc_generate_serviceGenerate a service
mbc_generate_entityGenerate an entity
mbc_generate_dtoGenerate a DTO
mbc_validate_cqrsValidate CQRS pattern implementation
mbc_analyze_projectAnalyze project structure
mbc_lookup_errorLook up error solutions

Prompts

Provides guided assistance.

PromptDescription
cqrs_implementation_guideStep-by-step CQRS implementation
debug_command_errorDebug command-related errors
migration_guideVersion migration guidance

Installation

npm install @mbc-cqrs-serverless/mcp-server

Or use directly with npx:

npx @mbc-cqrs-serverless/mcp-server

Configuration

Claude Code

Add the following configuration to ~/.claude/claude_desktop_config.json:

{
"mcpServers": {
"mbc-cqrs-serverless": {
"command": "npx",
"args": ["@mbc-cqrs-serverless/mcp-server"],
"env": {
"MBC_PROJECT_PATH": "/path/to/your/project"
}
}
}
}

Cursor

Add to Cursor MCP configuration:

{
"mbc-cqrs-serverless": {
"command": "npx",
"args": ["@mbc-cqrs-serverless/mcp-server"],
"env": {
"MBC_PROJECT_PATH": "/path/to/your/project"
}
}
}

Environment Variables

VariableDescriptionDefault
MBC_PROJECT_PATHPath to project directoryCurrent working directory

Usage Examples

Module Generation

You can ask Claude Code:

"Generate a new Order module with async command handling"

Project Analysis

Analyze project structure.

"Analyze my project structure"

Debug Assistance

Get help debugging errors.

"I'm getting a version mismatch error, help me debug"