feat: expose current date and time via HTTP and MCP

Adds GET /datetime and an MCP get_current_datetime tool returning the
current date/time in Europe/Paris, alongside the existing calendar
endpoints. Both share the same CurrentDateTime payload shape.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu8wwahgecuCGfesTKCfEd
This commit is contained in:
2026-09-05 10:58:38 +02:00
co-authored by Claude Sonnet 5
parent e5468ef654
commit 383c889cab
7 changed files with 101 additions and 7 deletions
+6 -2
View File
@@ -6,9 +6,13 @@ Tools for domotic
Return calendar informations about today
## Date and time
`GET /datetime` returns the current date and time.
## MCP
An MCP server is exposed over Streamable HTTP at `/mcp`, providing the same calendar
information as MCP tools (`get_calendar_today`, `get_calendar_for_date`, `get_holidays`)
for use by LLM agents/MCP clients.
and date/time information as MCP tools (`get_current_datetime`, `get_calendar_today`,
`get_calendar_for_date`, `get_holidays`) for use by LLM agents/MCP clients.