# AIContextBuilder

A local MCP server maps C#/.NET code for AI agents. Use it to trace symbols, tests, dependency injection paths, and change impact.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 11
- Author: gregordadera
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gregordadera/aicb-roslyn-mcp
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/aicontextbuilder

## What it does

AIContextBuilder reads C#/.NET solutions with Roslyn and builds a semantic symbol map. It can trace callers, interface implementations, overrides, dependency-injection construction paths, tests, and code reached by a change. The selected material can be exported as structured Markdown for an AI agent.

The server also assembles task-specific context under a token budget. Named symbols remain central while surrounding detail is reduced when space is tight. The package includes the MCP server, the `aicb` CLI, and a Windows desktop app for selecting and examining context. It accepts `.sln`, `.slnx`, `.slnf`, C#, and XAML/AXAML.

Optional AI tags in XML documentation add declared meaning such as role, layer, responsibility, stability, and side effects. A reduced package lists what was left out, but it cannot establish that the remaining context is sufficient for a correct solution.

## Install

### Claude Code (native platform)

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

## When to use it
- trace callers of a C# symbol
- locate interface implementations and overrides
- inspect the impact of a code change
- pack task context within a token budget
- connect implementation code with tests and DI paths

## Example prompts
- Use `AIContextBuilder` to map the code affected by changing `ColorMixerService`.
- Prepare an edit context for this class and include its covering tests and related implementations.
- Trace the selected symbol’s callers and dependencies, then keep the result within a token budget.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

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