wire utoipa OpenAPI: #[utoipa::path] on all handlers, Scalar UI (#14)

This commit is contained in:
2026-07-12 14:29:52 +02:00
parent b00272aceb
commit e27e2ab6d1
18 changed files with 651 additions and 48 deletions

View File

@@ -14,7 +14,7 @@ use schemars::JsonSchema;
use serde::Deserialize;
use uuid::Uuid;
use crate::tools::{channels, ical, library, schedule};
use crate::tools::{channels, library, schedule};
const SERVER_NAME: &str = "k-tv-mcp";
@@ -201,16 +201,6 @@ impl KTvMcpServer {
)
.await
}
#[tool(
description = "Export a channel's schedule as iCalendar (.ics). Returns RFC 5545 text."
)]
async fn export_schedule_ical(&self, #[tool(aggr)] p: ChannelIdParam) -> String {
match parse_uuid(&p.channel_id) {
Ok(id) => ical::export_schedule_ical(&self.channel_query, id).await,
Err(e) => e,
}
}
}
#[tool(tool_box)]