chore: fix mcp masking setup error (#29619)
This commit is contained in:
parent
94314b67b0
commit
d6908d9eee
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue