Extract the allowed MCP servers resolution logic with IP filtering into a dedicated helper function _resolve_allowed_mcp_servers_with_ip_filter. This reduces the statement count in call_tool_rest_api from 51 to under 50, fixing the ruff PLR0915 (too many statements) lint error. Co-authored-by: Shin <shin@openclaw.ai> |
||
|---|---|---|
| .. | ||
| mcp_server | ||
| out | ||
| post_call_rules.py | ||