MCP Hub
Back to servers

coding-standards

Validated

A specialized MCP server that enforces production-grade coding standards (SOLID, DDD, TDD) by automatically detecting project stacks and injecting architectural guardrails into AI workflows.

Stars
3
Tools
7
Updated
Jan 21, 2026
Validated
Feb 9, 2026
Validation Details

Duration: 7.3s

Server: coding-standards-mcp v2.0.0

Quick Install

npx -y @corbat-tech/coding-standards-mcp

CORBAT MCP

Coding Standards Server for Claude

AI-generated code that passes code review on the first try.

The only MCP that makes Claude generate professional-grade code — with proper architecture, comprehensive tests, and zero code smells.

npm version CI License: MIT MCP

CORBAT Demo


The Real Problem With AI-Generated Code

When you ask Claude to write code, it works. But does it pass code review?

❌ No dependency injection
❌ Missing error handling
❌ Basic tests (if any)
❌ No input validation
❌ God classes and long methods
❌ Fails SonarQube quality gates

You spend hours fixing AI-generated code to meet your team's standards.


What If Claude Wrote Code Like Your Senior Engineers?

Without Corbat MCP

class UserService {
  private users: User[] = [];

  getUser(id: string) {
    return this.users.find(u => u.id === id);
  }

  createUser(name: string, email: string) {
    const user = { id: Date.now(), name, email };
    this.users.push(user);
    return user;
  }
}
  • Returns undefined on not found
  • No validation
  • No error types
  • No interfaces
  • 6 basic tests

With Corbat MCP

interface UserRepository {
  findById(id: UserId): User | null;
  save(user: User): void;
}

class UserService {
  constructor(
    private readonly repository: UserRepository,
    private readonly idGenerator: IdGenerator
  ) {}

  getUser(id: UserId): User {
    const user = this.repository.findById(id);
    if (!user) throw new UserNotFoundError(id);
    return user;
  }

  createUser(input: CreateUserInput): User {
    this.validateInput(input);
    const user = User.create(
      this.idGenerator.generate(),
      input.name.trim(),
      input.email.toLowerCase()
    );
    this.repository.save(user);
    return user;
  }
}
  • Dependency injection
  • Custom error types
  • Input validation & normalization
  • Repository pattern (ports & adapters)
  • 15 comprehensive tests

Benchmark Results: The Numbers Don't Lie

We tested Claude generating identical tasks with and without Corbat MCP across 20 scenarios.

MetricWithout MCPWith MCPImprovement
Quality Score63/10093/100+48%
Code Smells430-100%
SOLID Compliance50%89%+78%
Test Coverage219 tests558 tests+155%
SonarQube GateFAILPASSFixed

Key finding: Code generated with Corbat MCP passes SonarQube quality gates. Without it, code fails.

View Full Benchmark Report


Why Corbat MCP vs Other Solutions?

ApproachWhen it actsWhat it catchesAuto-detects stack
Corbat MCPBEFORE code is writtenArchitecture, SOLID, TDD, DDDYes
ESLint/PrettierAfter code existsSyntax, formattingNo
SonarQubeAfter PR/commitCode smells, bugsNo
Manual promptsEvery timeWhatever you rememberNo

Linters and analyzers catch problems after the fact. Corbat MCP prevents them.

vs Other Coding MCPs

FeatureCorbat MCPGeneric coding MCPs
Task-specific guardrails (feature vs bugfix vs refactor)YesNo
Auto-detects your stack from project filesYesNo
Enforces architectural patterns (Hexagonal, DDD)YesLimited
Comprehensive benchmark dataYesNo
7 production-ready profilesYesBasic

Quick Start (2 minutes)

Step 1 — Add to Claude:

Claude Code
claude mcp add corbat -- npx -y @corbat-tech/coding-standards-mcp
Claude Desktop

Edit ~/.config/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "corbat": {
      "command": "npx",
      "args": ["-y", "@corbat-tech/coding-standards-mcp"]
    }
  }
}

Step 2 — Just code:

You: "Create a payment service"

Corbat: ✓ Detected Java/Spring project
        ✓ Loaded java-spring-backend profile
        ✓ Applied hexagonal architecture rules
        ✓ Enforced TDD workflow
        ✓ Set 80%+ coverage requirement

That's it. Claude now generates code that passes code review.


What Gets Injected Automatically

When you ask Claude to create code, Corbat MCP injects professional standards:

## Detected
- Stack: Java 21 · Spring Boot 3 · Maven
- Task type: FEATURE
- Profile: java-spring-backend

