By nick-boey
Sharpitect MCP server with skills for intelligent C# codebase navigation. Automatically prefers semantic analysis over text-based searching.
Sharpitect generates C4 architecture diagrams from annotated C# codebases. It analyzes your code using Roslyn and builds a declaration graph that can be queried and visualized.
Sharpitect maps C# constructs to C4 model elements following these conventions:
[Component] attribute to mark types as C4 componentsusing Sharpitect.Analysis.Analyzers;
using Sharpitect.Analysis.Persistence;
// Create repository
var repository = new SqliteGraphRepository("architecture.db");
await repository.InitializeAsync();
// Analyze solution
var analyzer = new GraphSolutionAnalyzer(repository);
await analyzer.AnalyzeAsync("path/to/solution.sln");
using Sharpitect.Analysis.Graph;
using Sharpitect.Analysis.Search;
// Create search service with in-memory source
var graph = new DeclarationGraph();
var source = new InMemoryGraphSource(graph);
var searchService = new GraphSearchService(source);
// Search for classes containing "Service"
var query = new SearchQuery
{
SearchText = "Service",
MatchMode = SearchMatchMode.Contains,
KindFilter = [DeclarationKind.Class]
};
var results = await searchService.SearchAsync(query);
Contains, StartsWith, EndsWith, or Exactdotnet tool install -g Sharpitect.Tool
If the sharpitect command is not found after installation, you need to add the .NET tools directory to your PATH. Add the following line to your shell configuration file (~/.bashrc, ~/.bash_profile, or ~/.zshrc):
export PATH="$PATH:$HOME/.dotnet/tools"
Then reload your shell configuration:
source ~/.bashrc # or ~/.bash_profile or ~/.zshrc
Alternatively, you can run this one-liner to add it permanently:
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' >> ~/.bashrc && source ~/.bashrc
dotnet build Sharpitect.sln
dotnet test Sharpitect.sln
See LICENSE file for details.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub nick-boey/sharpitect --plugin sharpitectRoslyn-powered C# refactoring MCP server — 41 tools for code navigation, analysis, generation, and refactoring across entire .NET solutions
The definitive Claude Code companion for .NET developers. 45 skills (including 14 slash-command workflows), 10 agents, 10 rules, 5 templates, 15 MCP tools, and automation hooks for modern .NET 10 / C# 14.
Analyse software architecture and generate C4 models using Structurizr DSL, with diagram export support.
Connect coding agents to the local GliderMCP C# semantic analysis server.
Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode
C# language server