File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ export class ApiClient {
95
95
await this . getAccessToken ( ) ;
96
96
}
97
97
98
+ public async close ( ) : Promise < void > {
99
+ if ( this . accessToken ) {
100
+ await this . accessToken . revokeAll ( ) ;
101
+ }
102
+ }
103
+
98
104
public async getIpInfo ( ) : Promise < {
99
105
currentIpv4Address : string ;
100
106
} > {
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ export class Server {
101
101
}
102
102
103
103
async close ( ) : Promise < void > {
104
+ await this . mcpServer . close ( ) ;
104
105
await this . telemetry . close ( ) ;
105
106
await this . session . close ( ) ;
106
- await this . mcpServer . close ( ) ;
107
107
}
108
108
109
109
/**
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export class Session extends EventEmitter<{
93
93
94
94
async close ( ) : Promise < void > {
95
95
await this . disconnect ( ) ;
96
+ await this . apiClient . close ( ) ;
96
97
this . emit ( "close" ) ;
97
98
}
98
99
You can’t perform that action at this time.
0 commit comments