Merge commit '52c4d1f' into feat/remote-node
# Conflicts: # internal/db/db.go
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
@@ -78,6 +80,11 @@ and maintains a searchable index. Use 'knox watch' for daemon mode.`,
|
||||
s := knoxcmd.NewMCPServer(kdb)
|
||||
log.Printf("[knox] starting MCP stdio server")
|
||||
if err := mcpServer.ServeStdio(s); err != nil {
|
||||
// SIGINT/SIGTERM cancels the server context: clean shutdown,
|
||||
// not a failure.
|
||||
if errors.Is(err, context.Canceled) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user