File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/alibabacloud_rds_openapi_mcp_server Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " alibabacloud-rds-openapi-mcp-server"
3
- version = " 1.6.3 "
3
+ version = " 1.7.0 "
4
4
description = " MCP server for RDS Services via OPENAPI."
5
5
readme = " README.md"
6
6
requires-python = " >=3.12"
Original file line number Diff line number Diff line change @@ -1103,14 +1103,17 @@ async def describe_all_whitelist_template(
1103
1103
client = get_rds_client (region_id )
1104
1104
next_pages = True
1105
1105
all_whitelists = []
1106
+ page_num = 1
1106
1107
while next_pages :
1107
1108
request = rds_20140815_models .DescribeAllWhitelistTemplateRequest (
1108
1109
template_name = template_name ,
1109
- fuzzy_search = True ,
1110
- max_records_per_page = 100
1110
+ fuzzy_search = False if template_name is None else True ,
1111
+ max_records_per_page = 100 ,
1112
+ page_numbers = page_num
1111
1113
)
1112
1114
response = await client .describe_all_whitelist_template_async (request )
1113
1115
next_pages = response .body .data .has_next
1116
+ page_num += 1
1114
1117
all_whitelists .extend (response .body .data .templates )
1115
1118
return [item .to_map () for item in all_whitelists ]
1116
1119
except Exception as e :
You can’t perform that action at this time.
0 commit comments