Skip to main content
Glama

GCP MCP ログ診断

本プロジェクトは、Model Context Protocol (MCP) と Google Gemini AI を使用して Google Cloud Platform (GCP) のログを診断するためのツールを提供します。

概要

  • diagnose.py: MCPツール経由で取得したGCPログをGemini AIで分析するスクリプトです。問題を診断し、根本原因を特定し、修正案を提示します。

  • log_mcp_server.py: GCP Cloud Loggingからログを取得するためのツールを提供するMCPサーバーです。

Related MCP server: GCP MCP Server

前提条件

  • Python 3.8以上

  • Cloud Loggingに対する適切な権限を持つGoogle Cloudプロジェクト

  • Gemini APIキー

セットアップ

  1. プロジェクトファイルをクローンまたはダウンロードします。

  2. 依存関係をインストールします:

    pip install -r requirements.txt
  3. .env ファイルに環境変数を設定します:

    GEMINI_API_KEY=your_gemini_api_key_here

    Google Cloudの認証情報が設定されていることを確認してください(例: gcloud auth application-default login を使用)。

  4. 診断を実行します:

    python diagnose.py

使用方法

diagnose.py スクリプトは、Cloud Runから過去2時間のERRORおよびCRITICALログを取得し、診断を提供するように構成されています。スクリプト内のクエリを変更したり、他のリソースタイプ用に拡張したりすることが可能です。

依存関係

  • python-dotenv: 環境変数の読み込み用

  • google-generativeai: Gemini AIとの対話用

  • fastmcp: MCPクライアントおよびサーバー機能用

  • google-cloud-logging: GCP Cloud Loggingへのアクセス用

ライセンス

[該当する場合はライセンス情報を追加してください]

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with Google Cloud Platform services for log analysis and root cause investigation. Provides tools to query Cloud Logging, detect error patterns, and perform real-time log streaming across multiple GCP projects.
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    Enables interaction with Google Cloud services including billing cost analysis, log querying, and metrics monitoring through natural language commands. Provides comprehensive tools for managing GCP resources, analyzing costs, detecting anomalies, and retrieving operational insights.
    40
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables AI assistants to query, search, and analyze logs across Google Cloud Platform projects. It supports advanced filtering by severity or resource type and provides detailed log entry retrieval and project listing capabilities.
    24
    11
    MIT

View all related MCP servers

Related MCP Connectors

  • Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.

  • A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud

  • Remote MCP for MCP tool deprecation receipt, structured receipts, audit logs, and reviewer-ready evi

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kanhaiworld/gcp_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server