change: mcp tool invoke url path

This commit is contained in:
lilong.129
2025-04-10 11:20:00 +08:00
parent b2dafda155
commit f8a5c25f4b
4 changed files with 9 additions and 4 deletions
+3
View File
@@ -5,6 +5,8 @@ import (
"fmt"
"os"
"time"
"github.com/rs/zerolog/log"
)
// MCPSettings represents the main configuration structure
@@ -43,6 +45,7 @@ func (c *ServerConfig) GetTimeoutDuration() time.Duration {
// LoadSettings loads MCP settings from the config file
func LoadSettings(path string) (*MCPSettings, error) {
log.Info().Str("path", path).Msg("load MCP settings")
data, err := os.ReadFile(path)
if err != nil {
return nil, fmt.Errorf("failed to read settings file: %w", err)