UK AIP ENR 1.6 Para 2.4.1.1 requires that you fly to a place where TCAS can be fixed by most direct route if it fails before departure.
That reference is if the transponder has failed.
You can operate with TCAS inop in the UK for up to 10 days on commercial aircraft.