Hlibz.XmlDocs.AI 1.0.0-preview.1

This is a prerelease version of Hlibz.XmlDocs.AI.
dotnet add package Hlibz.XmlDocs.AI --version 1.0.0-preview.1
                    
NuGet\Install-Package Hlibz.XmlDocs.AI -Version 1.0.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hlibz.XmlDocs.AI" Version="1.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hlibz.XmlDocs.AI" Version="1.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Hlibz.XmlDocs.AI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hlibz.XmlDocs.AI --version 1.0.0-preview.1
                    
#r "nuget: Hlibz.XmlDocs.AI, 1.0.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hlibz.XmlDocs.AI@1.0.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hlibz.XmlDocs.AI&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Hlibz.XmlDocs.AI&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Tool

Hlibz.XmlDocs icon

Hlibz.XmlDocs.AI

NuGet CI

XML documentation comments in Microsoft.Extensions.AI JSON schemas. MCP tool and AI function schemas read only [Description]; with this, every property and type without one is described by its <summary>, in the same words as the OpenAPI document (Hlibz.XmlDocs reads both).

using Hlibz.XmlDocs;

AIJsonSchemaCreateOptions schemas = AIJsonSchemaCreateOptions.Default.WithXmlDocumentation();

McpServerTool tool = McpServerTool.Create(
    method,
    target: null,
    new McpServerToolCreateOptions { Services = services, SchemaCreateOptions = schemas });
  • A property by its summary (a positional record's by the record's <param>), anything else by its type's summary.
  • [Description] wins, and so does a TransformSchemaNode you set before.
  • StyleCop's "Gets or sets" wording is removed (xml => xml.AccessorPrefixes.Clear() keeps it).
  • Set GenerateDocumentationFile in each project, and CopyDocumentationFilesFromPackages to describe types from packages.

Targets .NET 11.

Full documentation: github.com/hlib-zinchenko/Hlibz.XmlDocs.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Hlibz.XmlDocs.AI:

Package Downloads
Hlibz.UseCases.Mcp

Serves Hlibz.UseCases use cases as MCP tools (MCP C# SDK): WithUseCaseTools registers your [McpServerTool] methods with schema options WithToolsFromAssembly can't take, so their input and output schemas say what the use cases check, in the same words as Hlibz.OpenApi's documents: strongly-typed IDs as the value they wrap (a uuid string), XML summaries as descriptions (Hlibz.XmlDocs.AI), and every IDescribedRule and [RuleSummary] as JSON Schema keywords and a sentence, on types, properties, record parameters and tool parameters. Optionally names the tool parameters by a naming policy (snake_case). Each tool lists the errors its use case can fail with (its error set, ValidationFailed, the filters' ambient errors) for Hlibz.Results.Mcp, so no tool declares its own.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.1 99 11/29/2026