Skip to content

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 14, 2026

Summary

  • Add Google Analytics MCP integration to aidevops framework
  • MCP is disabled by default and enabled only when the google-analytics subagent is loaded
  • Subagent available from seo.md, marketing.md, and sales.md main agents

Changes

  • New file: .agent/services/analytics/google-analytics.md - comprehensive subagent with GA4 API documentation
  • Updated: configs/mcp-servers-config.json.txt - added analytics-mcp config (disabled by default)
  • Updated: .agent/seo.md - added google-analytics to subagents list and MCP tools reference
  • Updated: .agent/marketing.md - added google-analytics to subagents list and MCP tools reference
  • Updated: .agent/sales.md - added google-analytics to subagents list and MCP tools reference
  • Updated: .agent/AGENTS.md - added services/analytics/ to subagent folders table

MCP Details

Usage

The MCP is loaded automatically when any of these agents reference the google-analytics subagent:

  • SEO agent: for traffic analysis and search performance correlation
  • Marketing agent: for campaign performance and conversion tracking
  • Sales agent: for e-commerce analytics and lead generation tracking

Testing

  • Local linting passed (ShellCheck, Secretlint)
  • Preflight checks passed

Summary by CodeRabbit

Release Notes

  • New Features

    • Integrated Google Analytics (GA4) capabilities across marketing, sales, and SEO agents for website traffic analysis, conversion tracking, and real-time reporting.
  • Documentation

    • Added comprehensive Google Analytics integration guide with MCP tools reference and configuration details.

✏️ Tip: You can customize this high-level summary in your review settings.

- Add google-analytics.md subagent in services/analytics/
- Add analytics-mcp config to mcp-servers-config.json.txt (disabled by default)
- Update seo.md, marketing.md, sales.md to reference google-analytics subagent
- Update AGENTS.md subagent folders table with services/analytics/

The MCP is disabled globally and enabled per-agent via tools: analytics_mcp_*: true
when the google-analytics subagent is loaded by seo, marketing, or sales agents.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 15 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 40bda49 and 38c65cd.

📒 Files selected for processing (3)
  • .agent/marketing.md
  • .agent/sales.md
  • .agent/services/analytics/google-analytics.md

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

This pull request introduces a new Google Analytics MCP server integration into the AI-DevOps framework. The changes add a new services/analytics/ service directory with comprehensive GA4 documentation, register google-analytics as a subagent across marketing, sales, and SEO agent configurations, and configure the analytics-mcp server in the MCP servers configuration file.

Changes

Cohort / File(s) Summary
Agent Configuration Updates
.agent/AGENTS.md, .agent/marketing.md, .agent/sales.md, .agent/seo.md
Registers google-analytics subagent across multiple agent files; updates AGENTS.md with new services/analytics/ folder entry and planning references; adds GA4-related tasks and MCP tool categories (Account Info, Reports, Real-time) to each agent
New Analytics Documentation
.agent/services/analytics/google-analytics.md
Introduces comprehensive GA4 integration guide (+418 lines) covering prerequisites, API setup, ADC credential configuration, Claude Desktop/OpenCode setup, per-agent enablement, account/property management, standard/custom reporting, real-time analytics, and troubleshooting
MCP Server Configuration
configs/mcp-servers-config.json.txt
Adds new analytics-mcp server entry with pipx command, environment variables (GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_PROJECT_ID), and descriptive metadata

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

📊 Analytics awoken, GA4 reports now flowing,
Through marketing, sales, and SEO, the data streams going,
With MCP tools singing of metrics so true,
Zero tech debt maintained—our framework stays new! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly and specifically describes the main change: adding Google Analytics MCP integration to the framework.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates Google Analytics 4 (GA4) capabilities into the aidevops framework through a new Multi-Channel Platform (MCP). This integration allows various AI agents, particularly those focused on SEO, marketing, and sales, to programmatically access and analyze website analytics data. The design ensures that the GA4 MCP is only enabled when relevant agents require its functionality, optimizing resource utilization while expanding the framework's data analysis capabilities.

