qingfei1994 commented on issue #412:
URL: https://github.com/apache/flink-agents/issues/412#issuecomment-3717147311
@wenjin272 What I mean by "defining them in MCPServer constructor" is
something like this.
```
class ReActAgentWithMCP(ReActAgent):
"""ReAct Agent with MCP integration."""
@mcp_server
@staticmethod
def my_mcp_server() -> MCPServer:
"""Define MCP server connection."""
return MCPServer(endpoint="https://xxxx/mcp/",prompts=[prompt])
```
when declaring a MCPServer within an agent, passing the prompt to the
constructor so that agents could use. Let me submit a PR to well explain my
idea.
--
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]