Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. RoselineMCP
R
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/10/2026, 11:47:07 PM

RoselineMCP

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

MCP server for C# code analysis and automated fixing using Roslyn analyzers and code fix providers.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "roselinemcp": {
      "command": "npx",
      "args": [
        "-y",
        "roselinemcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

RoselineMCP

Expose Roslyn code analysis as an MCP server so AI assistants can analyze and fix C# quality issues directly.

Atypical-Consulting - RoselineMCP License: MIT .NET 10 stars - RoselineMCP forks - RoselineMCP

GitHub tag issues - RoselineMCP GitHub pull requests GitHub last commit

CI

NuGet Docker


Table of Contents

  • The Problem
  • The Solution
  • Features
  • Tech Stack
  • Getting Started
  • Available Tools
  • Architecture
  • Project Structure
  • Roadmap
  • Contributing
  • License
  • Acknowledgments

The Problem

C# codebases accumulate quality issues silently -- inconsistent naming, missing nullable annotations, unused usings, suboptimal patterns. Manual code reviews catch some, but Roslyn analyzers can catch them all automatically. The problem: setting up and running analyzers across large codebases is tedious, and the results are not easily actionable from an AI assistant workflow.

The Solution

RoselineMCP exposes Roslyn analysis as an MCP server so AI assistants can analyze and fix C# code quality issues directly. Connect it to Claude Desktop or any MCP-compatible client and get comprehensive diagnostics, automated fixes, and reviewable patches -- all without leaving your AI workflow.

csharp
// In your Claude Desktop config, just add:
{
  "mcpServers": {
    "roseline": {
      "command": "roseline-mcp"
    }
  }
}
// Then ask Claude: "Analyze my solution at /path/to/MySolution.sln"

Features

  • Comprehensive Code Analysis -- Analyze entire C# solutions for code quality issues, potential bugs, and style violations
  • Automated Code Fixes -- Apply automated fixes for hundreds of diagnostic rules from Roslyn and Roslynator
  • Unified Diff Generation -- Generate reviewable patches before applying changes
  • Flexible Filtering -- Filter diagnostics by severity, ID, file patterns, and project names
  • Safe Operations -- All operations use temporary workspaces to prevent accidental modifications
  • MCP Protocol Support -- Full integration with the Model Context Protocol for AI assistant usage
  • Docker Support -- Run without any SDK installation via Docker
  • NuGet Global Tool -- Install with a single dotnet tool install command

Tech Stack

LayerTechnology
Runtime.NET 10.0
Compiler PlatformRoslyn (Microsoft.CodeAnalysis) 5.3.0
AnalyzersRoslynator 4.15.0
MCP SDKModelContextProtocol 1.1.0
Diff EngineDiffPlex 1.9.0
Build SystemMSBuild 18.4.0
HostingMicrosoft.Extensions.Hosting 10.0.5

Getting Started

Prerequisites

  • NuGet global tool: .NET 10.0 SDK or later
  • Docker: Docker Desktop or Docker Engine
  • Build from source: .NET 10.0 SDK + MSBuild (included with Visual Studio or .NET SDK)
  • MCP client: Claude Desktop or any MCP-compatible client

Installation

Option 1 -- NuGet Global Tool (recommended)

Requires .NET 10.0 SDK or later.

bash
dotnet tool install -g RoselineMCP

After installation, the roseline-mcp command is available globally.

Claude Desktop configuration (NuGet global tool)

Add to your Claude Desktop configuration file (claude_desktop_config.json):

config.json
{
  "mcpServers": {
    "roseline": {
      "command": "roseline-mcp"
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Option 2 -- Docker

No SDK required. Works on any platform with Docker installed.

Terminal
docker run -i --rm phmatray/roseline-mcp:latest

Claude Desktop configuration (Docker)

config.json
{
  "mcpServers": {
    "roseline": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "phmatray/roseline-mcp:latest"
      ]
    }
  }
}

Note: The -i flag is required for stdio transport. The --rm flag removes the container after the session ends.


Option 3 -- Build from Source

bash
git clone https://github.com/Atypical-Consulting/RoselineMCP.git
cd RoselineMCP
dotnet build
dotnet test

Claude Desktop configuration (build from source)

config.json
{
  "mcpServers": {
    "roseline": {
      "command": "dotnet",
      "args": ["run", "--project", "/path/to/RoselineMCP/RoselineMCP.csproj"]
    }
  }
}

Available Tools

1. AnalyzeSolution

Analyzes an entire C# solution for diagnostics.

typescript
analyzeSolution({
  pathOrGit: "/path/to/solution.sln",
  includePattern: "*.Core",     // Optional: Include only matching projects
  excludePattern: "*.Tests",    // Optional: Exclude matching projects
  severity: "warning",           // Optional: Minimum severity (error|warning|info)
  maxDiagnostics: 100           // Optional: Maximum diagnostics to return
})

2. ListDiagnostics

Gets detailed diagnostics for a specific project.

typescript
listDiagnostics({
  project: "MyProject.csproj",
  ids: ["CS0168", "CS0219"],    // Optional: Filter by diagnostic IDs
  files: ["**/Controllers/*"],   // Optional: Filter by file patterns
  max: 50                        // Optional: Maximum results
})

3. ApplyFixes

Applies automated code fixes for specified diagnostics.

typescript
applyFixes({
  project: "MyProject.csproj",
  ids: ["CS0168", "RCS1001"],   // Diagnostic IDs to fix
  previewOnly: true              // Optional: Generate patch without applying
})

4. CreatePatch

Generates a unified diff between two text versions.

typescript
createPatch({
  before: "original code",
  after: "modified code",
  fileName: "Example.cs"         // Optional: For display in diff
})

Supported Analyzers

RoselineMCP includes support for:

  • Roslyn Analyzers -- Built-in C# compiler diagnostics
  • Roslynator -- 500+ analyzers, refactorings, and fixes for C#
  • StyleCop Analyzers -- Code style and consistency rules
  • Custom Analyzers -- Any Roslyn-based analyzer in your solution

Examples

Analyzing a Solution

bash
# Using with an MCP client
mcp call analyzeSolution '{
  "pathOrGit": "/Users/dev/MyProject/MyProject.sln",
  "severity": "warning",
  "maxDiagnostics": 50
}'

Response:

config.json
{
  "solution": "MyProject.sln",
  "projects": 5,
  "diagnosticSummary": {
    "error": 2,
    "warning": 15,
    "info": 28
  },
  "topDiagnostics": [
    {
      "id": "CS0168",
      "severity": "warning",
      "message": "The variable 'ex' is declared but never used",
      "file": "Program.cs",
      "line": 42
    }
  ]
}

Applying Fixes

bash
mcp call applyFixes '{
  "project": "MyProject.Core.csproj",
  "ids": ["CS0168", "RCS1001"],
  "previewOnly": true
}'

