chore: fix mcp masking setup error (#29619)

This commit is contained in:
andig 2026-05-04 13:49:02 +02:00 • committed by GitHub
parent 94314b67b0
commit d6908d9eee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {