@@ -184,12 +184,12 @@ def list_prompts_sync(self, pagination_token: Optional[str] = None) -> ListPromp
184184 async def _list_prompts_async () -> ListPromptsResult :
185185 return await self ._background_thread_session .list_prompts (cursor = pagination_token )
186186
187- list_prompts_response : ListPromptsResult = self ._invoke_on_background_thread (_list_prompts_async ()).result ()
188- self ._log_debug_with_thread ("received %d prompts from MCP server" , len (list_prompts_response .prompts ))
189- for prompt in list_prompts_response .prompts :
187+ list_prompts_result : ListPromptsResult = self ._invoke_on_background_thread (_list_prompts_async ()).result ()
188+ self ._log_debug_with_thread ("received %d prompts from MCP server" , len (list_prompts_result .prompts ))
189+ for prompt in list_prompts_result .prompts :
190190 self ._log_debug_with_thread (prompt .name )
191191
192- return list_prompts_response
192+ return list_prompts_result
193193
194194 def get_prompt_sync (self , prompt_id : str , args : dict [str , Any ]) -> GetPromptResult :
195195 """Synchronously retrieves a prompt from the MCP server.
@@ -208,10 +208,10 @@ def get_prompt_sync(self, prompt_id: str, args: dict[str, Any]) -> GetPromptResu
208208 async def _get_prompt_async () -> GetPromptResult :
209209 return await self ._background_thread_session .get_prompt (prompt_id , arguments = args )
210210
211- get_prompt_response : GetPromptResult = self ._invoke_on_background_thread (_get_prompt_async ()).result ()
211+ get_prompt_result : GetPromptResult = self ._invoke_on_background_thread (_get_prompt_async ()).result ()
212212 self ._log_debug_with_thread ("received prompt from MCP server" )
213213
214- return get_prompt_response
214+ return get_prompt_result
215215
216216 def call_tool_sync (
217217 self ,
0 commit comments