Response includes a unified diff patch showing all changes that would be applied.

Configuration

Environment Variables

  • ROSELINE_LOG_LEVEL: Set logging level (Debug, Information, Warning, Error)
  • ASPNETCORE_ENVIRONMENT: Set environment (Development, Production)

appsettings.json

Configure logging and other settings:

config.json
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "RoselineMCP": "Debug"
    }
  }
}

Architecture

RoselineMCP uses stdio transport β€” this is an intentional design decision. The server runs as a local process launched by the MCP client (Claude Desktop, AI agents), communicates over stdin/stdout, and exits when the client disconnects. This makes it perfectly suited for distribution as a NuGet global tool (dotnet tool install -g RoselineMCP) or Docker image β€” no port binding, no HTTP server, no infrastructure to manage.

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   MCP Client        β”‚
β”‚  (Claude Desktop,   β”‚
β”‚   AI Assistants)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚ MCP Protocol (stdio)
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   RoselineMCP       β”‚
β”‚   MCP Server        β”‚
β”‚                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Tool Layer   β”‚  β”‚
β”‚  β”‚  (Analyze,    β”‚  β”‚
β”‚  β”‚   Fix, Patch) β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚          β–Ό          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Service Layer β”‚  β”‚
β”‚  β”‚ (Workspace,   β”‚  β”‚
β”‚  β”‚  Diagnostics) β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚          β–Ό          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Roslyn +      β”‚  β”‚
β”‚  β”‚ Roslynator    β”‚  β”‚
β”‚  β”‚ Analyzers     β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  C# Source Code     β”‚
β”‚  (.sln / .csproj)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Project Structure

