Fixing verbosity
This commit is contained in:
5
main.go
5
main.go
@@ -34,7 +34,6 @@ func main() {
|
||||
|
||||
// Connect to MCP servers if configured
|
||||
if len(cfg.MCPServers) > 0 {
|
||||
fmt.Println("Connecting to MCP servers...")
|
||||
if err := mcpManager.ConnectServers(cfg.MCPServers); err != nil {
|
||||
log.Printf("Warning: Failed to connect to some MCP servers: %v", err)
|
||||
}
|
||||
@@ -61,6 +60,10 @@ func main() {
|
||||
// Check if arguments are provided (non-interactive mode)
|
||||
if len(os.Args) > 1 {
|
||||
query := strings.Join(os.Args[1:], " ")
|
||||
// Display MCP status in non-interactive mode if servers are configured
|
||||
if len(cfg.MCPServers) > 0 {
|
||||
displayMCPStatusInline(mcpManager)
|
||||
}
|
||||
processQuery(ctx, client, messages, query)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user