You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mcp): hot-reload bot client on admin UI save/delete
Saving or deleting an MCP server in the admin UI only persisted to
kv_settings — the bot's MCP client kept its stale connections until a
container restart. /mcp update also still pointed at the unmounted
legacy config/mcp.json file, so the emergency fallback was broken too.
- adminapi.Server gains an optional MCPReloader hook; set/delete
handlers call it synchronously (30 s timeout) after saveMCPServers
and surface success/failure in the page flash.
- Telegram /mcp update now reads from a user-supplied loader, wired in
main.go to adminapi.LoadMCPServersFromSettings (kv_settings first,
file fallback for local dev).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
<divclass="mcp-flash-err">Saved, but live reload failed: <code>{{.ReloadErr}}</code>. Restart the container or run <code>/mcp update</code> to retry.</div>
34
+
{{end}}
35
+
27
36
{{if .BridgeExport}}
28
37
<divclass="mcp-bridge-note">
29
38
<strong>Bridge mirror active.</strong> Every save also writes to
0 commit comments