Skip to content

[Feature Request] Simplify Authentication Flow and Improve UX for Gemini-CLI Integration #113

@RbBtSn0w

Description

@RbBtSn0w

Current Situation

The current authentication and login experience for the Google Analytics MCP Server is excessively complex for end-users. While following the current README, the reliance on GOOGLE_APPLICATION_CREDENTIALS and manual gcloud CLI commands creates a high barrier to entry and a fragile setup process.

Issues Observed

  1. Complex Configuration Path: The requirement to navigate the Google Cloud Console, enable multiple APIs, create OAuth clients, and run gcloud auth application-default login with specific scopes is error-prone and tedious for developers who just want to use the MCP tools.
  2. Performance Bottlenecks in Gemini-CLI: During testing with gemini-cli, the MCP server often causes the CLI to hang or enter infinite loading loops. This appears to be related to credential resolution or token refresh issues which are not gracefully handled, dragging down the performance of the host application.
  3. ToB vs. ToC Experience: The current implementation feels like an "Enterprise Alpha" product rather than a developer-friendly tool. The heavy dependency on the GCP environment makes it difficult for individual developers or "ToC" users to quickly adopt the server.

Suggested Improvements

  • Lightweight Authentication: Provide a more streamlined authentication method, such as support for API Keys (where applicable) or a simplified OAuth 2.0 web-based flow that doesn't require the gcloud SDK to be installed.
  • Automated Setup/Onboarding: Implement a guided setup script or an automated configuration tool that reduces the need for manual file path copying and environment variable exports.
  • Enhanced Reliability: Improve how the server handles missing or expired credentials to prevent blocking the host process (like Gemini-CLI).
  • Developer-Centric Documentation: Simplify the documentation to focus on "Zero-to-One" speed, minimizing the technical overhead of GCP project management.

Impact

Simplifying the authentication flow will make this MCP server a truly universal tool within the Google ecosystem, enabling seamless integration with Gemini-CLI and other MCP-compatible agents without the current "configuration friction."

Thank you for your hard work on this experimental project, and I look forward to seeing it mature into a more accessible tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions