Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/mcp/resources/guides/init_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ export const init_auth = resource(
text: `
### Configure Firebase Authentication

- **Permission Required**: Request developer permission before implementing authentication features
- **Provider Setup**: Guide developers to enable authentication providers (Email/Password, Google Sign-in, etc.) in the [Firebase Auth Console](https://console.firebase.google.com/). Ask developers to confirm which authentication method they selected before proceeding to implementation.
- **Implementation**: Create sign-up and login pages using Firebase Authentication.
- **Security Rules**: Update Firestore security rules to ensure only authenticated users can access their own data
- **Testing**: Recommend developers test the complete sign-up and sign-in flow to verify authentication functionality
- **Next Steps**: Recommend deploying the application to production once authentication is verified and working properly
**Permission & Setup:**
- Request developer permission before implementing sign-up and login features
- Guide developers to enable authentication providers (Email/Password, Google Sign-in, etc.) in the [Firebase Auth Console](https://console.firebase.google.com/)
- Ask developers to confirm which authentication method they selected before proceeding

**Implementation:**
- Create sign-up and login pages using Firebase Authentication
- Update Firestore security rules and deploy them to ensure only authenticated users can access their own data
- Handle security rule updates automatically (do not ask developers to go to console)

**Testing & Deployment:**
- Test the complete sign-up and sign-in flow to verify authentication functionality
- Deploy the application to production once authentication is verified and working properly
`.trim(),
},
],
Expand Down
23 changes: 16 additions & 7 deletions src/mcp/resources/guides/init_firestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ export const init_firestore = resource(
text: `
### Setup Firestore Database

**Database Setup:**
- Set up Firebase Firestore as the primary database for the application
- Implement client code for basic CRUD operations for the application
- **Important**: Use the \`firebase deploy\` command to provision the database automatically. **Do not ask developers to go to the console to do it**.
- **Environment**: Use production environment directly - avoid emulator for initial setup
- **Verification**: Guide developers to verify database creation at the [Firebase Console](https://console.firebase.google.com/) by clicking on the "Firestore Database" tab in the left navigation to confirm the database is created.
- **Testing**: Recommend developers test their application and verify data appears correctly in the console. Ask developers to confirm they can see their test data in the console before proceeding to the next step.
- **Security**: Recommend implementing authentication if the application handles sensitive user data. Guide users to navigate to the "Firestore Database" section and click on the "Rules" tab to view and configure their security rules.
- **Security Warning**: Alert developers against making Firestore security rules public (allowing read/write without authentication)
- Implement client code for basic CRUD operations using Firestore SDK
- Run \`firebase deploy\` command to provision the database automatically
- Use production environment directly (avoid emulator for initial setup)

**Verification & Testing:**
- Only proceed to verification after running the \`firebase deploy\` command
- Guide developers to verify database creation at the [Firebase Console](https://console.firebase.google.com/)
- Navigate to "Firestore Database" in the left navigation to confirm database creation
Comment on lines +27 to +28
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The instructions for verification are split into two lines, which creates some ambiguity. Line 27 says to 'Guide developers', while line 28 begins with 'Navigate to...'. It's not perfectly clear whether the agent is supposed to perform the navigation or if this is part of the guidance for the developer. Combining these into a single, unambiguous instruction would be better for clarity.

Suggested change
- Guide developers to verify database creation at the [Firebase Console](https://console.firebase.google.com/)
- Navigate to "Firestore Database" in the left navigation to confirm database creation
- Guide developers to verify database creation at the [Firebase Console](https://console.firebase.google.com/) by navigating to "Firestore Database" in the left navigation to confirm database creation

- Ask developers to test their application and confirm they can see test data in the console
- Only proceed to the next step after confirmation

**Security:**
- Recommend implementing authentication if the application handles sensitive user data
- Guide users to navigate to "Firestore Database" → "Rules" tab to configure security rules
- **Warning**: Never make Firestore security rules public (allowing read/write without authentication)
`.trim(),
},
],
Expand Down
10 changes: 7 additions & 3 deletions src/mcp/resources/guides/init_hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ export const init_hosting = resource(
text: `
### Configure Firebase Hosting

**When to Deploy:**
- Introduce Firebase Hosting when developers are ready to deploy their application to production
- **Alternative**: Developers can deploy later using the \`/deploy\` command
- **Permission Required**: Request developer permission before implementing Firebase Hosting
- **Deployment**: Configure Firebase Hosting and deploy the application to production
- Alternative: Developers can deploy later using the \`/deploy\` command

**Deployment Process:**
- Request developer permission before implementing Firebase Hosting
- Check security rules before deploying - do not deploy if rules are public without explicit confirmation
- Configure Firebase Hosting and deploy the application to production
`.trim(),
},
],
Expand Down
Loading