Hello all, I use mcp as below. But i wanna choose...
# agents
c
Hello all, I use mcp as below. But i wanna choose which tools can be used in agent. For example mcp server serves 20 tools. But i wanna attach 3 of them to the agent. How can i do that?
Copy code
class AppointmentRemainderAssistant(Agent):
    def __init__(self, system_prompt: str, call_tracker: dict) -> None:
        super().__init__(
            instructions=system_prompt,
            mcp_servers=[
                mcp.MCPServerHTTP(
                    url="http://localhost:8080/sse"
                )       
            ]    
        )
        self.call_tracker = call_tracker
f
we subclass the mcp server class, implement
list_tools
and filter out unwanted tools