Highlights

  • New Google Analytics MCP Integration: Introduced a new Google Analytics Multi-Channel Platform (MCP) integration to the aidevops framework, enabling AI agents to interact with Google Analytics 4 (GA4) data.
  • Conditional MCP Activation: The Google Analytics MCP is disabled by default and is only activated when the google-analytics subagent is loaded by main agents.
  • Subagent Availability: The google-analytics subagent is now accessible from the seo.md, marketing.md, and sales.md main agents, allowing them to leverage GA4 data for their specific tasks.
  • Comprehensive Documentation: A new file, .agent/services/analytics/google-analytics.md, has been added, providing detailed documentation for the GA4 API integration, including installation, configuration, available tools, and usage examples.
  • Configuration Updates: The configs/mcp-servers-config.json.txt file has been updated to include the analytics-mcp configuration, and AGENTS.md now lists the new services/analytics/ subagent folder.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 261 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Wed Jan 14 19:54:49 UTC 2026: Code review monitoring started
Wed Jan 14 19:54:50 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 261
Wed Jan 14 19:54:50 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Wed Jan 14 19:54:52 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 261
  • VULNERABILITIES: 0

Generated on: Wed Jan 14 19:55:32 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a Google Analytics MCP integration, allowing agents for SEO, marketing, and sales to access GA4 data. The changes include a new subagent definition, updates to existing agent files to incorporate the new capabilities, and a new MCP server configuration. The documentation is comprehensive. My review focuses on ensuring consistency between the implementation, documentation, and the stated goals of the pull request. I've identified a couple of minor inconsistencies in the configuration and documentation that should be addressed for clarity and correctness.

Comment on lines 104 to 106
### Claude Desktop Configuration

Add to Claude Desktop MCP settings (`~/.gemini/settings.json` for Gemini):

Choose a reason for hiding this comment

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

medium

The heading "Claude Desktop Configuration" appears to conflict with the configuration path provided, which is for "Gemini" (~/.gemini/settings.json). This could be confusing for users. To improve clarity, please update the heading and description to consistently refer to Gemini, or clarify the relationship between Claude Desktop and Gemini if they are related.

Suggested change
### Claude Desktop Configuration
Add to Claude Desktop MCP settings (`~/.gemini/settings.json` for Gemini):
### Gemini Desktop Configuration
Add to Gemini Desktop MCP settings (`~/.gemini/settings.json`):

Comment on lines +69 to 77
"analytics-mcp": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "YOUR_CREDENTIALS_JSON_PATH_HERE",
"GOOGLE_PROJECT_ID": "YOUR_GCP_PROJECT_ID_HERE"
},
"description": "Google Analytics MCP server for GA4 reporting, account management, and real-time analytics. Requires pipx and Google Cloud ADC setup."
}

Choose a reason for hiding this comment

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

medium

The pull request description states that the analytics-mcp is disabled by default. However, the "enabled": false property is missing from this configuration. To align with the stated intent and the example provided in the .agent/services/analytics/google-analytics.md documentation, please add this property to the configuration.

    "analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "YOUR_CREDENTIALS_JSON_PATH_HERE",
        "GOOGLE_PROJECT_ID": "YOUR_GCP_PROJECT_ID_HERE"
      },
      "enabled": false,
      "description": "Google Analytics MCP server for GA4 reporting, account management, and real-time analytics. Requires pipx and Google Cloud ADC setup."
    }

@augmentcode
Copy link

augmentcode bot commented Jan 14, 2026

🤖 Augment PR Summary

Summary: Adds a Google Analytics (GA4) MCP integration to the aidevops agent framework.

Changes:

  • Introduces .agent/services/analytics/google-analytics.md as a new subagent documenting GA4 account/property access, reporting, and real-time queries.
  • Updates .agent/seo.md, .agent/marketing.md, and .agent/sales.md to include the google-analytics subagent and reference its MCP tools.
  • Extends .agent/AGENTS.md to register the new services/analytics/ subagent folder and add a quick link for website analytics.
  • Adds an analytics-mcp entry to configs/mcp-servers-config.json.txt, disabled by default, configured to run via pipx.

Technical Notes: The integration relies on Google Cloud Application Default Credentials (ADC) via GOOGLE_APPLICATION_CREDENTIALS and a project id, and is intended to be loaded only when the GA subagent is invoked (token-efficient MCP usage).

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

glob: true
grep: true
webfetch: true
analytics_mcp_*: true
Copy link

Choose a reason for hiding this comment

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

The frontmatter enables analytics_mcp_*, but the MCP server/config name in this PR is analytics-mcp; if tool filtering keys off the MCP name (per mcp-name_* guidance), this mismatch could prevent the GA tools from being enabled. Consider aligning the prefix/tool naming consistently across this file (also applies to the per-agent enablement note below and the tool lists in main agents).

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎


### Claude Desktop Configuration

Add to Claude Desktop MCP settings (`~/.gemini/settings.json` for Gemini):
Copy link

Choose a reason for hiding this comment

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

