This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Codingbuddy - Multi-AI Rules MCP Server for consistent coding practices across AI assistants (Cursor, Claude Code, Codex, Antigravity, Q, Kiro).
codingbuddy/
├── apps/
│ └── mcp-server/ # NestJS-based MCP server
│ └── src/
│ ├── main.ts # Entry point (stdio/SSE transport)
│ ├── mcp/ # MCP protocol handlers
│ └── rules/ # Rules service (file reading, search)
├── packages/
│ └── rules/ # AI coding rules package (codingbuddy-rules)
│ └── .ai-rules/ # Shared AI coding rules (single source of truth)
│ ├── rules/ # Core rules (workflow, project, augmented-coding)
│ ├── agents/ # 35 agent definitions (JSON)
│ └── adapters/# Tool-specific integration guides
├── .cursor/ # Cursor AI config
├── .claude/ # Claude Code config
├── .antigravity/ # Antigravity (Gemini) config
├── .codex/ # GitHub Copilot config
├── .q/ # Amazon Q config
└── .kiro/ # Kiro config
Layered priority: Claude Code native → codingbuddy → OMC.
See .claude/rules/tool-priority.md for the full decision matrix.
See docs/claude-code/permission-presets.md for parallel-execution and development preset definitions.
# From root directory
yarn workspace codingbuddy start:dev # Run with ts-node
yarn workspace codingbuddy build # Compile TypeScript
yarn workspace codingbuddy test # Run tests
# Or from apps/mcp-server/
cd apps/mcp-server
yarn start:dev # Run with ts-node
yarn build # Compile TypeScript
yarn start # Run compiled versionMCP_TRANSPORT:stdio(default) orssePORT: HTTP port when using SSE mode (default: 3000)MCP_SSE_TOKEN: Bearer token for SSE endpoint authentication (optional, auth disabled if unset)
The server implements the Model Context Protocol with three capabilities:
- Resources: Exposes rule files and agent definitions via
rules://URI scheme - Tools:
search_rules(query rules) andget_agent_details(agent info) - Prompts:
activate_agent(generate activation prompt for specialist)
- Stdio Mode: Runs as standalone CLI app, communicates via stdin/stdout
- SSE Mode: Runs as HTTP server with Server-Sent Events
AppModule: Root module with configMcpModule: MCP server and handlersRulesModule: File system operations for .ai-rules
When working in this codebase, use these modes:
- PLAN: Design implementation approach (default start mode)
- ACT: Execute changes following TDD
- EVAL: Review and improve (when explicitly requested)
- TypeScript strict mode (no
any) - TDD cycle: Red -> Green -> Refactor
- Pure/impure function separation (different files)
- 90%+ test coverage goal
See shared rules: packages/rules/.ai-rules/rules/core.md (Error Recovery section)
Follow the language setting in codingbuddy.config.json - use get_project_config MCP tool to retrieve current language setting.