Skip to content

feat: mcp-log#1483

Open
Oxidaner wants to merge 7 commits into
apache:aifrom
Oxidaner:ai-log
Open

feat: mcp-log#1483
Oxidaner wants to merge 7 commits into
apache:aifrom
Oxidaner:ai-log

Conversation

@Oxidaner
Copy link
Copy Markdown

@Oxidaner Oxidaner commented Jun 1, 2026

Changes

  • Add observability.logs config for Loki providers.
  • Register two MCP tools:
    • search_logs
    • analyze_error_logs
  • Query Loki via query_range and normalize log results.
  • Support filtering by common Loki labels such as app, service, instance, mesh, and log keywords.
  • Add a Grafana Alloy values example for collecting Kubernetes pod logs into Loki.

Test

go test ./pkg/config/observability ./pkg/console ./pkg/mcp/tools/log ./pkg/mcp/tools

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant