1- import { App , applyDocumentTheme , applyHostStyleVariables , applyHostFonts } from "@modelcontextprotocol/ext-apps" ;
1+ import {
2+ App ,
3+ applyDocumentTheme ,
4+ applyHostStyleVariables ,
5+ applyHostFonts ,
6+ } from "@modelcontextprotocol/ext-apps" ;
27
38const app = new App ( { name : "Update Firebase Environment" , version : "1.0.0" } ) ;
49
@@ -13,7 +18,6 @@ let selectedProjectId: string | null = null;
1318
1419const envProjectIdEl = document . getElementById ( "env-project-id" ) as HTMLSpanElement ;
1520const envUserEl = document . getElementById ( "env-user" ) as HTMLSpanElement ;
16- const currentEnvBox = document . getElementById ( "current-env" ) as HTMLDivElement ;
1721
1822function showStatus ( message : string , type : "success" | "error" | "info" ) {
1923 statusBox . textContent = message ;
@@ -99,7 +103,8 @@ submitBtn.onclick = async () => {
99103 }
100104} ;
101105
102- app . ontoolresult = ( result ) => {
106+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
107+ app . ontoolresult = ( _result ) => {
103108 // We can handle tool results if needed, but we rely on manual triggers for list_projects
104109} ;
105110
@@ -120,7 +125,10 @@ app.onhostcontextchanged = (ctx) => {
120125
121126 // Fetch current environment
122127 try {
123- const envResult = await app . callServerTool ( { name : "firebase_get_environment" , arguments : { } } ) ;
128+ const envResult = await app . callServerTool ( {
129+ name : "firebase_get_environment" ,
130+ arguments : { } ,
131+ } ) ;
124132 const envData = envResult . structuredContent as any ;
125133 if ( envData ) {
126134 envProjectIdEl . textContent = envData . projectId || "<NONE>" ;
@@ -140,7 +148,9 @@ app.onhostcontextchanged = (ctx) => {
140148 filteredProjects = projects ;
141149 renderProjects ( ) ;
142150 showStatus ( "Projects loaded successfully." , "success" ) ;
143- setTimeout ( ( ) => { if ( statusBox . className === "status success" ) statusBox . style . display = "none" ; } , 3000 ) ;
151+ setTimeout ( ( ) => {
152+ if ( statusBox . className === "status success" ) statusBox . style . display = "none" ;
153+ } , 3000 ) ;
144154 } else {
145155 showStatus ( "No projects returned from server." , "error" ) ;
146156 }
0 commit comments