This is labeled as Claude Desktop config but points to ~/.gemini/settings.json; elsewhere in the repo Claude Desktop uses ~/Library/Application Support/Claude/claude_desktop_config.json and Gemini CLI uses ~/.gemini/settings.json. Consider separating/correcting these paths to avoid users configuring the wrong client.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Fix all issues with AI agents
In @.agent/marketing.md:
- Around line 62-68: Update the Google Analytics MCP Tools table in marketing.md
to include the missing tool by adding `list_google_ads_links` to the Account
Info cell so it reads: Account Info includes `get_account_summaries`,
`get_property_details`, `list_google_ads_links`; this aligns the marketing docs
with the google-analytics.md subagent reference.

In @.agent/services/analytics/google-analytics.md:
- Around line 77-80: The fenced code block starting with "```text" that displays
"Credentials saved to file: [PATH_TO_CREDENTIALS_JSON]" lacks a blank line
before it; update the markdown in google-analytics.md so there is an empty line
immediately before the opening ```text fence (i.e., separate the preceding
paragraph from the code block), ensuring the fenced code block is surrounded by
blank lines to satisfy markdown best practices.
- Around line 46-75: The ADC setup only includes
https://www.googleapis.com/auth/analytics.readonly which is insufficient for
some Admin API calls; update the gcloud auth application-default login commands
in .agent/services/analytics/google-analytics.md (the two occurrences of the
gcloud command) to add the
https://www.googleapis.com/auth/analytics.manage.users.readonly scope to the
--scopes list, or alternatively add a short note next to those gcloud commands
telling users to verify method-level scopes in the Google Analytics Admin API
docs if they need different permissions.

In `@configs/mcp-servers-config.json.txt`:
- Around line 69-77: The config entry "analytics-mcp" uses the community package
name; update the args in that block so pipx runs the official package by
replacing ["run", "analytics-mcp"] with ["run", "google-analytics-mcp"] (leave
command "pipx" and env keys like GOOGLE_APPLICATION_CREDENTIALS and
GOOGLE_PROJECT_ID intact), and verify the description reflects the official
GitHub package (github.com/googleanalytics/google-analytics-mcp).
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 866ac83 and 40bda49.

📒 Files selected for processing (6)
  • .agent/AGENTS.md
  • .agent/marketing.md
  • .agent/sales.md
  • .agent/seo.md
  • .agent/services/analytics/google-analytics.md
  • configs/mcp-servers-config.json.txt
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-01-06T15:57:56.027Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.027Z
Learning: Applies to **/AGENTS.md : Use progressive disclosure in AGENTS.md with pointers to subagents rather than inline content

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:42.033Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Reference AGENTS.md (authoritative) instead of AGENT.md for AI assistant guidance

Applied to files:

  • .agent/AGENTS.md
🪛 GitHub Check: Codacy Static Code Analysis
.agent/services/analytics/google-analytics.md

[notice] 78-78: .agent/services/analytics/google-analytics.md#L78
Fenced code blocks should be surrounded by blank lines

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Audit Log
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (15)
.agent/services/analytics/google-analytics.md (2)

1-42: Excellent documentation structure and comprehensive quick reference.

The front matter correctly configures analytics_mcp_*: true to enable Google Analytics MCP tools when this subagent is loaded. The quick reference provides clear environment setup and tool categorization.


82-102: Clear per-agent enablement explanation.

Line 102 effectively explains the token optimization strategy: MCP is disabled globally and enabled per-agent via the analytics_mcp_*: true flag in the subagent's tools section. This aligns with the PR objectives.

.agent/AGENTS.md (2)

401-401: Well-integrated analytics service folder entry.

The new services/analytics/ entry follows the established table pattern with clear description and subagent reference. Consistent with existing service folder entries.


483-483: Appropriate progressive disclosure reference.

The Website analytics entry provides a clear pointer to the google-analytics.md subagent with helpful context about GA4 capabilities. Follows the learning about using progressive disclosure in AGENTS.md.

Based on learnings about using progressive disclosure in AGENTS.md with pointers to subagents.

.agent/sales.md (4)

23-24: Logical addition of google-analytics subagent for sales analytics.

Adding google-analytics under the Analytics section makes sense for e-commerce tracking and conversion analysis mentioned later in the file.


44-45: Consistent path references to service documentation.

Both CRM and analytics references now use the same services/ prefix pattern (without .agent/), maintaining consistency in documentation cross-references.


61-67: Well-structured Google Analytics MCP tools table.

The table follows the same categorization pattern as the FluentCRM tools above, making it easy for users to understand available GA4 capabilities when the google-analytics subagent is loaded.


76-76: Relevant GA4 task addition for sales operations.

E-commerce and conversion analytics is a natural fit for the sales agent's typical tasks, complementing the CRM and accounting operations.

.agent/seo.md (4)

15-15: Strategic addition of google-analytics for SEO traffic analysis.

Adding GA4 integration to the SEO agent enables correlation between search performance (GSC) and on-site behavior (GA4), which is valuable for comprehensive SEO analysis.


27-28: Updated tool references include Google Analytics.

The Quick Reference section now lists Google Analytics alongside other SEO tools, and correctly notes the MCP integration for comprehensive data access.


31-42: Clear cross-folder subagent organization.

The updated section header explicitly mentions both seo/ and services/analytics/ folders, and the google-analytics.md entry clearly describes GA4 capabilities and points to the correct location.


89-92: Relevant GA4 MCP commands for SEO workflows.

The added Google Analytics commands (get_account_summaries, run_report, run_realtime_report) are the most relevant for SEO traffic analysis. The conditional note "(when google-analytics subagent loaded)" correctly indicates when these tools are available.

.agent/marketing.md (3)

27-27: LGTM - Subagent registration looks good.

The google-analytics subagent is correctly added to the Analytics section. The ordering is consistent with the rest of the file.


48-48: LGTM - Related Agents reference is properly formatted.

The GA4 document reference follows the established pattern and provides a clear description of its purpose.


77-77: LGTM - Typical Tasks addition is appropriate.

Adding "Website traffic and conversion analytics (GA4)" to the task list accurately reflects the new capability provided by the Google Analytics subagent.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment on lines +46 to +75
## Installation

### Prerequisites

1. **Python with pipx**: Install pipx for isolated Python package management
2. **Google Cloud Project**: With Analytics APIs enabled
3. **Google Analytics Access**: User credentials with GA4 property access

### Enable Google Cloud APIs

Enable these APIs in your Google Cloud project:

- [Google Analytics Admin API](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com)
- [Google Analytics Data API](https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com)

### Configure Credentials

Set up Application Default Credentials (ADC) with the analytics readonly scope:

```bash
# Using OAuth desktop/web client
gcloud auth application-default login \
--scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform \
--client-id-file=YOUR_CLIENT_JSON_FILE

