fix: an array query parameter reaches an OpenAPI tool server as repeated values (#32677)

This commit is contained in:
G30 2026-10-20 13:18:13 -04:00 • committed by GitHub
parent a720d090d8
commit fd1e59b25f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1867,7 +1867,7 @@ async def execute_tool_server(
final_url = final_url.replace(f'{{{key}}}', quote(str(value), safe=''))
if query_params:
final_url = f'{final_url}?{urlencode(query_params)}'
final_url = f'{final_url}?{urlencode(query_params, doseq=True)}'
request_body_content = operation.get('requestBody', {}).get('content')
if request_body_content and params: