feat(tool system): Optimization of the tool system

1. Optimization of the JSON tool, add insert, replace, delete, parse
2. Optimization of the mcp test_connection
3. tool list desc
4. datetime_tool default timezone set Asia/Shanghai
This commit is contained in:
谢俊男
2025-12-26 19:11:20 +08:00
parent 05e25c5882
commit 9fb7d7d059
6 changed files with 300 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ class ToolRepository:
query = query.filter(ToolConfig.status == status.value)
if is_enabled is not None:
query = query.filter(ToolConfig.is_enabled == is_enabled)
query = query.order_by(ToolConfig.created_at.desc())
return query.all()
@staticmethod