• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 24338135480
66%

Build:
DEFAULT BRANCH: main
Ran 13 Apr 2026 10:23AM UTC
Jobs 1
Files 617
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Apr 2026 10:17AM UTC coverage: 65.625% (+0.05%) from 65.573%
24338135480

push

github

web-flow
Return 503 for expired proxy tokens (#4722)

* Return 503 for expired proxy tokens

When the proxy's OAuth token source fails, the token injection
middleware returned 401 Unauthorized. MCP clients interpret 401
as a signal to begin OAuth authentication, but the proxy manages
OAuth internally and has no client-facing OAuth metadata. The
failed discovery is cached, blocking reconnection even after the
token refreshes.

Return 503 Service Unavailable with Retry-After instead, which
clients treat as a transient connection error.

Fixes #4721

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Greg Katz <gkatz@indeed.com>

* Extract Retry-After value into named constant

Address review nit: extract the retry delay into a package-level
constant with a comment linking it to the MonitoredTokenSource
backoff interval.

Signed-off-by: Greg Katz <gkatz@indeed.com>

---------

Signed-off-by: Greg Katz <gkatz@indeed.com>
Co-authored-by: Claude <noreply@anthropic.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

156 existing lines in 3 files now uncovered.

56745 of 86468 relevant lines covered (65.63%)

62.87 hits per line

Coverage Regressions

Lines Coverage ∆ File
151
30.87
0.12% cmd/thv/app/run_flags.go
3
79.38
-0.77% pkg/transport/proxy/httpsse/http_proxy.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
Jobs
ID Job ID Ran Files Coverage
1 24338135480.1 13 Apr 2026 10:23AM UTC 617
65.63
GitHub Action Run
Source Files on build 24338135480
  • Tree
  • List 617
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24338135480
  • 729d11fd on github
  • Prev Build on main (#24335432095)
  • Next Build on main (#24339003617)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc