# AIContextBuilder [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/gregordadera/aicb-roslyn-mcp  
**GitHub Stars:** 11  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/aicontextbuilder

## Description
Symbol-aware C# and .NET code context for AI coding assistants.

## Tools
Capabilities this server exposes over MCP:

- **find_usages** — Who uses this type, method or property?
- **impact_of_change** — What else is affected if I change this symbol, and how risky is it?
- **find_implementations** — Which types implement this interface?
- **find_tests_for** — Which tests cover this symbol?
- **resolve_injection** — What is registered for this service, with which lifetime, and where?
- **find_by_side_effects** — Which code touches files, the network or a database, and which code is pure?
- **find_dead_code** — Which code does nothing reach?
- **get_diagnostics** — Which compiler errors and warnings are there, without a build?
- **find_symbol** — Where is the type or member with this name?
- **explain_symbol** — What does this symbol do, with its source and its surroundings in one answer?
- **architecture_overview** — How is the solution structured, without reading all of its source?
- **find_binding_usages** — Which XAML bindings name this view-model member?
- **prepare_task** — What do I need to read before I edit code for this task?
- **server_info** — Is the server running, and which version is it?

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/gregordadera/aicb-roslyn-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
dotnet tool install -g aicb-roslyn-mcp
```

2. Configure:

```sh
aicb init
```

3. Configure:

```sh
aicb init --hooks none
```

## Documentation

## What AIContextBuilder MCP server does

AIContextBuilder MCP server gives coding agents structured information about C# and .NET codebases. It analyzes solution files and builds a semantic model that can distinguish symbols such as overloads, interfaces, overrides, partial types, and records. The resulting information can answer questions about callers, implementations, dependency-injection construction paths, tests, side effects, and the likely impact of changing a symbol.

The server can also assemble focused context for an LLM instead of returning an unfiltered source tree. Generated AI-Builder-MD includes selected code, symbol relationships, architecture information, semantic metadata, and provenance. Optional AI annotations in XML documentation can add author-defined details such as a type’s role, layer, responsibility, stability, or side effects.

## How it works

AIContextBuilder MCP server loads a `.sln`, `.slnx`, or `.slnf` solution and uses MSBuild with Roslyn semantic models. It analyzes the solution once for a live server session, then answers later questions from its indexes. Saved source changes can usually be incorporated through an incremental refresh; a forced refresh reloads the full solution.

Context selection can use a token budget. Named symbols remain included while surrounding detail is reduced when the budget is tight, and the result identifies omitted types, tests, or related symbols. A measurement operation can report the token count of planned answers without returning their full payloads.

Each MCP process maintains its own live session. The server sees saved files, not unsaved editor buffers. Persisted remembered codebases can be recalled by another process, but recalled models have no live workspace, may lack reliable line numbers, and provide fewer insights until refreshed.

## Setup and configuration

Run the local MCP server against a C# or .NET solution. The same analysis engine is available through the CLI and a Windows desktop application, although each process maintains its own live analysis. A `<Solution>.aicb.json` file can store solution configuration, rules, and choices; it does not contain analysis results, sessions, or credentials.

Optional persistence tools such as `remember_codebase`, `recall_codebase`, and `refresh_remembered` are not enabled by a default MCP profile. Enable them by setting `AICB_MCP_TOOLS` to the required tool names or to `all`.

## Tools and capabilities

The listed MCP tools are:

- `aicb-csharp-context` for symbol-aware C# and .NET context.
- `aicb-code-review` for code review workflows.
- `aicb-code-simplifier` for code-simplification workflows.
- `aicb-usage-check` for checking symbol usage.

The broader documented engine also supports operations for reading a symbol with dependencies and callees, exploring callers and implementations, packing context for a natural-language task, preparing edit-oriented context with tests and related siblings, and measuring response size. Change-impact analysis can report direct and transitive effects, including production impact counts.

## Limitations and notes

Static analysis does not establish every runtime relationship or guarantee that a reduced context is sufficient for a task. The server analyzes saved source only, and a second server process does not share the first process’s live graph. Remembered models can be stale; recall reports staleness information but deliberately returns the model, so live re-analysis may still be necessary.

The software is closed source and is distributed under a custom EULA. The public repository contains documentation, releases, and licensing information.

_Full upstream README: https://allmcps.com/mcp/aicontextbuilder/readme_

