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

stacklok / toolhive / 45963066522
75%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 08:15AM UTC
Jobs 1
Files 1088
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

27 Nov 2026 08:05AM UTC coverage: 74.923% (-0.003%) from 74.926%
45963066522

push

github

web-flow
Make tool:call imply tool:read for tool listing (#6903)

* Make tool:call imply tool:read for tools/list filtering

tools/list filtered tools by tool:call. It now filters by tool:read, and a
tool:call grant also satisfies the read check through a decorator around the
Authorizer (pkg/authz/authorizers/tool_read.go). The implication is one way:
tool:read never grants tool:call, and there is no new ingress verb.

The decorator is applied once, where the authorization middleware is built
(Middleware) and in the vMCP admission. vMCP FilterTools now checks tool:read;
AllowToolCall still checks tool:call. Cedar denies tool:read without
evaluating claims, so call_tool policies decide visibility, as before.

tools/list runs under one shared deadline. A tool:read error, including a
timeout, is returned without a tool:call check, so a slow PDP cannot double
the wait. A tools/list entry listed only through the tool:call fallback is
counted in the audit event as discovery_fallback_count.

HTTP PDP rules that allow mcp:tool:read now list a tool even when the matching
mcp:tool:call rule denies it. This is documented in docs/authz.md.

Closes #4048

Signed-off-by: rkb32 <177729309+rkb32@users.noreply.github.com>

* Address review comments on tool:read visibility

Clarify the vMCP and audit docs that described list and call as one
decision, fix the admission log message that said "context ended" when a
deadline expired, note that the discovery fallback count is taken before the
--tools allowlist, make the e2e test assert the listed tool and the
tool:read-before-call order instead of only a non-zero read count, and wrap
the authorizers in the content-encoding tests the same way production does.

* Fix review findings on tool:read visibility

Stop the deadline loop before the next check once the shared context is done,
so Cedar, which ignores the context, cannot keep checking tools after the
deadline. Return false on a tool:read error instead of the inner value, restore... (continued)

78 of 84 new or added lines in 7 files covered. (92.86%)

24 existing lines in 6 files now uncovered.

104387 of 139326 relevant lines covered (74.92%)

982.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
94.23
-5.77% pkg/authz/tool_filter.go
3
91.89
-1.29% pkg/vmcp/core/admission.go

Coverage Regressions

Lines Coverage ∆ File
6
19.87
-3.97% pkg/client/manager.go
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
6
59.36
-0.62% pkg/workloads/manager.go
3
84.4
-0.16% pkg/authserver/storage/redis.go
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
1
81.82
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 45963066522.1 27 Nov 2026 08:15AM UTC 1088
74.92
GitHub Action Run
Source Files on build 45963066522
  • Tree
  • List 1088
  • Changed 19
  • Source Changed 10
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45963066522
  • df5aed7a on github
  • Prev Build on main (#45903316458)
  • Next Build on main (#45978913070)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc