agentic-dotnet
Roslyn-powered MCP server that exposes diagnostics, navigation, and refactoring tools for a .NET solution.
Install / Use
claude mcp add Hookyns -- npx -y github:Hookyns/agentic-dotnetIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubAgentic .NET MCP (AgenticDotNet)
<a href="https://www.nuget.org/packages/AgenticDotNet"><img src="https://img.shields.io/nuget/v/AgenticDotNet?color=%230063B0" alt="NuGet Version" /></a>
A Roslyn-powered MCP server that gives AI agents semantic understanding of a .NET solution — diagnostics, navigation, symbol search, and automated code fixes — backed by the same compiler pipeline used by Visual Studio and Rider.
Installation
Global
dotnet tool install -g AgenticDotNet
Per-project (tool manifest)
This is the recommended approach for team projects — the tool version is pinned in source control and anyone can restore it with a single command.
# Create the manifest if one doesn't exist yet
dotnet new tool-manifest
# Install into the manifest (.config/dotnet-tools.json)
dotnet tool install AgenticDotNet
Commit .config/dotnet-tools.json. Anyone who clones the repo can then run:
dotnet tool restore
When using a local install, invoke the tool with dotnet prefix:
dotnet agentic <path-to-solution.sln|.slnx>
And use dotnet agentic as the command in your MCP config (see below).
Usage
agentic <path-to-solution.sln|.slnx>
The path can be absolute or relative to the current working directory. The server communicates over stdio (MCP standard transport), so it is meant to be launched by an MCP client, not used interactively.
Example MCP client config (Claude Desktop / Claude Code)
Global install:
{
"mcpServers": {
"agentic-dotnet": {
"command": "agentic",
"args": ["C:/Work/MyProject/MyProject.sln"]
}
}
}
Local (per-project) install — run dotnet tool restore first:
{
"mcpServers": {
"agentic-dotnet": {
"command": "dotnet",
"args": ["agentic", "C:/Work/MyProject/MyProject.sln"]
}
}
}
Tools
Diagnostics
| Tool | Description |
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| get_diagnostics | Compiler errors/warnings and analyzer diagnostics (CA*, IDE*) for the whole solution or a specific file. Respects AnalysisMode, AnalysisLevel, and .editorconfig severity overrides. |
| get_code_fixes | Lists available automated code fixes for diagnostics in a file. |
| apply_code_fix | Applies a specific code fix and writes changes to disk. |
Navigation
| Tool | Description |
|--------------------------|---------------------------------------------------------------------------------------------|
| get_solution_projects | Lists all projects with paths, assembly names, and output kind. |
| get_project_namespaces | All namespaces declared in a project, sorted alphabetically. |
| get_types_in_namespace | All types (classes, interfaces, enums, structs, delegates) in a namespace. |
| get_type_info | Full type detail: base type, interfaces, constructors, methods, properties, fields, events. |
Symbols
| Tool | Description |
|------------------------|---------------------------------------------------------------------------------------------------------------------|
| find_symbol | Case-insensitive partial-name search across the solution. Supports kind filters (class, method, property, …). |
| find_implementations | All types that implement an interface or derive from a class (transitive). |
| find_overrides | All overrides of a virtual or abstract method. |
| rename_symbol | Renames a symbol across the entire solution and writes all changed files to disk. |
How it works
On the first tool call the server opens the solution via MSBuildWorkspace, which uses the installed .NET SDK to evaluate all project files. Subsequent calls do an incremental refresh: only files whose LastWriteTimeUtc changed since the last call are re-parsed. Roslyn reuses all unchanged compilation state, so repeated calls are fast — the same incremental pipeline that powers IDE analyzers.
Analyzer diagnostics are produced by running project.AnalyzerReferences through CompilationWithAnalyzers with project.AnalyzerOptions, which includes the .editorconfig provider. This means severity overrides, code-style rules, and custom analyzers all behave exactly as they do during dotnet build.
Source-generated files are included: get_diagnostics covers generated syntax trees, and file-specific queries fall back through GetSourceGeneratedDocumentsAsync and the raw compilation tree list.
Development
Build
dotnet build
Debug with MCP Inspector
MCP Inspector lets you call tools interactively against a running server:
npx @modelcontextprotocol/inspector .\AgenticDotNet\bin\Debug\net10.0\agentic.exe .\AgenticDotNet.slnx
Or after dotnet pack + local tool install:
dotnet tool install -g AgenticDotNet --add-source ./AgenticDotNet/nupkg
npx @modelcontextprotocol/inspector agentic .\AgenticDotNet.slnx
The Inspector opens a browser UI where you can invoke each tool and inspect the JSON request/response.
Related Skills
momen-cursurrules-prompt-file
40.6kCursor rules for building custom frontends with Momen.app as headless BaaS with GraphQL API, actionflows, AI agents, and Stripe integration.
semiotic-react-dataviz-cursorrules-prompt-file
40.6kCursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.
Agent-Reach
71.9kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
67.9k🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
