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

stacklok / toolhive / 27573625761
67%

Build:
DEFAULT BRANCH: main
Ran 15 Jun 2026 08:22PM UTC
Jobs 1
Files 759
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

15 Jun 2026 08:16PM UTC coverage: 66.702% (+0.06%) from 66.645%
27573625761

push

github

web-flow
Add passthroughHeaders to VirtualMCPServer for header forwarding (#5466)

When a client calls vMCP with a header its backend needs — e.g. x-mcp-api-key that the backend resolves to a specific user — vMCP silently drops it. vMCP opens a fresh request to each backend and sends only its own headers, so the caller's header never arrives. Backends that authenticate per-user from a header therefore can't be used through vMCP today — only by hitting the backend directly.

This adds spec.passthroughHeaders: an allowlist of incoming header names that vMCP forwards, unchanged, to every backend it calls.

spec:
  passthroughHeaders:
    - x-mcp-api-key
A listed header is read from the client request and attached to that session's backend requests. Headers not listed are ignored. Restricted names (Host, Authorization, X-Forwarded-*, hop-by-hop) are rejected.

Approach discussed and agreed with @jerm-dro on #3958 (assigned to me there).

Closes #3958

151 of 158 new or added lines in 11 files covered. (95.57%)

2 existing lines in 1 file now uncovered.

68493 of 102685 relevant lines covered (66.7%)

61.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
45.44
-0.05% cmd/thv-operator/api/v1beta1/zz_generated.deepcopy.go
2
88.79
0.96% pkg/vmcp/session/internal/backend/mcp_session.go
1
35.67
-0.08% pkg/vmcp/cli/serve.go

Coverage Regressions

Lines Coverage ∆ File
2
93.94
-6.06% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 27573625761.1 15 Jun 2026 08:22PM UTC 759
66.7
GitHub Action Run
Source Files on build 27573625761
  • Tree
  • List 759
  • Changed 17
  • Source Changed 12
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27573625761
  • 66c397b8 on github
  • Prev Build on main (#27564475295)
  • Next Build on main (#27585030890)
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