# CodeMap

Answers an agent's questions about symbols and calls in C# or VB.NET code, returning facts instead of whole files.

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

## What it does

CodeMap runs on Roslyn and parses your C# or VB.NET project. The agent asks it about a symbol, a call chain or a single fact, and gets that back rather than a full file read. That is where the claimed 90%+ token savings come from — listings stay out of the context.

It helps most on a large .NET solution where an agent otherwise drowns. A call graph shows who invokes a method and where the chain leads, so nobody greps the solution by hand. Any editor or CLI that can attach MCP servers will work with it.

On a project in another language the server has nothing to parse: it depends on Roslyn and C#/VB.NET syntax. Point it at one solution first and watch how the agent phrases its queries.

## Requirements
- Environment variables: `CODEMAP_CACHE_DIR` — 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
- trace every call site of a method across a solution
- follow a call chain back to its entry point
- describe a symbol without opening the whole file
- keep token use down when an agent works a large .NET repo
- get oriented in an unfamiliar C# codebase

## Example prompts
- Show where `SaveOrder` is called from and what it calls next.
- List every symbol named `PaymentService` in the solution and describe each one.
- Build the call graph for `ProcessRequest` in the VB.NET project.

## Similar
- [Serena MCP: the IDE for your agent](https://affpapa.org/en/nevibecode/mcp/serena-mcp-the-ide-for-your-agent.md) — MCP server · ★ 30677
- [Compiler Explorer](https://affpapa.org/en/nevibecode/mcp/compiler-explorer.md) — MCP server · ★ 19148
- [Claude Code Explorer MCP](https://affpapa.org/en/nevibecode/mcp/claude-code-explorer-mcp.md) — MCP server · ★ 6235
- [Tolgee](https://affpapa.org/en/nevibecode/mcp/tolgee.md) — MCP server · ★ 4139
- [jshookmcp](https://affpapa.org/en/nevibecode/mcp/jshookmcp.md) — MCP server · ★ 2061
- [pyscn](https://affpapa.org/en/nevibecode/mcp/pyscn.md) — MCP server · ★ 1096

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