List MCP Servers • AI Agent SDK

list_mcp_servers: Return the names of MCP servers currently attached at runtime.

list_mcp_servers

Method

</div>

This is a method of the Agent class in the agent module.

Return the names of MCP servers currently attached at runtime.

Signature

python
def list_mcp_servers() -> List[str]

Returns

ResponseField List[str]

The result of the operation.

Source

View on GitHub

praisonaiagents/agent/agent.py at line 6162


Related Documentation