Sign In

@corbat-tech/coding-standards-mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corbat-tech/coding-standards-mcp

AI coding standards that apply themselves - MCP server that enforces production-grade code

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
62
121.43%
Maintainers
1
Weekly downloads
 
Created
Source

CORBAT MCP

AI Coding Standards Server

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

npm version CI Coverage License: MIT MCP

Cursor VS Code Windsurf JetBrains Zed Claude

Works with GitHub Copilot, Continue, Cline, Tabnine, Amazon Q, and 25+ more tools

The Problem

AI-generated code works, but rarely passes code review:

Without CorbatWith Corbat
No dependency injectionProper DI with interfaces
Missing error handlingCustom error types with context
Basic tests (if any)80%+ coverage with TDD
God classes, long methodsSOLID, max 20 lines/method
Fails SonarQubePasses quality gates

Result: Production-ready code that passes code review.

Quick Start

1. Add to your MCP config:

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

2. Config file location:

ToolLocation
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
JetBrainsSettings → AI Assistant → MCP
Claude Desktop~/.config/Claude/claude_desktop_config.json
Claude Codeclaude mcp add corbat -- npx -y @corbat-tech/coding-standards-mcp

Complete setup guide for all 25+ tools

3. Done! Corbat auto-detects your stack.

You: "Create a payment service"

Corbat: ✓ Detected: Java 21, Spring Boot 3, Maven
        ✓ Profile: java-spring-backend
        ✓ Architecture: Hexagonal + DDD
        ✓ Testing: TDD, 80%+ coverage

Benchmark Results

Tested across 20 real-world scenarios:

MetricWithoutWithImpact
Quality Score63/10093/100+48%
Code Smells430-100%
SOLID Compliance50%89%+78%
Tests Generated219558+155%
SonarQubeFAILPASSFixed

View detailed benchmark report with code samples

Code Comparison

Before: 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;
  }
}
// Problems: returns undefined, no validation, no DI, no tests

After: 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 errors ✓ Validation ✓ 15 tests

Built-in Profiles

ProfileStackArchitectureTesting
java-spring-backendJava 21 + Spring Boot 3Hexagonal + DDD + CQRSTDD, 80%+ coverage
kotlin-springKotlin + Spring Boot 3Hexagonal + CoroutinesKotest, MockK
nodejsNode.js + TypeScriptClean ArchitectureVitest
nextjsNext.js 14+Feature-based + RSCVitest, Playwright
reactReact 18+Feature-basedTesting Library
vueVue 3.5+Feature-basedVitest
angularAngular 19+Feature modulesJest
pythonPython + FastAPIHexagonal + asyncpytest
goGo 1.22+Clean + idiomaticTable-driven tests
rustRust + AxumClean + ownershipBuilt-in + proptest
csharp-dotnetC# 12 + ASP.NET Core 8Clean + CQRSxUnit, FluentAssertions
flutterDart 3 + FlutterClean + BLoC/Riverpodflutter_test
minimalAnyBasic quality rulesOptional

Auto-detection: Corbat reads pom.xml, package.json, go.mod, Cargo.toml, pubspec.yaml, *.csproj to select the right profile.

Architecture Patterns Enforced

  • Hexagonal Architecture — Ports & Adapters, infrastructure isolation
  • Domain-Driven Design — Aggregates, Value Objects, Domain Events
  • SOLID Principles — Single responsibility, dependency inversion
  • Clean Code — Max 20 lines/method, meaningful names, no magic numbers
  • Error Handling — Custom exceptions with context, no generic catches
  • Testing — TDD workflow, unit + integration, mocking strategies

Customize

Ready-to-use templates

Copy a production-ready configuration for your stack:

Browse 14 templates — Java, Python, Node.js, React, Vue, Angular, Go, Kotlin, Rust, Flutter, and more.

Generate a custom profile

npx corbat-init

Interactive wizard that auto-detects your stack and lets you configure architecture, DDD patterns, and quality metrics.

Manual config

Create .corbat.json in your project root:

{
  "profile": "java-spring-backend",
  "architecture": {
    "pattern": "hexagonal",
    "layers": ["domain", "application", "infrastructure", "api"]
  },
  "ddd": {
    "aggregates": true,
    "valueObjects": true,
    "domainEvents": true
  },
  "quality": {
    "maxMethodLines": 20,
    "maxClassLines": 200,
    "minCoverage": 80
  },
  "rules": {
    "always": ["Use records for DTOs", "Prefer Optional over null"],
    "never": ["Use field injection", "Catch generic Exception"]
  }
}

How It Works

Your Prompt ──▶ Corbat MCP ──▶ AI + Standards
                    │
                    ├─ 1. Detect stack (pom.xml, package.json...)
                    ├─ 2. Classify task (feature, bugfix, refactor)
                    ├─ 3. Load profile with architecture rules
                    └─ 4. Inject guardrails before code generation

Documentation

ResourceDescription
Setup GuideInstallation for all 25+ tools
TemplatesReady-to-use .corbat.json configurations
CompatibilityFull list of supported tools
Benchmark Report20 real-world tests with code samples
API ReferenceTools, prompts, and configuration

Stop fixing AI code. Start shipping it.

Recommended by corbat-tech — We use Claude Code internally, but Corbat MCP works with any MCP-compatible tool.

Keywords

mcp

FAQs

Package last updated on 28 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts