import requests


def current_server_id() -> str:
    """Helper to get the current server id"""
    rsp = requests.get("http://localhost:10000/api/servers")
    if rsp.status_code != 200:
        raise ValueError("Failed to fetch current server id")

    return rsp.json()['current_server']