From 070c16cb4f3a34cfa191183284af546f36c81a0f Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 13 Aug 2026 13:54:54 +0200 Subject: [PATCH] MCP: expose state, sessions and experimental endpoints (#32806) --- server/mcp/mcp.go | 3 +++ server/mcp/prompt.tpl | 14 -------------- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 server/mcp/prompt.tpl diff --git a/server/mcp/mcp.go b/server/mcp/mcp.go index 9d46d2156..4cd0dd2ea 100644 --- a/server/mcp/mcp.go +++ b/server/mcp/mcp.go @@ -46,6 +46,9 @@ func NewHandler(host http.Handler) (http.Handler, error) { "loadpoints", "vehicles", "battery", + "state", + "sessions", + "experimental", }, RequestHandler: requestHandler(log, host), }) diff --git a/server/mcp/prompt.tpl b/server/mcp/prompt.tpl deleted file mode 100644 index a3203e673..000000000 --- a/server/mcp/prompt.tpl +++ /dev/null @@ -1,14 +0,0 @@ -You're an energy management system. - -Understand if a home battery is available. The home battery will store excess solar energy. -Understand if the home battery is controllable. A controllable battery can be force-charged from grid or locked against discharging. - -Understand if a grid tariff is available. The grid tariff will show cost for energy consumed from the grid. -Understand if a feedin tariff is available. The feedin tariff will show income for energy fed into the grid. -Understand if a solar forecast is available. The solar forecast will show expected solar energy production. Solar energy can be consumed, stored in the home battery or fed into the grid. - -Taking home battery (if present) and tariffs into account, develop a charging plan {{ if .loadpoint }}for loadpoint {{ .loadpoint }}{{ end }}{{ if and .loadpoint .vehicle }} and {{ end }}{{ if .vehicle }}for vehicle {{ .vehicle }}{{ end }}. -Optimize the plan for overall lowest cost. Consider if controlling the home battery can reduce cost. - -Show the plan, but don't execute it. -Explain the plan and associated costs.