feat(mcp): Add support for setting up iOS projects #9332
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change introduces the capability for the MCP agent to guide users through setting up Firebase AI Logic in native iOS/Swift projects.
Description
Previously, the
initcommand explicitly excluded iOS from the Firebase AI Logic setup flow. This update removes that limitation and provides the necessary prompts, guides, and safety protocols to offer a complete and safe setup experience for iOS developers.Key changes include:
initPrompt: The maininitprompt (src/mcp/prompts/core/init.ts) has been modified to recognize iOS as a supported platform for the AI Logic feature.src/mcp/resources/guides/init_ai.ts) has been significantly updated with iOS-specific instructions:GoogleService-Info.plistand guide the user to place it in their Xcode project..xcodeprojfile for thefirebase-ios-sdk. If the SDK is missing, the agent is strictly forbidden from modifying the project file and will instead provide the user with exact, step-by-step manual instructions for adding the dependency via Swift Package Manager in Xcode.GEMINI.mdto ensure that all agents correctly escape backticks in tool parameters, improving the reliability of future automated changes.