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.