dotnet-mcp-hero
If you are the rightful owner of dotnet-mcp-hero and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A .NET-based superhero management system with a Clean Architecture API backend and a Model Context Protocol (MCP) server for AI assistant integration.
The .NET Hero API with Model Context Protocol is a modern application that demonstrates the integration of clean architecture principles with AI capabilities through the Model Context Protocol (MCP). The project consists of two main components: HeroApi, a .NET 9 WebAPI built with clean architecture, and HeroMcp, an MCP server that provides AI tool capabilities for interacting with the API. The application is centered around a superhero domain model, including heroes, teams, and missions. It leverages various technologies such as Entity Framework Core, MediatR for CQRS, and Microsoft Kiota for API client generation. The project also includes comprehensive testing and observability features.
Features
- Clean Architecture: Separation of concerns with Domain, Application, Infrastructure, and WebApi layers.
- Domain-Driven Design: Rich domain model with aggregates, entities, and value objects.
- CQRS Pattern: Separation of commands and queries using MediatR.
- Model Context Protocol: Integration with AI assistants using the MCP standard.
- Generated API Client: Uses Microsoft Kiota to access the HeroApi.
Tools
GetHeroes
Retrieve all heroes from the API.
CreateHero
Create a new hero.
GetTeams
Retrieve all teams from the API.
GetTeam
Get a specific team by ID.
CreateTeam
Create a new team.
AddHeroToTeam
Add a hero to a team.
ExecuteMission
Execute a mission with a team.
CompleteMission
Complete a team's mission.
Echo
Simple tool for testing the MCP connection.
ReverseEcho
Simple tool for testing the MCP connection.