-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[MCP] Support init for database #8584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little lopsided to have this as our second init
when we don't otherwise have RTDB tools, but 🤷 . Let's target Firestore next.
rulesFilename: z | ||
.string() | ||
.default("database.rules.json") | ||
.describe("The file to use for Realtime Database Security Rules."), | ||
rules: z | ||
.string() | ||
.default(DEFAULT_RULES) | ||
.describe("The security rules to use for Realtime Database Security Rules."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make both of these .optional()
in addition to having defaults defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Only doing it because I already got familiar with its init code~ Firestore and storage will come very soon. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8584 +/- ##
==========================================
- Coverage 51.03% 51.01% -0.03%
==========================================
Files 426 426
Lines 30637 30664 +27
Branches 6286 6292 +6
==========================================
+ Hits 15636 15642 +6
- Misses 13607 13628 +21
Partials 1394 1394 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Mostly refactors to make existing RTDB init flow fit into the MCP flow.
Init from an empty folder
firebase init database