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

stacklok / toolhive / 18502123331
59%

Build:
DEFAULT BRANCH: main
Ran 14 Oct 2025 03:47PM UTC
Jobs 1
Files 284
Run time 4min
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

14 Oct 2025 03:42PM UTC coverage: 46.603% (-0.01%) from 46.617%
18502123331

push

github

web-flow
Support RFC 9728 well-known paths with resource components (#2197)

The previous implementation used exact path matching for the well-known
OAuth protected resource metadata endpoint, which only accepted:
  /.well-known/oauth-protected-resource

This broke RFC 9728 Section 3.1 compliance for resources with path
components. When a resource is identified as "https://server.com/mcp",
clients must fetch metadata from:
  /.well-known/oauth-protected-resource/mcp

But the exact match would return 404, preventing proper OAuth discovery
for MCP servers with path-based resource identifiers.

Changed to prefix matching to support both:
- /.well-known/oauth-protected-resource (base path)
- /.well-known/oauth-protected-resource/mcp (with resource component)
- /.well-known/oauth-protected-resource/resource1 (multi-tenant)

This enables multi-tenant hosting configurations as specified in
RFC 9728 and ensures OAuth discovery works correctly for MCP servers
regardless of their path structure.

Note: The current implementation accepts all paths under the prefix
(e.g., /.well-known/oauth-protected-resource/*). In the future, this
could be tightened by having NewAuthInfoHandler parse the request path,
extract the resource component, and validate it matches the resourceURL
path before returning metadata. This would enforce stricter path
matching while maintaining RFC 9728 compliance.

0 of 6 new or added lines in 1 file covered. (0.0%)

5 existing lines in 2 files now uncovered.

17552 of 37663 relevant lines covered (46.6%)

16.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
33.66
-0.55% pkg/transport/proxy/transparent/transparent_proxy.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
33.66
-0.55% pkg/transport/proxy/transparent/transparent_proxy.go
3
72.39
-1.12% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 18502123331.1 14 Oct 2025 03:47PM UTC 284
46.6
GitHub Action Run
Source Files on build 18502123331
  • Tree
  • List 284
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18502123331
  • df489b6c on github
  • Prev Build on main (#18499343992)
  • Next Build on main (#18503548065)
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