MgSoftDev.KnowledgeHub.Ai
1.0.0
dotnet add package MgSoftDev.KnowledgeHub.Ai --version 1.0.0
NuGet\Install-Package MgSoftDev.KnowledgeHub.Ai -Version 1.0.0
<PackageReference Include="MgSoftDev.KnowledgeHub.Ai" Version="1.0.0" />
<PackageVersion Include="MgSoftDev.KnowledgeHub.Ai" Version="1.0.0" />
<PackageReference Include="MgSoftDev.KnowledgeHub.Ai" />
paket add MgSoftDev.KnowledgeHub.Ai --version 1.0.0
#r "nuget: MgSoftDev.KnowledgeHub.Ai, 1.0.0"
#:package MgSoftDev.KnowledgeHub.Ai@1.0.0
#addin nuget:?package=MgSoftDev.KnowledgeHub.Ai&version=1.0.0
#tool nuget:?package=MgSoftDev.KnowledgeHub.Ai&version=1.0.0
MgSoftDev.KnowledgeHub.Ai
Herramientas de IA para MgSoftDev.KnowledgeHub, definidas una sola vez y utilizables desde dos sitios:
- Un chat dentro de la app (
Microsoft.Extensions.AI), con el componenteMgSoftDev.KnowledgeHub.Blazor.Chato con el chat propio del anfitrión. - Un servidor MCP (
MgSoftDev.KnowledgeHub.Mcp), para que Claude Code u otra IA documente tu aplicación.
Dos conjuntos
Consulta: kh_search, kh_get_tree, kh_read_page y kh_get_page_image. Responden solo con lo que
el usuario actual puede ver, y el contenido pasa antes por el renderizado de plantillas, así que un
bloque reservado a un rol nunca llega a quien no lo tiene.
Autoría: leer el árbol, la fuente y el historial, validar HTML, crear páginas, guardar borradores, subir imágenes y reorganizar. Todo pasa por la librería, así que el saneador, el pipeline de imágenes y los permisos se aplican igual que desde el editor. No existe ninguna herramienta para publicar, borrar ni cambiar permisos: la IA deja borradores y una persona los revisa y publica.
Registro
builder.Services.AddKnowledgeHubAiTools(o =>
{
o.WritingConventions = "Español de México, tono técnico y directo.";
});
Regístralo donde corre el core. El chat obtiene las herramientas con IKnowledgeHubAiToolProvider, y un
chat propio del anfitrión puede sumarlas a su ChatOptions.Tools.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AngleSharp (>= 1.7.2)
- MgSoftDev.KnowledgeHub.Abstractions (>= 1.0.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on MgSoftDev.KnowledgeHub.Ai:
| Package | Downloads |
|---|---|
|
MgSoftDev.KnowledgeHub.Mcp
MCP servers for MgSoftDev.KnowledgeHub, hosted inside your own app. The authoring endpoint lets Claude Code or another AI document your application as drafts, under a service identity and through the library, so sanitizing, the image pipeline and permissions all apply, and it can never publish. The read-only endpoint answers only with what the calling user may see. Stateless Streamable HTTP, token and loopback protected by default. |
|
|
MgSoftDev.KnowledgeHub.Blazor.Chat
A chat that answers from your MgSoftDev.KnowledgeHub documentation, inside your own Blazor app, with the signed-in user's permissions. Works with any IChatClient (Claude through the Anthropic SDK, or another provider). The model's Markdown is rendered as components, never as raw HTML. A host with its own chat can skip the component and add the KnowledgeHub tools to its own. Works in Blazor Server, WPF BlazorWebView and WebAssembly (through a server-side chat endpoint). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 178 | 9/13/2026 |
| 0.23.0-preview.1 | 90 | 9/13/2026 |