Skip to content

A .NET MCP server implementing the Model Context Protocol (MCP) for NuGet package management πŸ“¦. Built with Clean Architecture and Domain-Driven Design (DDD) πŸ—οΈ, this project supports Ahead-Of-Time (AOT) compilation for fast startup and low memory usage ⚑.

Notifications You must be signed in to change notification settings

SebastienDegodez/MCP.Pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MCP.Pack πŸš€

A modern .NET server for Model Context Protocol (MCP) and NuGet package management πŸ“¦. Built with Clean Architecture πŸ—οΈ and Domain-Driven Design (DDD) 🧠, supporting AOT compilation ⚑ and comprehensive automated testing πŸ§ͺ.


✨ Features

  • πŸ” Discover and search NuGet packages via the Model Context Protocol (MCP)
  • πŸ“‘ Retrieve rich package metadata for any NuGet feed
  • 🧩 Designed for extensibility and integration in modern .NET ecosystems

πŸ› οΈ Technical Highlights

  • πŸ—οΈ Clean Architecture: strict separation of Domain, Application, Infrastructure, and API layers
  • ⚑ AOT (Ahead-Of-Time) compilation: fast startup, low memory usage
  • πŸ§ͺ Comprehensive automated tests: unit, integration, and architecture validation
  • πŸ’Ž Modern .NET 9: minimal APIs, dependency injection, async/await everywhere

πŸ—‚οΈ Project Structure

McpPack.sln
src/
  McpPack.Domain/         # Domain logic, aggregates, value objects, repositories
  McpPack.Application/    # Use cases, service interfaces
  McpPack.Infrastructure/ # Implementations for repositories, external services
  McpPack.Api/            # API endpoints, orchestration

tests/
  McpPack.UnitTests/      # Unit tests for Domain & Application
  McpPack.IntegrationTests/ # Integration & architecture tests

πŸš€ Getting Started

🧰 Prerequisites

πŸƒβ€β™‚οΈ Build & Run

dotnet build
dotnet run --project src/McpPack.Api

πŸ§ͺ Test

dotnet test

πŸ›οΈ Architecture Principles

  • 🧠 Domain: no dependencies, pure business logic
  • 🎯 Application: orchestrates use cases, depends only on Domain
  • πŸ—οΈ Infrastructure: implements interfaces, depends on Application & Domain
  • 🌐 API: exposes endpoints, depends only on Infrastructure
  • πŸ§ͺ Tests: separated by type (unit/integration/architecture)

🀝 Contributing

  • πŸ“ Follow Conventional Commits
  • πŸ§ͺ Write tests for all new features and bugfixes
  • 🧹 Keep code clean and robust

πŸ“„ License

MIT


Because good enough is never enough. 😎

About

A .NET MCP server implementing the Model Context Protocol (MCP) for NuGet package management πŸ“¦. Built with Clean Architecture and Domain-Driven Design (DDD) πŸ—οΈ, this project supports Ahead-Of-Time (AOT) compilation for fast startup and low memory usage ⚑.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published