Code
RoselineMCP/
β”œβ”€β”€ RoselineMCP/
β”‚   β”œβ”€β”€ Interfaces/       # Service interfaces
β”‚   β”œβ”€β”€ Services/         # Core business logic
β”‚   β”œβ”€β”€ Tools/            # MCP tool implementations
β”‚   β”œβ”€β”€ Models/           # Data transfer objects
β”‚   └── Program.cs        # Application entry point
β”œβ”€β”€ RoselineMCP.Tests/    # Unit tests
β”œβ”€β”€ .github/workflows/    # CI/CD pipelines
β”œβ”€β”€ Dockerfile            # Container build
└── RoselineMCP.sln       # Solution file

Performance

  • Workspace Caching -- MSBuild workspaces are reused when possible
  • Parallel Analysis -- Projects analyzed concurrently
  • Streaming Results -- Large result sets streamed to prevent memory issues
  • Lazy Loading -- Diagnostics computed on-demand

Security

  • No Code Execution -- Never executes code from analyzed projects
  • Sandboxed Operations -- All changes made in temporary workspaces
  • Path Validation -- Protection against path traversal attacks
  • Read-Only by Default -- Explicit confirmation required for modifications

Troubleshooting

Common Issues

  1. MSBuild not found: Ensure .NET SDK is installed and in PATH
  2. Solution won't load: Check for missing NuGet packages, run dotnet restore
  3. No diagnostics found: Verify analyzers are installed in the target project
  4. Permission denied: Ensure read access to solution files

Debug Logging

Enable detailed logging:

bash
ROSELINE_LOG_LEVEL=Debug dotnet run --project RoselineMCP/RoselineMCP.csproj

Roadmap

  • Additional analyzer rule sets (SonarAnalyzer, FxCop)
  • Auto-fix suggestions with confidence scoring
  • CI/CD integration for automated analysis pipelines
  • Multi-solution support in a single session
  • Incremental analysis (only changed files)
  • Custom analyzer rule configuration via MCP

Want to contribute? Pick any roadmap item and open a PR!

Stats

Contributing

Contributions are welcome! Please read CONTRIBUTING.md first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit using conventional commits (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT Β© 2025 Atypical Consulting

Acknowledgments

  • Built on Roslyn -- The .NET Compiler Platform
  • Powered by Roslynator -- C# analyzers and refactorings
  • Uses DiffPlex -- Diff generation library
  • Implements Model Context Protocol -- AI assistant integration protocol

Built with care by Atypical Consulting -- opinionated, production-grade open source.

Contributors

Related MCP Servers

View all in Developer Tools View all alternatives
  • C
    Codescene Mcp Server

    An MCP server that provides CodeScene Code Health analysis tools.

    πŸ’» Developer Tools1 views
    Compare vs Codescene Mcp Server β†’
  • C
    Codealive Mcp

    Semantic code search and analysis from CodeAlive for AI assistants and agents.

    πŸ’» Developer Tools0 views
    Compare vs Codealive Mcp β†’
  • A
    Adeu

    Automated DOCX Redlining Engine

    πŸ’» Developer Tools0 views
    Compare vs Adeu β†’
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    πŸ’» Developer Tools0 views
    Compare vs Ai Netcafe β†’

Frequently Asked Questions about RoselineMCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "roselinemcp": { "command": "npx", "args": ["-y", "RoselineMCP"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRoselineMCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/roselinemcp?style=directory)](https://allmcps.com/mcp/roselinemcp)
HTML Embed
<a href="https://allmcps.com/mcp/roselinemcp"><img src="https://allmcps.com/api/badge/roselinemcp?style=directory" alt="RoselineMCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
28Quality signal: Emerging Β· 28/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools12/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to RoselineMCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code