Skip to content

Commit da3e89e

Browse files
committed
fix: resolve compilation errors in mcp-update-env-app
1 parent a5b2a79 commit da3e89e

4 files changed

Lines changed: 109 additions & 52 deletions

File tree

npm-shrinkwrap.json

Lines changed: 100 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
"@angular-devkit/architect": "^0.1402.2",
186186
"@angular-devkit/core": "^14.2.2",
187187
"@google/events": "^5.1.1",
188+
"@modelcontextprotocol/ext-apps": "^1.3.2",
188189
"@types/archiver": "^6.0.0",
189190
"@types/async-lock": "^1.4.2",
190191
"@types/body-parser": "^1.17.0",

src/mcp/apps/update_environment/mcp-app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ submitBtn.onclick = async () => {
9999
}
100100
};
101101

102-
app.ontoolresult = (result) => {
102+
app.ontoolresult = (result: any) => {
103103
// We can handle tool results if needed, but we rely on manual triggers for list_projects
104104
};
105105

106-
app.onhostcontextchanged = (ctx) => {
106+
app.onhostcontextchanged = (ctx: any) => {
107107
if (ctx.theme) applyDocumentTheme(ctx.theme);
108108
if (ctx.styles?.variables) applyHostStyleVariables(ctx.styles.variables);
109109
if (ctx.styles?.css?.fonts) applyHostFonts(ctx.styles.css.fonts);

src/mcp/resources/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import { ServerResource, ServerResourceTemplate } from "../resource";
1313
import { trackGA4 } from "../../track";
1414
import { crashlytics_issues } from "./guides/crashlytics_issues";
1515
import { crashlytics_reports } from "./guides/crashlytics_reports";
16-
import { login_ui } from "./login_ui";
16+
// import { login_ui } from "./login_ui";
1717
import { update_environment_ui } from "./update_environment_ui";
18-
import { deploy_ui } from "./deploy_ui";
19-
import { init_ui } from "./init_ui";
18+
// import { deploy_ui } from "./deploy_ui";
19+
// import { init_ui } from "./init_ui";
2020

2121
export const resources = [
2222
app_id,
@@ -29,10 +29,10 @@ export const resources = [
2929
init_firestore_rules,
3030
init_auth,
3131
init_hosting,
32-
login_ui,
32+
// login_ui,
3333
update_environment_ui,
34-
deploy_ui,
35-
init_ui,
34+
// deploy_ui,
35+
// init_ui,
3636
];
3737

3838
export const resourceTemplates = [docs];

0 commit comments

Comments
 (0)