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 for Claude

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

CORBAT - Coding Standards MCP

Stop repeating yourself. Start coding.

Your architecture rules, TDD workflow, and SOLID principles — injected automatically into every AI response.

npm version CI License: MIT MCP

CORBAT Demo

The Problem

Every time you ask AI to write code, you repeat the same instructions:

"Create a payment service. Use hexagonal architecture. Follow TDD.
 Apply SOLID. Use our naming conventions. Ensure 80% coverage..."

This is tedious, error-prone, and inconsistent.

The Solution

Define your standards once. Corbat MCP injects them automatically.

You: "Create a payment service"

Corbat: ✓ Detected Java/Spring project
        ✓ Applied hexagonal architecture
        ✓ Enforced TDD workflow
        ✓ Injected SOLID principles
        ✓ Set 80%+ coverage requirement

One prompt. Full compliance.

Why Corbat MCP vs Alternatives?

FeatureCorbat MCPLinters (ESLint, etc.)Manual prompts
Enforces before code is written
Architecture patterns (hexagonal, DDD)⚠️
TDD workflow enforcement⚠️
Task-specific guardrails
Auto-detects your stack
Zero repetition

Linters catch errors after the fact. Corbat MCP prevents them.

Quick Start

Step 1 — Connect 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 — Use it:

"Create a user service"

Corbat MCP auto-detects your stack and applies all standards. That's it.

What You Get

When you ask Claude to create code, Corbat MCP injects this context automatically:

# Task: Create payment service

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

## Guardrails

### MUST
✓ Write tests BEFORE implementation (TDD)
✓ Use hexagonal architecture (domain/application/infrastructure)
✓ Apply SOLID principles
✓ Ensure 80%+ test coverage
✓ Validate all inputs
✓ Document public APIs

### AVOID
✗ God classes (>200 lines) or god methods (>20 lines)
✗ Hard-coded configuration values
✗ Mixing business logic with infrastructure
✗ Circular dependencies between layers

## Workflow
1. CLARIFY  → Confirm requirements
2. PLAN     → Create task checklist
3. BUILD    → TDD cycle: Red → Green → Refactor
4. VERIFY   → Tests pass, linter clean
5. REVIEW   → Self-check against standards

## Naming Conventions
- Classes: PascalCase (PaymentService)
- Methods: camelCase (processPayment)
- Constants: SCREAMING_SNAKE_CASE
- Packages: lowercase (com.example.payment)

Claude now generates code that follows ALL your standards.

Task-Specific Guardrails

Corbat MCP adapts its rules based on what you're doing:

TaskMUSTAVOID
FeatureTDD, 80%+ coverage, SOLID, hexagonalGod classes, coupled layers
BugfixFailing test first, minimal changesRefactoring, adding features
RefactorTests pass before AND after, incrementalBehavior changes, big bang
TestAAA pattern, one assertion, descriptive namesImplementation details, flaky tests

Compatibility

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

Built-in Profiles

ProfileBest forArchitecture
java-spring-backendEnterprise JavaHexagonal + DDD
nodejsNode.js/TypeScript APIsClean Architecture
pythonPython/FastAPIClean Architecture
reactReact applicationsFeature-based
angularAngular 19+ applicationsFeature-based + Signals
vueVue 3.5+ applicationsFeature-based + Composition
minimalMVPs, prototypesBasic standards

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

Customize (Optional)

Option A: Interactive generator

npx corbat-init

Option B: 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
searchSearch standards documentation
profilesList available profiles
healthServer status check

Available Prompts

PromptPurpose
implementGuided implementation with TDD workflow
reviewExpert code review (architecture, SOLID, security)

How It Works

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

Included Documentation

Corbat MCP comes with 15 standards documents you can search:

  • Architecture: Hexagonal, DDD, Clean Architecture
  • Code Quality: SOLID, Clean Code, Naming Conventions
  • Testing: TDD, Unit/Integration/E2E guidelines
  • DevOps: Docker, Kubernetes, CI/CD
  • Observability: Logging, Metrics, Tracing

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

Troubleshooting

Claude can't find corbat
  • Verify npm/npx is in PATH: which npx
  • Test manually: npx @corbat-tech/coding-standards-mcp
  • Restart Claude completely
  • 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
  • Check if .corbat.json exists in project root
  • Verify profile exists in profiles/templates/
  • Try explicit: "Use corbat get_context for: your task"
Permission errors (macOS/Linux)
# Clear npx cache and retry
npx clear-npx-cache
npx @corbat-tech/coding-standards-mcp

Project Quality

MetricValue
Test coverage80%+
Tests passing78
TypeScriptStrict mode
LintingBiome
Architecture validationdependency-cruiser

Define once. Apply everywhere. Ship faster.

Get Started · Documentation · Report Bug

Keywords

mcp

FAQs

Package last updated on 13 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