List Active Server Names • AI Agent SDK

list_active_server_names: Return the set of MCP server names currently registered this run.

list_active_server_names

Method

</div>

This is a method of the MCP class in the mcp module.

Return the set of MCP server names currently registered this run.

Signature

python
def list_active_server_names() -> set

Returns

ResponseField set

The result of the operation.

Source

View on GitHub

praisonaiagents/mcp/mcp.py at line 514