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

stacklok / toolhive / 45500062664
75%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 10:31PM UTC
Jobs 1
Files 1065
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

24 Nov 2026 10:20PM UTC coverage: 74.047% (+0.01%) from 74.034%
45500062664

push

github

web-flow
Add the call-binding argument hash for the vMCP (#7285)

* Add the call-binding argument hash for the vMCP

A call-bound access token names one MCP tool call, including a hash of
its arguments. The client that asks for the token and the vMCP that
checks it compute that hash independently, so any difference between
them fails every call. This adds the vMCP's side as a leaf package with
no callers yet.

The hash is the lowercase hex SHA-256 of the RFC 8785 serialization of
params.arguments, with {} for absent or null arguments. It is a port of
the client's implementation on the standard library's jsontext: a
strict token decoder for the I-JSON checks, Canonicalize for RFC 8785,
and its own check for integers beyond 2^53. Anything that is not
exactly one I-JSON object is refused rather than hashed. Unlike the
client's copy, only JSON whitespace counts as absent.

The client's test vectors are mirrored verbatim. The refusal cases are
added as a separate file both sides can read, with invalid UTF-8 stored
as base64.

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

* Make ToolHive's argument hash vectors canonical

The shared argument hash vectors now live in ToolHive, as agreed on
"vMCP: accept an access token for the one call its authorization_details
names, once" (#7062). The client will compare its copy with this one.

The refusal cases move from a separate file into vectors.json, so one
file pins both what hashes and what is refused. A gateway_refuses flag
marks vectors the vMCP refuses with -32600 before hashing because member
names collide after case folding ("ASCII key order"). A test wraps each
vector in a tools/call and runs it through the real message decoder, so
the flag cannot drift from the decoder's rule.

The test records the client commit the file started from and how it
has diverged since.

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

---------

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

54 of 56 new or added lines in 1 file covered. (96.43%)

56 existing lines in 6 files now uncovered.

99815 of 134800 relevant lines covered (74.05%)

870.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
96.43
pkg/vmcp/callbinding/argumenthash.go

Coverage Regressions

Lines Coverage ∆ File
28
93.68
0.04% pkg/authserver/server/tokenexchange/refresh_token_handler.go
15
92.75
0.06% pkg/authserver/server/tokenexchange/jwt_bearer_handler.go
7
98.19
0.0% pkg/authserver/server/tokenexchange/handler.go
3
83.93
-0.16% pkg/authserver/storage/redis.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 45500062664.1 24 Nov 2026 10:31PM UTC 1065
74.05
GitHub Action Run
Source Files on build 45500062664
  • Tree
  • List 1065
  • Changed 11
  • Source Changed 7
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45500062664
  • 3be89fa0 on github
  • Prev Build on main (#45494945697)
  • Next Build on main (#45505048110)
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