Skip to content

Add MCP SLI availability tool - #825

Merged
slok merged 1 commit into
mainfrom
slok/add-sli-availability-tool
May 26, 2026
Merged

Add MCP SLI availability tool#825
slok merged 1 commit into
mainfrom
slok/add-sli-availability-tool

Conversation

@slok-bot

Copy link
Copy Markdown
Collaborator

Summary

  • add the get_slo_sli_availability_range MCP tool
  • return compressed availability series with RFC3339 start timestamp and shared step metadata
  • reuse the backend SLI availability range use case through MCP

AI

AI-assistant: openai/gpt-5.4
Usage: assisted

Signed-off-by: Slok Bot <slok69+slokbot@gmail.com>
@slok-bot
slok-bot requested a review from slok as a code owner May 26, 2026 17:44
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.65217% with 74 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.30%. Comparing base (636daa0) to head (07b31fb).

Files with missing lines Patch % Lines
internal/http/mcp/tools/toolsmock/mocks.go 0.00% 65 Missing ⚠️
...l/http/mcp/tools/get_slo_sli_availability_range.go 87.23% 3 Missing and 3 partials ⚠️
internal/http/mcp/mcp.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #825      +/-   ##
==========================================
+ Coverage   31.18%   31.30%   +0.11%     
==========================================
  Files         148      149       +1     
  Lines        9132     9228      +96     
==========================================
+ Hits         2848     2889      +41     
- Misses       6036     6088      +52     
- Partials      248      251       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@slok
slok merged commit 8a3be4f into main May 26, 2026
24 checks passed
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.

3 participants