# Or using service account impersonation
gcloud auth application-default login \
--impersonate-service-account=SERVICE_ACCOUNT_EMAIL \
--scopes=https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Google Analytics Data API v1 Admin API v1 OAuth scopes read-only access requirements

💡 Result:

Short answer — read-only OAuth scopes you can use:

Notes: certain Admin methods explicitly require analytics.edit or analytics.manage.users (not just readonly) — check the method-level docs before calling. [3][4]

Sources:
[1] Google Analytics Data API overview.
[2] OAuth 2.0 scopes for Google APIs (Analytics scopes).
[3] Google Analytics Admin API overview / package docs.
[4] Admin API method example (accounts.accessBindings.get) showing analytics.manage.users.readonly requirement.
[5] Admin API package (v1beta/v1alpha) showing analytics.readonly vs analytics.edit for list/get methods.


🏁 Script executed:

# Search for analytics-mcp references in the codebase
rg "analytics-mcp" --type md --type txt --type py --type js

# Check if there's any GA4 operations documentation
fd "google-analytics" --type f | head -20
cat .agent/services/analytics/google-analytics.md | head -100

Repository: marcusquinn/aidevops

Length of output: 3786


Update ADC setup instructions to include all required OAuth scopes.

The analytics.readonly scope is insufficient for all Google Analytics Admin API operations. According to Google's API documentation, some Admin API endpoints—particularly those returning user/access information—require the analytics.manage.users.readonly scope. The current instructions should either:

Update the gcloud commands to include all necessary scopes:

Recommended scope configuration
# Using OAuth desktop/web client
gcloud auth application-default login \
  --scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/cloud-platform \
  --client-id-file=YOUR_CLIENT_JSON_FILE

# Or using service account impersonation
gcloud auth application-default login \
  --impersonate-service-account=SERVICE_ACCOUNT_EMAIL \
  --scopes=https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/cloud-platform
