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

stacklok / toolhive / 17495147585
60%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2025 01:55PM UTC
Jobs 1
Files 228
Run time 1min
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

05 Sep 2025 01:51PM UTC coverage: 37.922% (+0.3%) from 37.609%
17495147585

push

github

web-flow
Enhance Streamable HTTP proxy with session management and ID routing (#1738)

Refactor the existing Streamable HTTP proxy to improve request/response
correlation and add proper session management per MCP specification.

Key improvements:
- Add composite ID routing (sessID|idKey) for reliable request correlation
- Extract response dispatching into dedicated dispatcher with waiter-based routing
- Introduce session management with Manager and StreamableSession types
- Implement spec-compliant HTTP method handlers (GET/DELETE/POST)
- Fix session header handling with automatic Mcp-Session-Id assignment
- Support both synchronous batch processing and async SSE streaming
- Add 30-second default timeout for response handling
- Include comprehensive test coverage with mcp-go client integration
- Add spec compliance tests validating HTTP status codes
- Test concurrent clients and stress scenarios

Also clean up logging by replacing fmt.Printf with proper logger in
authz middleware and remove debug print statement from stdio transport.

The refactoring ensures proper message correlation between multiple
concurrent clients and container backends while maintaining full MCP
specification compliance.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>

287 of 479 new or added lines in 5 files covered. (59.92%)

8 existing lines in 1 file now uncovered.

10917 of 28788 relevant lines covered (37.92%)

17.25 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
71.83
0.5% pkg/authz/middleware.go
9
75.0
pkg/transport/proxy/streamable/utils.go
11
69.44
pkg/transport/proxy/streamable/dispatcher.go
42
0.0
pkg/transport/session/streamable_session.go
129
65.56
5.66% pkg/transport/proxy/streamable/streamable_proxy.go

Uncovered Existing Lines

Lines Coverage ∆ File
8
65.56
5.66% pkg/transport/proxy/streamable/streamable_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 17495147585.1 05 Sep 2025 01:55PM UTC 228
37.92
GitHub Action Run
Source Files on build 17495147585
  • Tree
  • List 228
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17495147585
  • 0c1a42c3 on github
  • Prev Build on main (#17494736118)
  • Next Build on main (#17499522152)
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