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

pomerium / pomerium / 22914102726
45%

Build:
DEFAULT BRANCH: main
Ran 10 Mar 2026 05:08PM UTC
Jobs 1
Files 687
Run time 3min
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

10 Mar 2026 04:54PM UTC coverage: 45.236% (+0.003%) from 45.233%
22914102726

push

github

web-flow
mcp: improve route listing for auto-discovery upstream auth (#6178)

## Summary

Improve MCP route listing to support auto-discovery upstream auth:

- **Auto-discovery token checking**: adds `GetUpstreamMCPToken` lookup
alongside existing static OAuth2 token lookup when reporting `connected`
status. Previously auto-discovery routes always showed as connected even
when the user had no upstream token.

- **No access token expiry check**: connection status only checks
whether a token exists, not whether it's expired. Expired tokens with
refresh tokens are refreshed in-place when requests are made (via
`getAutoDiscoveryToken`/`refreshOrClearToken`), so an expired access
token does not mean the user is disconnected.

- **`NeedsOauth: true` for all routes**: all MCP server routes now
report `needs_oauth: true` so external clients know auth is needed (both
static `upstream_oauth2` and auto-discovery routes).

## Related

- [ENG-3596](https://linear.app/pomerium/issue/ENG-3596) — extend
/routes for auto-discovery upstream auth

10 of 28 new or added lines in 1 file covered. (35.71%)

27 existing lines in 9 files now uncovered.

34427 of 76106 relevant lines covered (45.24%)

115.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
18
16.94
16.94% internal/mcp/handler_list_routes.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.15
0.89% internal/databroker/config_source.go
1
82.24
-0.2% pkg/envoy/resource_monitor_linux.go
1
75.41
0.0% pkg/storage/postgres/registry.go
2
49.19
0.36% internal/databroker/server_clustered_follower.go
2
94.55
0.0% pkg/fanout/receive.go
2
95.83
-2.08% pkg/identity/manager/schedulers.go
2
88.08
-0.44% pkg/storage/postgres/postgres.go
7
75.73
-1.85% pkg/storage/postgres/backend.go
9
87.75
-2.94% config/config_source.go
Jobs
ID Job ID Ran Files Coverage
1 22914102726.1 10 Mar 2026 05:08PM UTC 687
45.24
GitHub Action Run
Source Files on build 22914102726
  • Tree
  • List 687
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22914102726
  • fe214f18 on github
  • Prev Build on main (#22906894789)
  • Next Build on main (#22928219494)
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