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

stacklok / toolhive / 23006060128 / 1
64%
main: 64%

Build:
DEFAULT BRANCH: main
Ran 12 Mar 2026 02:10PM UTC
Files 553
Run time 18s
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

12 Mar 2026 02:07PM UTC coverage: 64.25% (-0.02%) from 64.27%
23006060128.1

push

github

web-flow
Add annotation cache for tools/list to tools/call flow (#4114)

* Add annotation cache for tools/list to tools/call flow

The authz middleware now caches tool annotations from tools/list
responses and injects them into context during tools/call requests.
This bridges the gap where annotations are visible in tools/list but
lost by the time tools/call arrives as a separate HTTP request.

- Add AnnotationCache with concurrent-safe get/set operations
- ResponseFilteringWriter populates cache during tools/list filtering
- Middleware closure captures cache, injects annotations for tools/call
- Graceful degradation when tools/call arrives before tools/list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix stale annotation cache entries on tools/list

SetFromToolsList previously merged into the existing map, so tools
whose annotations were removed in a subsequent tools/list response
retained stale cached entries. Replace the entire map atomically
to ensure eviction of removed tools.

Also add a test for the eviction behavior and document the
intentional omission of the Title field in convertMCPAnnotation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

48412 of 75349 relevant lines covered (64.25%)

73.47 hits per line

Source Files on job 23006060128.1
  • Tree
  • List 553
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23006060128
  • 942893e9 on github
  • Prev Job for on main (#23003621793.1)
  • Next Job for on main (#23006149677.1)
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