feat: add MCP prompts for common GA4 workflows (closes #52)#144
Open
ZLeventer wants to merge 1 commit intogoogleanalytics:mainfrom
Open
feat: add MCP prompts for common GA4 workflows (closes #52)#144ZLeventer wants to merge 1 commit intogoogleanalytics:mainfrom
ZLeventer wants to merge 1 commit intogoogleanalytics:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds MCP Prompts to the server, closing #52. Prompts are exposed as slash commands in Gemini CLI and as pre-built prompts in Claude Desktop and other MCP clients.
Prompts added
traffic-summarytop-pagesacquisition-overviewcompare-periodscampaign-performancerealtime-overviewrun_realtime_reportcalls)All prompts accept
property_id(required) and most accept an optionaldate_rangeargument.Implementation
analytics_mcp/prompts.py(new) — prompt definitions (mcp_types.Promptlist) and text builders. Each builder returns aGetPromptResultwith auser-role message that instructs the model which tools to call and how to present results.analytics_mcp/coordinator.py— adds@app.list_prompts()and@app.get_prompt()handlers that delegate toprompts_module.tests/prompts_test.py(new) — 16 unit tests coveringlist_promptsandget_promptfor every prompt, including default argument handling and unknown prompt error.README.md— new Prompts section with a table of all prompts and their arguments.Tests