# XAF Logic Explainer

Extracts DevExpress XAF project structure for your coding agent from source code. It reads entities, controllers, business rules, and Model Editor XML without compiling.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 9
- Author: peopleworks
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/peopleworks/XAFLogicExplainer
- Updated: 2026-10-08
- HTML: https://affpapa.org/en/nevibecode/mcp/xaf-logic-explainer

## What it does

The server parses DevExpress XAF modules to provide coding agents with the exact structure of your codebase. It inspects business objects alongside mapping attributes like `[Association]` and `[Aggregated]`. It determines whether the application relies on XPO or EF Core directly from project files. Target frameworks are detected properly, down to legacy .NET Framework 4.8 setups.

Everything is read at the syntax level using Roslyn. Your solution never has to compile. The tool avoids linking against DevExpress runtime assemblies, preventing environment setup headaches.

It also reads Model Editor files (`.xafml`) where crucial layout and column rules live outside C#. The server extracts controller actions, validation rules, initial seed routines in `ModuleUpdater`, and report configurations.

## Requirements
- Environment variables: `XAFLOGIC_PROJECT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- extract entity relationships and XAF attributes without building the solution
- feed hidden view settings from `.xafml` files to the assistant
- inspect controller action triggers and execution criteria
- supply validation rules and database migration logic to the agent

## Example prompts
- Explain which validation rules apply to the Invoice entity
- Inspect `.xafml` files and locate hidden columns in the order view
- Check the execution criteria for actions inside ApproveController

## Similar
- [code-review](https://affpapa.org/en/nevibecode/skills/codewithmukesh-code-review.md) — skill · 2800 installs
- [health-check](https://affpapa.org/en/nevibecode/skills/health-check.md) — skill · 2800 installs
- [find-untested-sources](https://affpapa.org/en/nevibecode/skills/find-untested-sources.md) — skill · 3100 installs
- [csharp-refactoring](https://affpapa.org/en/nevibecode/skills/csharp-refactoring.md) — skill · 1800 installs
- [CodeMap](https://affpapa.org/en/nevibecode/mcp/codemap.md) — MCP server · ★ 22
- [AIContextBuilder](https://affpapa.org/en/nevibecode/mcp/aicontextbuilder.md) — MCP server · ★ 11

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
