MCP server for extracting .NET solution structure

MCP server for extracting .NET solution structure

rr.mcp•byrardq

A generic MCP server that exposes .NET interfaces, OpenAPI info, and data models/entities/enums from any .NET solution, giving AI agents project structure without exposing full contents.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides GetInterfaces and GetData tools that extract interfaces, models, entities, and enums from a .NET solution.
  • •Auto-registers all available tools and is designed for MCP stdio transport with any MCP-compatible client.
  • •Uses hash-based per-project caching for fast repeated runs, with logging written to files.
  • •Cross-platform, requiring PowerShell 7+ and the .NET 9.0 SDK.

BEST FOR

  • •AI agents working in large .NET codebases that need project structure and abstractions without full source contents.
  • •Developers using Cursor, Copilot, Claude, or other MCP-compatible tooling for .NET code analysis.
  • •Teams wanting to adapt or extend code analysis tools like interfaces and data extraction.

ABOUT RR.MCP

MCP server for extracting .NET solution structure is cataloged as an MCP server attributed to rardq. A generic MCP server that exposes .NET interfaces, OpenAPI info, and data models/entities/enums from any .NET solution, giving AI agents project structure without exposing full contents. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for extracting .NET solution structure are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What input does the server take for analysis?

Tools accept a path to a .sln file, absolute or relative to the server working directory.

Does the server output to stdout?

No; output is clean with no stdout noise, and all logging goes to files.

上游原版 README

在 GitHub 查看同一版本原文

README.md · dd75e2cce450 · 采集于 2026-11-13 10:59:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

RR MCP Server for .NET Analysis

A generic MCP server for extracting .NET interface, OpenAPI, and data (models/entities/enums) information from any .NET solution using PowerShell scripts. The goal is to provide AI with large project structure and abstraction w\o exposing the contents.

Will be updated with more tools for .Net solution AI management and automation.

Dependencies

Features

  • Extracts Models, Entities, Enums, and Interfaces from any .NET solution
  • Gives AI agents full project structure/context to avoid redundant generation
  • Ready-to-use with Cursor, Copilot, Claude, or any MCP-compatible tool
  • Fast with caching, clean output (no stdout noise), full logging to files
  • Auto-discovers scripts, supports relative/absolute .sln paths
  • Cross-platform (Windows, macOS, Linux), requires PowerShell 7+

Output Format Examples

Data Tool (GetData)

  • Model/Entity:
    {
      "n": "UserModel",
      "b": "BaseModel",
      "p": { "Id": "string", "Name": "string", "Age": "int" },
      "prj": "My.Project.Namespace"
    }
    
    • Any class with *Entity suffix is included as an entity (no base class requirement).
  • Enum:
    {
      "n": "StatusType",
      "m": { "Unknown": 0, "Active": 1, "Inactive": 2 },
      "prj": "My.Project.Namespace"
    }
    

Interfaces Tool (GetInterfaces)

  • Interface:
    {
      "n": "IMyService",
      "b": "IBaseService",
      "d": "Service for handling user operations.",
      "m": [
        "Task DoWork(string arg);",
        { "s": "Task<int> GetCount();", "d": "Gets the count." }
      ],
      "prj": "My.Project"
    }
    
    • n: interface name
    • b: base interface (optional)
    • d: interface documentation (optional)
    • m: methods (string for signature, or object with doc)
    • prj: project name

Naming Conventions

  • Models: *Model
  • Entities: *Entity
  • Enums: *Type
  • Interfaces: I*Service, I*Repository, etc.

Manual Script Run (for cache warmup or debugging)

You can run the PowerShell scripts directly to pre-warm the cache or debug output. Run from the repo root or RR.MCP directory:

For interfaces:

pwsh -File RR.MCP/GetInterfacesPwsh.ps1 -SolutionFile MySolution.sln

For data (models/entities/types):

pwsh -File RR.MCP/GetDataPwsh.ps1 -SolutionFile MySolution.sln
  • On Windows, macOS, or Linux, ensure pwsh (PowerShell 7+) is in your PATH.
  • You can specify a different solution file if needed.
  • Output will be written to .cache/ and logs to mcp_debug.log/mcp_data_debug.log.

Requirements

  • .NET 9.0 SDK or later
  • PowerShell 7.0+ (pwsh must be set in PATH system variable)

Setup

  1. Clone and build

    git clone
    cd RR.MCP
    dotnet build
    
  2. Configure your MCP client Add a stdio MCP server entry, e.g.:

    {
      "mcpServers": {
        "rr-mcp": {
          "command": "dotnet",
          "args": ["run", "--project", "<absolute-path-to>/RR.MCP/RR.MCP.csproj"]
        }
      }
    }
    
    • The server will auto-register all available tools (interfaces, data, etc).
  3. Usage Simply add these rules for your agents to call the tools:

    • Call the GetInterfaces tool to extract interfaces/OpenAPI info.
    • Call the GetData tool to extract all Models, Entities, and Types (enums) with structure.
    • Pass the path to your .sln file as the solutionFile parameter (absolute or relative to the server working directory).

Logging & Debugging

  • All C# errors are logged to mcp_errors.log (in the output directory).
  • All PowerShell script activity and errors are logged to mcp_debug.log (interfaces) and mcp_data_debug.log (data) next to the script.
  • The PowerShell scripts will log and return an error if run with PowerShell < 7.

PowerShell Scripts

  • Scripts are always copied to the output directory and invoked with pwsh -File ....
  • They log all key steps, parameters, and errors.
  • They will fail gracefully and log if the solution file is not found or if no data is detected.
  • Caching is per-project and hash-based for fast repeated runs. (first run will be slow on big projects, you should manually run the scripts)

Customization

  • To adapt for other code analysis, edit GetInterfacesPwsh.ps1 or GetDataPwsh.ps1.
  • To add more tools, add new [McpServerTool] methods in the C# tool files.

Integration with Any AI IDE

  • This MCP server is fully generic and can be integrated with any AI IDE or tool that supports MCP stdio transport.
  • Tools are auto-discovered and described via OpenAPI for easy consumption.
  • No IDE-specific logic is present; all output is protocol-compliant.

Cursor Integration Example

If using Cursor, add the following to your .cursor/mcp.json:

{
  "mcpServers": {
    "rr-mcp": {
      "command": "dotnet",
      "args": ["run", "--project", "<absolute-path-to>/RR.MCP/RR.MCP.csproj"]
    }
  }
}

Contributing

  • PRs and issues welcome!
  • Please ensure all output is protocol-compliant and all logs go to file only.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for extracting .NET solution structure from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/rr.mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools