From e37ab09fc52bb586411e274b939b92c91e347e9e Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Mon, 13 Apr 2026 16:15:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B5=D0=BA=D1=86=D0=B8=D0=B8=20Ope?= =?UTF-8?q?nAPI/Swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 38ee473..b5de990 100644 --- a/README.md +++ b/README.md @@ -346,4 +346,23 @@ npx @modelcontextprotocol/inspector dotnet run --project LazyBear.MCP - **Framework Web:** ASP.NET Core 9 - **UI:** Razor Pages - **DB:** SQLite/SQL Server -- **Protocol:** Model Context Protocol (MCP) \ No newline at end of file +- **Protocol:** Model Context Protocol (MCP) + +**Документация:** +- **Сгенерированный API**: `/swagger` — Swagger UI +- **Метаданные методов**: MCP Tools — авт. описание от `Summary/Description` + +### OpenAPI/Swagger + +**Включите для просмотра API:** + +```xml + +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc; +using Microsoft.OpenApi.Models; + +var config = new OpenApiInfo { Title = "LazyBear MCP Server", Version = "1.0.0" }; +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(c => c.SwaggerDoc("v1", config)); +``` \ No newline at end of file