-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Prerequisites
- Search the current open issues
What are you trying to do that currently feels hard or impossible?
Add a new source type called cloud-logging to the MCP Toolbox that enables agents and tools to directly query and analyze logs from Google Cloud Logging (formerly Stackdriver).
This source should allow users to:
Query logs using Cloud Logging’s advanced filters.
Stream or batch retrieve log entries for a given resource, project, or time window.
Support integration with analysis or monitoring tools in MCP.
Suggested Solution(s)
sources:
gcp-logs:
kind: cloud-logging
project: my-gcp-project
resource_type: "gce_instance" # optional
filter: "severity>=ERROR"
time_range: "1h" # e.g., last 1 hour
mode: "query" # options: query | stream
credentials:
use_default_credentials: true
Alternatives Considered
No response
Additional Details
The MCP Toolbox should recognize kind: cloud-logging as a valid source type.
It should authenticate via Application Default Credentials or provided service account JSON key.
Enable:
Query mode: fetch log entries matching the filter and time range.
Stream mode: continuously stream new logs in real-time.
Return log entries in structured format (JSON with timestamp, resource, severity, message).