firebase-tools
firebase-tools copied to clipboard
Make emulator hub locator path more robust to environment changes
Description
Some clients couldn't discover emulator due to tempdir path being different depending the client, by using ~/.cache/firebase we should have more robust path.
Scenarios Tested
Running dataconnect emulator Running dataconnect MCP and communicating with emulator from previously failing client (RooCode)
Sample Commands
Does this file get cleaned up after you kill the emulator? If not, I'm worried that all subsequent runs will see a running emualtor
Just tested it and it does cleanup, works same exact way as the previous one worked.
Does this file get cleaned up after you kill the emulator? If not, I'm worried that all subsequent runs will see a running emualtor
The EmulatorHubClient is just a HTTP client that tries to reach the emulator.
Not something that consumes a lot of resource, right?
@joehan @yuchenshi
Can you take a look at this small but risky change?
It sounds like some MCP client sets the $TMPDIR and messed up CLI's resolution algorithm. @tammam-g is trying to move the locator file to a fixed path.