Add files via upload

This commit is contained in:
公明
2026-05-12 12:55:02 +08:00
committed by GitHub
parent 45b6ed2847
commit 2e1e57ce27
2 changed files with 60 additions and 14 deletions
+1
View File
@@ -90,6 +90,7 @@ func New(cfg *config.Config, log *logger.Logger) (*App, error) {
// 创建MCP服务器(带数据库持久化)
mcpServer := mcp.NewServerWithStorage(log.Logger, db)
mcpServer.ConfigureHTTPToolCallTimeoutFromAgentMinutes(cfg.Agent.ToolTimeoutMinutes)
// 创建安全工具执行器
executor := security.NewExecutor(&cfg.Security, mcpServer, log.Logger)