File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11- Support auth token JSON in ` dataconnect_execute ` MPC tool. (#9046 )
2+ - Fixed the bugs when MCP tools cannot connect to emulator due to CLI version mis-matched. (#9068 )
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { FunctionsEmulator } from "./functionsEmulator";
1212import { ExpressBasedEmulator } from "./ExpressBasedEmulator" ;
1313import { PortName } from "./portUtils" ;
1414import { DataConnectEmulator } from "./dataconnectEmulator" ;
15- import { isVSCodeExtension } from "../vsCodeUtils" ;
1615
1716// We use the CLI version from package.json
1817const pkg = require ( "../../package.json" ) ;
@@ -53,10 +52,10 @@ export class EmulatorHub extends ExpressBasedEmulator {
5352 const data = fs . readFileSync ( locatorPath , "utf8" ) . toString ( ) ;
5453 const locator = JSON . parse ( data ) as Locator ;
5554
56- // TODO: In case the locator file format is changed, handle issues with format incompatability
57- if ( ! isVSCodeExtension ( ) && locator . version !== this . CLI_VERSION ) {
58- logger . debug ( `Found locator with mismatched version, ignoring : ${ JSON . stringify ( locator ) } ` ) ;
59- return undefined ;
55+ if ( locator . version !== this . CLI_VERSION ) {
56+ logger . debug (
57+ `Found emulator locator with different version: ${ JSON . stringify ( locator ) } , CLI_VERSION: ${ this . CLI_VERSION } ` ,
58+ ) ;
6059 }
6160
6261 return locator ;
You can’t perform that action at this time.
0 commit comments