You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mcp/prompts/core/init.ts
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ import { prompt } from "../../prompt";
5
5
exportconstinit=prompt(
6
6
{
7
7
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.",
9
9
annotations: {
10
10
title: "Initialize Firebase",
11
11
},
@@ -48,12 +48,8 @@ Follow the steps below taking note of any user instructions provided above.
48
48
49
49
1. If there is no active user, use the \`firebase_login\` tool to help them sign in.
50
50
- 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.
57
53
- 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.
58
54
2. Firebase AI Logic: Add AI features such as chat experiences, multimodal prompts, image generation and editing (via nano banana), etc.
59
55
- 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.
90
86
'''
91
87
8. Read the guide for the appropriate services and follow the instructions. If no guides match the user's need, inform the user.
92
88
- 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.
94
90
- [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.
- Test the complete sign-up and sign-in flow to verify authentication functionality
30
30
- 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.
Copy file name to clipboardExpand all lines: src/mcp/resources/guides/init_firestore_rules.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ ${config.readProjectFile("firestore.rules", { fallback: "<FILE DOES NOT EXIST>"
31
31
32
32
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.
33
33
34
+
**Next Steps:**
35
+
- **App Deployment**: Deploy the app to production after Security Rules are verified to be working properly.
0 commit comments