Add an internal API for setting server