Mcp

•

Provides a Model Context Protocol server for C# code, offering semantic search and other analysis tools.

MCPServer is an ASP.NET Core implementation of a Model Context Protocol (MCP) server, designed to expose powerful tools for interacting with C# codebases. Its flagship feature is the `search_local_repo` tool, which enables semantic search over C# repositories, intelligently leveraging a configurable remote search endpoint with a robust local fallback for resilience. The server is built with modern ASP.NET Core practices, featuring strongly typed models, efficient source-generated JSON serialization, a resilient HTTP client, and centralized error handling, making it a reliable and extensible platform for C# code analysis within an MCP ecosystem.

Key Features

01HTTP-based MCP server suitable for MCP-enabled clients
02Resilient HTTP client with retry and timeout policies
03Semantic `search_local_repo` tool for C# repositories with remote/local fallback
04Centralized error handling via GlobalExceptionHandler and ProblemDetails
050 GitHub stars
06Strongly typed request/response models with source-generated JSON serialization

Use Cases

01Building custom C# code analysis tools accessible via the Model Context Protocol
02Providing a robust backend for MCP-enabled clients needing C# repository insights
03Integrating semantic search capabilities into C# development workflows