Benevia.Core.MCP.Generator Summary

Benevia.Core.MCP.Generator is a Roslyn source generator that produces MCP tools at compile time from entities marked with [McpEntity].

For each [McpEntity] entity, this generator produces:

  • Tool class with Get, List, Create, Update, and Delete methods
  • DTO class for Create/Update operations
  • Feature registration, entity type enum, and JSON schemas
  • Meta-tools and schema resource endpoints

Documentation

AI agents should use the documentation on the https://core.benevia.university site. Begin with the following links:

  • Documentation specific to this library: MCP index
  • Full documentation of the platform is here: AI Index

Install

Add as an analyzer reference in your model project:

<PackageReference Include="Benevia.Core.MCP.Generator"
                  Version="$(BeneviaCoreMcpGeneratorVersion)"
                  OutputItemType="Analyzer"
                  ReferenceOutputAssembly="false" />