def create_client()

in src/alibabacloud_dms_mcp_server/server.py [0:0]


def create_client() -> dms_enterprise20181101Client:
    """
    初始化账号Client
    @return: Client
    @throws Exception
    """
    config = open_api_models.Config(
        access_key_id=os.getenv('ALIBABA_CLOUD_ACCESS_KEY_ID', ""),
        access_key_secret=os.getenv('ALIBABA_CLOUD_ACCESS_KEY_SECRET', ""),
        security_token=os.getenv('ALIBABA_CLOUD_SECURITY_TOKEN')
    )
    config.endpoint = f'dms-enterprise.cn-beijing.aliyuncs.com'
    config.user_agent = "dms-mcp"

    return dms_enterprise20181101Client(config)