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 11[project ]
22name = " alibabacloud-rds-openapi-mcp-server"
3- version = " 1.6.3 "
3+ version = " 1.7.0 "
44description = " MCP server for RDS Services via OPENAPI."
55readme = " README.md"
66requires-python = " >=3.12"
Original file line number Diff line number Diff line change @@ -1103,14 +1103,17 @@ async def describe_all_whitelist_template(
11031103 client = get_rds_client (region_id )
11041104 next_pages = True
11051105 all_whitelists = []
1106+ page_num = 1
11061107 while next_pages :
11071108 request = rds_20140815_models .DescribeAllWhitelistTemplateRequest (
11081109 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
11111113 )
11121114 response = await client .describe_all_whitelist_template_async (request )
11131115 next_pages = response .body .data .has_next
1116+ page_num += 1
11141117 all_whitelists .extend (response .body .data .templates )
11151118 return [item .to_map () for item in all_whitelists ]
11161119 except Exception as e :
You can’t perform that action at this time.
0 commit comments