dotnet-mcp-hero

dotnet-mcp-hero

3.3

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

  1. GetHeroes

    Retrieve all heroes from the API.

  2. CreateHero

    Create a new hero.

  3. GetTeams

    Retrieve all teams from the API.

  4. GetTeam

    Get a specific team by ID.

  5. CreateTeam

    Create a new team.

  6. AddHeroToTeam

    Add a hero to a team.

  7. ExecuteMission

    Execute a mission with a team.

  8. CompleteMission

    Complete a team's mission.

  9. Echo

    Simple tool for testing the MCP connection.

  10. ReverseEcho

    Simple tool for testing the MCP connection.