feat: chat with mcp tools

This commit is contained in:
lilong.129
2025-05-16 16:18:56 +08:00
parent a58ccffb28
commit a4cff1c98a
13 changed files with 544 additions and 124 deletions

View File

@@ -1,7 +1,6 @@
package server
import (
"context"
"fmt"
"time"
@@ -31,13 +30,6 @@ func (r *Router) InitMCPHost(configPath string) error {
log.Error().Err(err).Msg("init MCP host failed")
return err
}
err = mcpHost.InitServers(context.Background())
if err != nil {
log.Error().Err(err).Msg("init MCP servers failed")
return err
}
r.mcpHost = mcpHost
return nil
}