wenjin272 commented on code in PR #447:
URL: https://github.com/apache/flink-agents/pull/447#discussion_r2735043544


##########
python/flink_agents/integrations/mcp/mcp.py:
##########
@@ -271,7 +271,10 @@ def get_tool_metadata(self, name: str) -> ToolMetadata:
 
     def list_prompts(self) -> List[MCPPrompt]:
         """List available prompts from the MCP server."""
-        return asyncio.run(self._list_prompts_async())
+        try:
+            asyncio.run(self._list_prompts_async())
+        except Exception:

Review Comment:
   Return empty list for any exception may be too broad. Can we just return 
empty list for the exception that tells the mcp server doesn't support list 
prompt?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to