mcp-server-google-logging

mcp-server-google-logging

0

MCP-Server-Google-Logging is a tool for managing and extracting logs through Google Cloud's logging capabilities using gcloud CLI. It allows users to output logs in YAML, retrieve logs based on context, and manage various logging resources.

Overview

  • Prerequisites:
    • Ability to use gcloud CLI
    • Logged in to gcloud
    • Proper IAM permissions
  • Requirements:
    • Output in YAML format
    • Log content includes essentials like content, resource name, and timestamp
    • Startup parameter: Project ID
  • Context for Log Retrieval:
    • How to obtain project log information varies by context
    • Potential solutions include a) using gcloud logging MCP Server or b) creating a separate MCP Server
  • Capabilities with gcloud:
    • Reading and displaying logs with gcloud logging read
    • Real-time log monitoring with gcloud logging tail
    • Listing and managing logs with gcloud logging logs list and delete
    • Managing log buckets, sinks, and metrics

How to Use

  • Run the server:
    • node -- /path/to/mcp-server-google-logging/dist/index.js --project=<project-id>