Hlibz.XmlDocs.AI
1.0.0-preview.1
dotnet add package Hlibz.XmlDocs.AI --version 1.0.0-preview.1
NuGet\Install-Package Hlibz.XmlDocs.AI -Version 1.0.0-preview.1
<PackageReference Include="Hlibz.XmlDocs.AI" Version="1.0.0-preview.1" />
<PackageVersion Include="Hlibz.XmlDocs.AI" Version="1.0.0-preview.1" />
<PackageReference Include="Hlibz.XmlDocs.AI" />
paket add Hlibz.XmlDocs.AI --version 1.0.0-preview.1
#r "nuget: Hlibz.XmlDocs.AI, 1.0.0-preview.1"
#:package Hlibz.XmlDocs.AI@1.0.0-preview.1
#addin nuget:?package=Hlibz.XmlDocs.AI&version=1.0.0-preview.1&prerelease
#tool nuget:?package=Hlibz.XmlDocs.AI&version=1.0.0-preview.1&prerelease
![]()
Hlibz.XmlDocs.AI
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 aTransformSchemaNodeyou set before.- StyleCop's "Gets or sets" wording is removed (
xml => xml.AccessorPrefixes.Clear()keeps it). - Set
GenerateDocumentationFilein each project, andCopyDocumentationFilesFromPackagesto describe types from packages.
Targets .NET 11.
Full documentation: github.com/hlib-zinchenko/Hlibz.XmlDocs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Hlibz.XmlDocs (>= 1.0.0-preview.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
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 |