Skip to content

Feature Request: Add new source type cloud-logging for querying Google Cloud logs #1772

@vksinha10

Description

@vksinha10

Prerequisites

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions