[[sources]]
id = "main"
description = "当前项目库"
dsn = "postgresql://erp_pgsql:erp_2025@cxd.whcxd.cn:16159/junhong_cmp_test?sslmode=disable"

[[sources]]
id = "legacy_mysql"
description = "老系统 MySQL 库，仅用于 AI 查询和迁移脚本准备"
type = "mysql"
host = "120.79.89.216"
port = 3306
database = "kyhl"
user = "root"
password = "XiWaJ9Eu%go9-2>g!xGp"
sslmode = "disable"
lazy = true

[[tools]]
name = "search_objects"
source = "main"

[[tools]]
name = "execute_sql"
source = "main"
readonly = true    # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
max_rows = 1000     # Limit query results

[[tools]]
name = "search_objects"
source = "legacy_mysql"

[[tools]]
name = "execute_sql"
source = "legacy_mysql"
readonly = true    # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
max_rows = 5000     # Limit query results for migration exploration