## MUST
✓ Write tests BEFORE implementation (TDD)
✓ Use hexagonal architecture (domain → application → infrastructure)
✓ Apply SOLID principles
✓ Ensure 80%+ test coverage
✓ Create custom error types with context
✓ Validate all inputs at boundaries

## AVOID
✗ God classes (>200 lines) or god methods (>20 lines)
✗ Hard-coded configuration values
✗ Mixing business logic with infrastructure
✗ Returning null/undefined (use Result types or throw)

Smart Guardrails by Task Type

Corbat MCP automatically detects what you're doing and applies different rules:

TaskKey Rules
FeatureTDD workflow, 80%+ coverage, SOLID, hexagonal architecture
BugfixWrite failing test first, minimal changes, document root cause
RefactorTests pass before AND after, no behavior changes, incremental
TestAAA pattern, one assertion per test, descriptive names
You: "Fix the login timeout bug"

Corbat detects: BUGFIX
Applies: Failing test first → Minimal fix → Verify no regressions

Built-in Profiles for Every Stack

ProfileStackArchitecture
java-spring-backendJava 21, Spring Boot 3Hexagonal + DDD + CQRS
nodejsNode.js, TypeScriptClean Architecture
pythonPython, FastAPIClean Architecture
reactReact 18+Feature-based components
angularAngular 19+Feature-based + Signals
vueVue 3.5+Composition API
minimalAnyBasic quality standards

Auto-detection: Corbat reads pom.xml, package.json, requirements.txt to select the right profile automatically.


ROI for Development Teams

Based on our benchmark data:

BenefitImpact
Code review time-40% (fewer issues to catch)
Bug density-50% (better test coverage)
Onboarding time-30% (consistent architecture)
Technical debt-90% (zero code smells)
Debugging time-60% (custom errors with context)

How It Works

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  Your Prompt    │────▶│   Corbat MCP    │────▶│  Claude + Rules │
│                 │     │                 │     │                 │
│ "Create user    │     │ 1. Detect stack │     │ Generates code  │
│  service"       │     │ 2. Classify task│     │ that passes     │
│                 │     │ 3. Load profile │     │ code review     │
│                 │     │ 4. Inject rules │     │                 │
└─────────────────┘     └─────────────────┘     └─────────────────┘

Corbat MCP acts as a quality layer between you and Claude. It automatically:

  1. Detects your project's technology stack
  2. Classifies the type of task (feature, bugfix, refactor, test)
  3. Loads the appropriate profile with architecture rules
  4. Injects guardrails before Claude generates any code

Customize (Optional)

Interactive Setup

npx corbat-init

Manual Config

Create .corbat.json in your project root:

{
  "profile": "nodejs",
  "rules": {
    "always": [
      "Use TypeScript strict mode",
      "Prefer functional programming"
    ],
    "never": [
      "Use any type"
    ]
  }
}

Available Tools

ToolPurpose
get_contextPrimary — Returns all standards for your task
validateCheck code against standards (returns compliance score)
searchSearch 15 standards documents
profilesList all available profiles
healthServer status and diagnostics

Compatibility

ClientStatus
Claude Code (CLI)✅ Tested
Claude Desktop✅ Tested
Cursor⚠️ Experimental
Windsurf⚠️ Experimental
Other MCP clients✅ Standard protocol

Included Documentation

Corbat MCP comes with 15 searchable standards documents:

  • Architecture: Hexagonal, DDD, Clean Architecture
  • Code Quality: SOLID principles, Clean Code, Naming Conventions
  • Testing: TDD workflow, Unit/Integration/E2E guidelines
  • DevOps: Docker, Kubernetes, CI/CD best practices
  • Observability: Structured logging, Metrics, Distributed tracing

Use the search tool: "search kafka" → Returns event-driven architecture guidelines.


Troubleshooting

Claude can't find corbat
  1. Verify npm/npx is in PATH: which npx
  2. Test manually: npx @corbat-tech/coding-standards-mcp
  3. Restart Claude completely
  4. Check Claude's MCP logs
Wrong stack detected

Override with .corbat.json:

{ "profile": "nodejs" }

Or specify in prompt: "...using profile nodejs"

Standards not being applied
  1. Check if .corbat.json exists in project root
  2. Verify profile exists
  3. Try explicit: "Use corbat get_context for: your task"

Links


Stop fixing AI-generated code. Start shipping it.

Get Started · View Benchmarks · Documentation

Reviews

No reviews yet

Sign in to write a review