Skip to content

Commit b6f7436

Browse files
committed
Merge remote-tracking branch 'origin/master' into fz/fdc-no-login-init
2 parents 2dd41c8 + d00e11f commit b6f7436

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/mcp/prompts/core/init.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { prompt } from "../../prompt";
55
export const init = prompt(
66
{
77
name: "init",
8-
description: "Use this command to setup Firebase for the current workspace.",
8+
description: "Use this command to set up Firebase services, like backend and AI features.",
99
annotations: {
1010
title: "Initialize Firebase",
1111
},
@@ -48,12 +48,8 @@ Follow the steps below taking note of any user instructions provided above.
4848
4949
1. If there is no active user, use the \`firebase_login\` tool to help them sign in.
5050
- If you run into issues logging the user in, suggest that they run \`npx firebase-tools login --reauth\` in a separate terminal
51-
2.1 If the user supplied specific instructions, determine which of the services listed below are the best match for the user's needs. Skip to 2.2 if they didn't provide a prompt
52-
1. Backend Services: Backend services for the user such as user authentication, database, or hosting.
53-
2. Firebase AI Logic: Add AI features such as chat experiences, multimodal prompts, image generation and editing (via nano banana), etc.
54-
- UNAVAILABLE SERVICES: Analytics, Remote Config (feature flagging), A/B testing, Crashlytics (crash reporting), and Cloud Messaging (push notifications) are not yet available for setup via this command.
55-
2.2 Start by listing out the existing init options that are available to the user. Ask the user which set of services they would like to add to their app. Always enumerate them and list the options out explicitly for the user.
56-
1. Backend Services: Backend services for the user such as user authentication, database, or hosting.
51+
2.1 Start by listing out the existing init options that are available to the user. Ask the user which set of services they would like to add to their app. Always enumerate them and list the options out explicitly for the user.
52+
1. Backend Services: Backend services for the app, such as setting up a database, adding a user-authentication sign up and login page, and deploying a web app to a production URL.
5753
- IMPORTANT: The backend setup guide is for web apps only. If the user requests backend setup for a mobile app (iOS, Android, or Flutter), inform them that this is not supported and do not use the backend setup guide. You can still assist with other requests.
5854
2. Firebase AI Logic: Add AI features such as chat experiences, multimodal prompts, image generation and editing (via nano banana), etc.
5955
- IMPORTANT: The Firebase AI Logic setup guide is for web, flutter, and android apps only. If the user requests firebase setup for unsupported platforms (iOS, Unity, or anything else), inform them that this is not supported and direct the user to Firebase Docs to learn how to set up AI Logic for their application (share this link with the user https://firebase.google.com/docs/ai-logic/get-started?api=dev). You can still assist with other requests.
@@ -90,7 +86,7 @@ Follow the steps below taking note of any user instructions provided above.
9086
'''
9187
8. Read the guide for the appropriate services and follow the instructions. If no guides match the user's need, inform the user.
9288
- Use the Firebase \`read_resources\` tool to load the instructions for the service the developer chose in step 2 of this guide
93-
- [Backend Services](firebase://guides/init/backend): Read this resource to setup backend services for the user such as user authentication, database, or hosting.
89+
- [Backend Services](firebase://guides/init/backend): Read this resource to set up backend services for the app, such as setting up a database, adding a user-authentication sign up and login page, and deploying a web app to a production URL.
9490
- [Firebase AI Logic](firebase://guides/init/ai): Read this resource to add Gemini-powered AI features such as chat experiences, multimodal prompts, image generation, image editing (via nano banana), etc.
9591
`.trim(),
9692
},

src/mcp/resources/guides/init_auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export const init_auth = resource(
2828
**Testing & Deployment:**
2929
- Test the complete sign-up and sign-in flow to verify authentication functionality
3030
- Deploy the application to production once authentication is verified and working properly
31+
32+
**Next Steps:**
33+
- **Security Rules**: If an app uses *Cloud Firestore database*, *Cloud Storage for Firebase*, or *Firebase Realtime Database*, then please update user-based Security Rules that are structured according to the app's specific requirements.
34+
- **App Deployment**: Deploy the app to production after Security Rules are verified to be working properly.
3135
`.trim(),
3236
},
3337
],

src/mcp/resources/guides/init_firestore_rules.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ ${config.readProjectFile("firestore.rules", { fallback: "<FILE DOES NOT EXIST>"
3131
3232
For database entities that neatly fall into the "personal" and "public categories, you can use the personalData and publicData rules. Use the following firestore.rules file, and add a comment above 'personalData' and 'publicData' to note what entities apply to each rule.
3333
34+
**Next Steps:**
35+
- **App Deployment**: Deploy the app to production after Security Rules are verified to be working properly.
3436
\`\`\`
3537
rules_version = '2';
3638

0 commit comments

Comments
 (0)