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


##########
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:
   I've updated to "return empty list when mcp server doesn't support 
list_prompts", please take a look



-- 
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