Skip to content

Getting Pod Logs via MCP Returns Huge Output, Lacking Filtering #297

@sergeykad

Description

@sergeykad

Using kubectl with grep allows for filtering and reading only relevant log lines, such as errors and warnings. However, fetching logs through the MCP returns the entire log output, which can easily exceed 10,000 tokens.
We need a way to filter logs directly within the MCP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions