GCP MCP Log Diagnostics
GCP MCP Protokoll-Diagnose
Dieses Projekt stellt Tools zur Diagnose von Google Cloud Platform (GCP)-Protokollen unter Verwendung des Model Context Protocol (MCP) und Google Gemini AI bereit.
Übersicht
diagnose.py: Ein Skript, das Gemini AI verwendet, um über MCP-Tools abgerufene GCP-Protokolle zu analysieren. Es diagnostiziert Probleme, identifiziert Grundursachen und schlägt Lösungen vor.log_mcp_server.py: Ein MCP-Server, der Tools zum Abrufen von Protokollen aus GCP Cloud Logging bereitstellt.
Related MCP server: GCP MCP Server
Voraussetzungen
Python 3.8+
Google Cloud-Projekt mit entsprechenden Berechtigungen für Cloud Logging
Gemini API-Schlüssel
Einrichtung
Klonen oder laden Sie die Projektdateien herunter.
Abhängigkeiten installieren:
pip install -r requirements.txtUmgebungsvariablen in einer
.env-Datei einrichten:GEMINI_API_KEY=your_gemini_api_key_hereStellen Sie sicher, dass Ihre Google Cloud-Anmeldedaten konfiguriert sind (z. B. über
gcloud auth application-default login).Diagnose ausführen:
python diagnose.py
Verwendung
Das Skript diagnose.py ist so konfiguriert, dass es die ERROR- und CRITICAL-Protokolle der letzten 2 Stunden aus Cloud Run abruft und eine Diagnose erstellt. Sie können die Abfrage im Skript ändern oder sie für andere Ressourcentypen erweitern.
Abhängigkeiten
python-dotenv: Zum Laden von Umgebungsvariablengoogle-generativeai: Für die Interaktion mit Gemini AIfastmcp: Für MCP-Client- und Server-Funktionalitätgoogle-cloud-logging: Für den Zugriff auf GCP Cloud Logging
Lizenz
[Lizenzinformationen falls zutreffend hinzufügen]
This server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceAllows developers and AI Agents to query Google Cloud Logging using natural language, translating queries into Google Cloud Logging Query Language (LQL) with Vertex AI Gemini 2.5.1
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseCqualityDmaintenanceEnables 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.401Apache 2.0
- AlicenseNot gradedqualityFmaintenanceEnables 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.2411MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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