mcp-server-net

Petr-Kovalev/mcp-server-net Checked 13 hours ago

Plugin-based Model Context Protocol (MCP) server for .NET 10

MCP Server .NET A .NET 10 plugin-based Model Context Protocol (MCP) server over HTTP. Designed to run as a Windows Service. Ships with an Azure DevOps plugin that serves as a bridge between AI agents/clients and Azure DevOps Server or Azure DevOps Services. Features - Plugin architecture — extend with drop-in DLLs; each plugin gets its own AssemblyDependencyResolver for dependency resolution - Windows Service support via sc.exe - Built-in Azure DevOps plugin with 88 MCP tools across 8 domains Projects | Project | Purpose | |---------|---------| | Mcp.Server | MCP server host, plugin loader…

Summary extracted from the README.

MCP Server .NET

A .NET 10 plugin-based Model Context Protocol (MCP) server over HTTP.

Designed to run as a Windows Service.

Ships with an Azure DevOps plugin that serves as a bridge between AI agents/clients and Azure DevOps Server or Azure DevOps Services.

Features

  • Plugin architecture — extend with drop-in DLLs; each plugin gets its own AssemblyDependencyResolver for dependency resolution
  • Windows Service support via sc.exe
  • Built-in Azure DevOps plugin with 88 MCP tools across 8 domains

Projects

Project Purpose
Mcp.Server MCP server host, plugin loader, HTTP transport
Mcp.Server.Abstractions IMcpServerPlugin interface for plugin authors
Mcp.Server.Plugin.AzureDevOps Azure DevOps plugin with 88 tools

Plugin System

Plugins are class libraries that implement IMcpServerPlugin. Drop the output into a subfolder under Plugins/ next to the server executable — the server discovers and loads them automatically at startup.

public sealed class MyPlugin : IMcpServerPlugin
{
    public string Name => "My Plugin";

    public void ConfigureServices(IServiceCollection services)
    {
        services.AddSingleton<MyService>();
    }
}

[McpServerToolType]
public sealed class MyTools
{
    [McpServerTool(Name = "mcp_my_tool"), Description("Does something.")]
    public static async Task<string> DoSomething(
        MyService service,
        CancellationToken cancellationToken = default)
    {
        return "done";
    }
}

Each plugin gets:

  • Its own AssemblyDependencyResolver — plugin dependencies are resolved from the plugin directory
  • Configuration — add JSON files or other sources via Configure(IConfigurationBuilder)
  • Dependency injection — register services via ConfigureServices(IServiceCollection)
  • Automatic tool discovery — any [McpServerToolType] class in the plugin assembly is registered

See Plugin Documentation for the full guide.

Azure DevOps Plugin

The bundled Azure DevOps plugin is based on the official microsoft/azure-devops-mcp implementation and provides 88 tools

Domain Tools Description
Core 3 Organizations, projects, teams, identities
Pipelines 12 Build definitions, runs, logs, artifacts
Repositories 22 Git repos, branches, commits, PRs, threads, files
Search 3 Code, work item, wiki search
Test Plans 11 Test plans, suites, cases, runs, results
Wiki 6 Wiki CRUD, page listing and content
Work Items 23 Work item CRUD, queries, comments, links, backlogs
Work 8 Iterations, team capacity, team settings

Configuration

Edit appsettings.azuredevops.json:

{
  "AzureDevOps": {
    "OrgUrl": "https://dev.azure.com/myorg",
    "AuthType": "pat",
    "PAT": "<your-token>"
  }
}

For on-premises with Windows auth, set "AuthType": "windows" and remove PAT.

Quick Start

dotnet build
dotnet run --project Mcp.Server

Connect your MCP client to http://localhost:5000/mcp.

Deployment

dotnet publish Mcp.Server -c Release -o C:\Services\Mcp.Server
sc.exe create McpServer binPath="C:\Services\Mcp.Server\Mcp.Server.exe"
sc.exe start McpServer

See Deployment for details.

Documentation