@@ -36,6 +36,12 @@ export interface CliCommandRequest {
3636export type CliCommandResponse = { stdout ?: string ; stderr ?: string } | void ;
3737export type CliIpcServer = IpcServer < CliCommandRequest , CliCommandResponse > ;
3838
39+ const CLIProxyMCPInstallOutputs = {
40+ checkingForUpdates : / c h e c k i n g f o r u p d a t e s .../ i,
41+ notASupportedClient : / i s n o t a s u p p o r t e d M C P c l i e n t / i,
42+ installedSuccessfully : / G i t K r a k e n M C P S e r v e r S u c c e s s f u l l y I n s t a l l e d ! / i,
43+ } ;
44+
3945export class GkCliIntegrationProvider implements Disposable {
4046 private readonly _disposable : Disposable ;
4147 private _runningDisposable : Disposable | undefined ;
@@ -236,8 +242,8 @@ export class GkCliIntegrationProvider implements Disposable {
236242 } ,
237243 ) ;
238244
239- output = output . trim ( ) ;
240- if ( output === 'GitKraken MCP Server Successfully Installed!' ) {
245+ output = output . replace ( CLIProxyMCPInstallOutputs . checkingForUpdates , '' ) . trim ( ) ;
246+ if ( CLIProxyMCPInstallOutputs . installedSuccessfully . test ( output ) ) {
241247 if ( this . container . telemetry . enabled ) {
242248 this . container . telemetry . sendEvent ( 'mcp/setup/completed' , {
243249 requiresUserCompletion : false ,
@@ -246,7 +252,7 @@ export class GkCliIntegrationProvider implements Disposable {
246252 } ) ;
247253 }
248254 return ;
249- } else if ( output . includes ( 'not a supported MCP client' ) ) {
255+ } else if ( CLIProxyMCPInstallOutputs . notASupportedClient . test ( output ) ) {
250256 if ( this . container . telemetry . enabled ) {
251257 this . container . telemetry . sendEvent ( 'mcp/setup/failed' , {
252258 reason : 'unsupported app' ,
0 commit comments