List MCP Servers • AI Agent SDK
list_mcp_servers: Return the names of MCP servers currently attached at runtime.
list_mcp_servers
Method
</div>
Return the names of MCP servers currently attached at runtime.
Signature
def list_mcp_servers() -> List[str]Returns
ResponseField
List[str]The result of the operation.
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6162