How are we to translate sentence fragments? Without context it is impossible to know if «cup» is the direct object.
For instance:
• It is a cup of tea = Ĝi estas taso de teo
• I would like a cup of tea = Me diziras tason da teo
The nominative is the basic (unmarked) form of the noun, so that's the only form you should use here.