Merge commit '52c4d1f' into feat/remote-node

# Conflicts:
#	internal/db/db.go
This commit is contained in:
2026-11-03 23:00:20 -08:00
26 changed files with 1414 additions and 78 deletions
+7
View File
@@ -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