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
feat(mcp): Adds MCP resources and a read_resources tool. (#9149)
- Adds `/firebase:init` prompt with placeholder guidance.
- Resources are defined in `src/mcp/resources`.
- Prompts and other output can "link" to resources by saying to use the `read_resources` tool with a particular URI.
- Consolidates context into a single McpContext type.
- Some additional refactoring and cleanup.
Your goal is to help the user setup Firebase services in this workspace. Firebase is a large platform with many potential uses, so you will:
30
+
31
+
1. Detect which Firebase services are already in use in the workspace, if any
32
+
2. Determine which new Firebase services will help the user build their app
33
+
3. Provision and configure the services requested by the user
34
+
35
+
## Workspace Info
36
+
37
+
Use this information to determine which Firebase services the user is already using (if any).
38
+
39
+
Workspace platform: ${[Platform.NONE,Platform.MULTIPLE].includes(platform) ? "<UNABLE TO DETECT>" : platform}
40
+
Active user: ${accountEmail||"<NONE>"}
41
+
Active project: ${projectId||"<NONE>"}
42
+
43
+
Contents of \`firebase.json\` config file:
44
+
45
+
\`\`\`json
46
+
${config.readProjectFile("firebase.json",{fallback: "<FILE DOES NOT EXIST>"})}
47
+
\`\`\`
48
+
49
+
## User Instructions
50
+
51
+
${prompt||"<the user didn't supply specific instructions>"}
52
+
53
+
## Steps
54
+
55
+
Follow the steps below taking note of any user instructions provided above.
56
+
57
+
1. If there is no active user, use the \`firebase_login\` tool to help them sign in.
58
+
2. Determine which of the services listed below are the best match for the user's needs based on their instructions or by asking them.
59
+
3. Read the guide for the appropriate services and follow the instructions. If no guides match the user's need, inform the user.
60
+
61
+
## Available Services
62
+
63
+
The following Firebase services are available to be configured. Use the Firebase \`read_resources\` tool to load their instructions for further guidance.
64
+
65
+
- [Backend Services](firebase://guides/init/backend): Read this resource to setup backend services for the user such as user authentication, database, or cloud file storage.
66
+
- [GenAI Services](firebase://guides/init/ai): Read this resource to setup GenAI services for the user such as building agents, LLM usage, unstructured data analysis, image editing, video generation, etc.
67
+
68
+
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.
0 commit comments