🤖 Prompt for AI Agents
In @.agent/services/analytics/google-analytics.md around lines 46 - 75, The ADC
setup only includes https://www.googleapis.com/auth/analytics.readonly which is
insufficient for some Admin API calls; update the gcloud auth
application-default login commands in
.agent/services/analytics/google-analytics.md (the two occurrences of the gcloud
command) to add the
https://www.googleapis.com/auth/analytics.manage.users.readonly scope to the
--scopes list, or alternatively add a short note next to those gcloud commands
telling users to verify method-level scopes in the Google Analytics Admin API
docs if they need different permissions.

Comment on lines +69 to 77
"analytics-mcp": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "YOUR_CREDENTIALS_JSON_PATH_HERE",
"GOOGLE_PROJECT_ID": "YOUR_GCP_PROJECT_ID_HERE"
},
"description": "Google Analytics MCP server for GA4 reporting, account management, and real-time analytics. Requires pipx and Google Cloud ADC setup."
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify analytics-mcp package exists on PyPI
curl -s https://pypi.org/pypi/analytics-mcp/json | jq -r '.info | "Package: \(.name)\nVersion: \(.version)\nSummary: \(.summary)"'

echo "---"

# Check package author and homepage
curl -s https://pypi.org/pypi/analytics-mcp/json | jq -r '.info | "Author: \(.author)\nHome Page: \(.home_page)"'

Repository: marcusquinn/aidevops

Length of output: 175


🌐 Web query:

analytics-mcp PyPI package Google Analytics official

💡 Result:

Short answer: analytics-mcp on PyPI is a community/experimental MCP server that wraps the Google Analytics APIs — it is not an official Google-published package. See the analytics-mcp PyPI project page for the package description and release history [1], and Google’s official docs that point to the official client libraries / SDKs for Python (Admin API / Data API) for interacting with Google Analytics [2].

Sources:

  • analytics-mcp PyPI project page. [1]
  • Google Developers — Google Analytics API client libraries / quickstart (Python). [2]

🌐 Web query:

github.com/googleanalytics/google-analytics-mcp Google Analytics MCP server

💡 Result:

The googleanalytics/google-analytics-mcp repository is an experimental MCP (Model Context Protocol) server that lets LLM-based clients (e.g., Gemini/Claude) query live Google Analytics (GA4) account, property, reporting and realtime data via the Admin and Data APIs. It provides tools such as get_account_summaries, run_report, run_realtime_report and get_custom_dimensions_and_metrics, and uses Application Default Credentials for authentication. Setup steps include enabling the Google Analytics Admin & Data APIs, configuring ADC (or OAuth client credentials), installing the Python package (pipx), and adding the server to your Gemini/Client MCP config. See the repo README for full instructions and examples. [1]

If you want alternative/community MCP servers for GA4 (different languages/features), there are several community projects (examples: surendranb/google-analytics-mcp, gomarble-ai/google-analytics-mcp-server). These may offer different auth flows, feature sets, or implementations. [2][3]

Sources:

  • googleanalytics/google-analytics-mcp README. [1]
  • surendranb/google-analytics-mcp (community implementation). [2]
  • gomarble-ai/google-analytics-mcp-server (community implementation). [3]

Use the official Google Analytics MCP package from the Google Analytics GitHub repository.

The analytics-mcp package on PyPI exists but is a community/experimental implementation (with null author and homepage), not the official Google Analytics MCP server. The official Google Analytics MCP is located at github.com/googleanalytics/google-analytics-mcp and should be installed via pipx run google-analytics-mcp instead. Update the configuration to reference the correct official package and verify it aligns with your PR objectives.

🤖 Prompt for AI Agents
In `@configs/mcp-servers-config.json.txt` around lines 69 - 77, The config entry
"analytics-mcp" uses the community package name; update the args in that block
so pipx runs the official package by replacing ["run", "analytics-mcp"] with
["run", "google-analytics-mcp"] (leave command "pipx" and env keys like
GOOGLE_APPLICATION_CREDENTIALS and GOOGLE_PROJECT_ID intact), and verify the
description reflects the official GitHub package
(github.com/googleanalytics/google-analytics-mcp).

- Add blank line before code block in google-analytics.md (markdown lint)
- Fix heading: 'Claude Desktop' -> 'Gemini CLI' for ~/.gemini/settings.json
- Add missing list_google_ads_links tool to marketing.md and sales.md
@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 261 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Wed Jan 14 20:00:19 UTC 2026: Code review monitoring started
Wed Jan 14 20:00:19 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 261
Wed Jan 14 20:00:19 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Wed Jan 14 20:00:21 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 261
  • VULNERABILITIES: 0

Generated on: Wed Jan 14 20:01:01 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@marcusquinn marcusquinn merged commit 8ba3b56 into main Jan 14, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants