From d6908d9eee04478426ab43c7ab3f9b34358740f7 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 4 May 2026 13:49:02 +0200 Subject: [PATCH] chore: fix mcp masking setup error (#29619) --- cmd/root.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index ef501dc4f..ee63f278b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -340,7 +340,7 @@ func runRoot(cmd *cobra.Command, args []string) { } // setup MCP - if isMcp() { + if err == nil && isMcp() { router := httpd.Router() var handler http.Handler @@ -351,6 +351,7 @@ func runRoot(cmd *cobra.Command, args []string) { if conf.Mcp { log.WARN.Println("mcp: yaml config is deprecated") } + // setup messaging var pushChan chan messenger.Event if err == nil {