[agents]
# Allow a root Codex session to delegate to a lead, and a lead to delegate once
# more to a specialist. Deeper recursion is intentionally disabled.
max_threads = 8
max_depth = 2

[mcp_servers.postgres]
command = "uvx"
args = ["postgres-mcp", "--access-mode=unrestricted"]

[mcp_servers.postgres.env]
DATABASE_URI = "postgresql://postgres:postgres@localhost:5332/coffee_project_db"

[mcp_servers.redis]
command = "uvx"
args = ["--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://localhost:6379/0"]

[mcp_servers.lighthouse]
command = "bunx"
args = ["@danielsogl/lighthouse-mcp@latest"]

[mcp_servers.docker]
command = "uvx"
args = ["mcp-server-docker"]

[mcp_servers.docker.tools.list_containers]
approval_mode = "approve"

[mcp_servers.docker.tools.fetch_container_logs]
approval_mode = "approve"

[mcp_servers."chrome-devtools"]
command = "npx"
args = ["-y", "chrome-devtools-mcp@latest"]

[mcp_servers."chrome-devtools".tools.take_snapshot]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.take_screenshot]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.resize_page]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.navigate_page]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.click]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.new_page]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.get_network_request]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.fill_form]
approval_mode = "approve"

[mcp_servers."chrome-devtools".tools.evaluate_script]
approval_mode = "approve"
