From ef41fc58b1dda4420cf90a6069de4b34dde60cb7 Mon Sep 17 00:00:00 2001 From: Viswanathan Munisamy Date: Tue, 14 Oct 2025 09:55:20 -0700 Subject: [PATCH 1/4] Skip crashlytics from doing a server enablement check. --- src/mcp/util.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mcp/util.ts b/src/mcp/util.ts index 92c3f382cdd..71ddf2b3616 100644 --- a/src/mcp/util.ts +++ b/src/mcp/util.ts @@ -77,6 +77,9 @@ const SERVER_FEATURE_APIS: Record = { database: realtimeOrigin(), }; +// List of features for which we want to skip the integration check +const featureSkipServerCheck = ["crashlytics"]; + /** * Detects whether an MCP feature is active in the current project root. Relies first on * `firebase.json` configuration, but falls back to API checks. @@ -86,6 +89,11 @@ export async function checkFeatureActive( projectId?: string, options?: any, ): Promise { + + // TODO(visum) Replace this short term hack with a public API to verify integration + // before showing tools. + // If the feature is a part of skip check, feature is active always! + if (featureSkipServerCheck.includes(feature)) return true; // if the feature is configured in firebase.json, it's active if (feature in (options?.config?.data || {})) return true; // if the feature's api is active in the project, it's active From c40ae3c9b1618bc83e201b485b7d0159e560e02b Mon Sep 17 00:00:00 2001 From: Visu Date: Tue, 14 Oct 2025 10:00:11 -0700 Subject: [PATCH 2/4] Update src/mcp/util.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/mcp/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcp/util.ts b/src/mcp/util.ts index 71ddf2b3616..4d74d1bc3e4 100644 --- a/src/mcp/util.ts +++ b/src/mcp/util.ts @@ -78,7 +78,7 @@ const SERVER_FEATURE_APIS: Record = { }; // List of features for which we want to skip the integration check -const featureSkipServerCheck = ["crashlytics"]; +const featureSkipServerCheck = new Set(["crashlytics"]); /** * Detects whether an MCP feature is active in the current project root. Relies first on From ab829ed692e27faf0946989aa4d31a52b451c7ef Mon Sep 17 00:00:00 2001 From: Visu Date: Tue, 14 Oct 2025 10:00:18 -0700 Subject: [PATCH 3/4] Update src/mcp/util.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/mcp/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcp/util.ts b/src/mcp/util.ts index 4d74d1bc3e4..a661e3d9232 100644 --- a/src/mcp/util.ts +++ b/src/mcp/util.ts @@ -93,7 +93,7 @@ export async function checkFeatureActive( // TODO(visum) Replace this short term hack with a public API to verify integration // before showing tools. // If the feature is a part of skip check, feature is active always! - if (featureSkipServerCheck.includes(feature)) return true; + if (featureSkipServerCheck.has(feature)) return true; // if the feature is configured in firebase.json, it's active if (feature in (options?.config?.data || {})) return true; // if the feature's api is active in the project, it's active From a8856f4f1eb2cb6d379ca5898e5857b86c9c9494 Mon Sep 17 00:00:00 2001 From: Viswanathan Munisamy Date: Tue, 14 Oct 2025 10:05:30 -0700 Subject: [PATCH 4/4] Fix the linter/prettier needs. --- src/mcp/util.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mcp/util.ts b/src/mcp/util.ts index a661e3d9232..48220d9b8a7 100644 --- a/src/mcp/util.ts +++ b/src/mcp/util.ts @@ -89,7 +89,6 @@ export async function checkFeatureActive( projectId?: string, options?: any, ): Promise { - // TODO(visum) Replace this short term hack with a public API to verify integration // before showing tools. // If the feature is a part of skip check, feature is active always!