Skip to content

Releases

v0.70.1

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 28 Nov 10:36
553e185

What's Changed

  • Turn on subject resolution at ID-JAG redemption by @jhrozek in #7356
  • fix(runner): delete the previous refresh-token secret on rotation by @feiiiiii5 in #7052
  • Update go modules by @renovate[bot] in #7366
  • Update golang.org/x/exp/jsonrpc2 digest to f63ec7c by @renovate[bot] in #7363
  • Update github actions by @renovate[bot] in #7364
  • Update github.com/sigstore/protobuf-specs digest to 7eccec1 by @renovate[bot] in #7367
  • Give call-binding refusals a machine-readable reason by @rdimitrov in #7369
  • Release v0.70.1 by @toolhive-release-app[bot] in #7368

Full Changelog: v0.70.0...v0.70.1

v0.70.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 27 Nov 17:15
2f18da9

What's Changed

New Contributors

Full Changelog: v0.69.1...v0.70.0

v0.69.1

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 25 Nov 15:09
6e49f15

What's Changed

  • Document the code mode split behind the vMCP optimizer by @rdimitrov in #7294
  • Add a per-client access token lifespan for ID-JAG redemption by @rdimitrov in #7284
  • Add the MCP tool-call details type by @rdimitrov in #7283
  • Keep one user per upstream identity by @jhrozek in #7277
  • Record how a token was admitted on Identity by @jhrozek in #7287
  • Log backend tool errors at Debug and count them by @alex-feel in #7300
  • Match .thvignore wildcard directory patterns by @HankGrimm in #7258
  • Accept a trailing slash on an origin-only DCR issuer by @reyortiz3 in #7292
  • Process the ID-JAG authorization_details claim by @rdimitrov in #7290
  • Release v0.69.1 by @toolhive-release-app[bot] in #7306

Full Changelog: v0.69.0...v0.69.1

v0.69.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 24 Nov 22:58
3b6fe79

Behavior changes

The embedded authorization server refuses tokens and assertions that carry authorization_details (#7282). Before, the claim was dropped and the request succeeded, so a token restricted by authorization_details could be exchanged for one without the restriction. Now these requests are refused:

  • RFC 8693 token exchange whose subject_token or actor_token carries an authorization_details claim, including a token from a trusted external issuer: 400 invalid_request.
  • JWT-bearer or ID-JAG redemption whose assertion carries the claim, with any value: 400 invalid_grant, invalid_assertion. The assertion is not consumed.

Tokens issued by ToolHive never carry this claim, so ToolHive-to-ToolHive flows are unaffected. Check your setup if a trusted identity provider puts authorization_details (RFC 9396) into the tokens or ID-JAGs it sends to ToolHive: those requests now fail.

What's Changed

  • Pass the JWKS auth token path to vMCP by @rdimitrov in #7221
  • Extract the shared JWT-bearer redemption tail by @jhrozek in #7249
  • Send KSA service account token only to the in-cluster API server by @rdimitrov in #7248
  • Accept EdDSA tokens in the token validator by @rdimitrov in #7253
  • Keep token-file HTTP clients on same-host redirects by @rdimitrov in #7252
  • Support Entra on-behalf-of backend auth in OSS by @tgrunnagle in #7201
  • Add opt-in Entra OBO e2e suite for real tenants by @tgrunnagle in #7251
  • Gate ID-JAG subject resolution behind a setting by @jhrozek in #7254
  • Check the actor at ID-JAG redemption by @jhrozek in #7255
  • Sweep terminated sessions from the node-local cache by @HankGrimm in #7259
  • Resolve ID-JAG subjects and issue marked tokens behind the gate by @jhrozek in #7262
  • Reduce vMCP memory held by idle sessions and bursts by @aponcedeleonch in #7265
  • Use toolhive-actions to build and publish skills by @samuv in #7273
  • Pin that Modern list calls ignore the session ID by @jhrozek in #7276
  • Report code mode calls in anonymous usage metrics by @rdimitrov in #7274
  • Observe vMCP code mode: usage-report tool calls, OTel metrics, spans and logs by @rdimitrov in #7275
  • Put the authorization details reachability rule in one place by @rdimitrov in #7281
  • Refuse tokens that carry authorization_details by @rdimitrov in #7282
  • Add the call-binding argument hash for the vMCP by @rdimitrov in #7285
  • Release v0.69.0 by @toolhive-release-app[bot] in #7288

New Contributors

Full Changelog: v0.68.0...v0.69.0

v0.68.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 23 Nov 13:57
46d464d

What's Changed

  • Gate ID-JAG by issuer assertion types by @jhrozek in #6678
  • Log routine vMCP cache sync messages at debug by @FOWEPJF255 in #7216
  • Refuse unauthenticated ID-JAG clients and cnf-bound assertions by @jhrozek in #7214
  • Require the issuer as the only client assertion aud by @jhrozek in #7213
  • Update golang.org/x/exp/jsonrpc2 digest to e1094ee by @renovate[bot] in #7206
  • Update github actions by @renovate[bot] in #7209
  • Share the authorization_details reader by @jhrozek in #7217
  • Add the subject resolver and actor policy packages by @jhrozek in #7215
  • Pass redemption handler dependencies as a struct by @jhrozek in #7220
  • Release v0.68.0 by @toolhive-release-app[bot] in #7243

New Contributors

Full Changelog: v0.67.1...v0.68.0

v0.67.1

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 21 Nov 20:08
2d33d6b

What's Changed

  • Confine .thvignore overlays to the mounted directory by @rdimitrov in #7196
  • Refuse ID-JAGs with a multi-valued aud by @jhrozek in #7204
  • Release v0.67.1 by @toolhive-release-app[bot] in #7212

Full Changelog: v0.67.0...v0.67.1

v0.67.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 20 Nov 13:49
884ee1f

🚀 Toolhive v0.67.0 is live!

This release expands SPIFFE workload identity with a new client_credentials grant and operator support for choosing grant types per association. It tightens token-exchange and ID-JAG redemption with clearer refusal reasons, adds structured findings and link and script checks to skill validation, and sets default resource limits for MCPRemoteProxy.

⚠️ Breaking Changes

  • SPIFFE associations now require resources, and token exchange needs exactly one resource. Associations without resources are rejected, and SPIFFE token-exchange requests that send audience= or no target now get invalid_target. Add resources to every spiffeClientAuth entry and send a single matching resource (migration guide)
  • thv run uvx://… now defaults to the stdio transport. A uvx:// package that serves HTTP or SSE, run without --transport, --target-port or --stateless, now starts as stdio and can't be reached through the proxy. Add --transport streamable-http (or --transport sse) (migration guide)
  • The act.sub of a SPIFFE token exchange is now the workload's SPIFFE ID. Cedar policies that match claim_act.sub against the SPIFFE client ID no longer match. Match claim_client_id instead (migration guide)
  • MCPRemoteProxy gets default CPU and memory requests and limits. Existing proxies that leave any resource field unset restart once after the operator upgrade and get a 256Mi memory limit. Set explicit limits on heavy proxies before you upgrade (migration guide)
  • Go API: the token-exchange middleware moved and a constant was removed. Import the middleware from pkg/auth/tokenexchange, and replace authserver.SPIFFEGrantTypeTokenExchange with oauthproto.GrantTypeTokenExchange (migration guide)
Migration guide: SPIFFE associations require resources

Who is affected: anyone with SPIFFE associations (spiffeClientAuth) on an MCPExternalAuthConfig (spec.embeddedAuthServer.inboundGrants), a VirtualMCPServer (spec.authServerConfig.inboundGrants), or a hand-written RunConfig. This also affects SPIFFE workloads that call token exchange. SPIFFE associations were introduced in v0.65.0.

  • resources is now required and must have at least one entry. A CEL admission rule enforces this, along with RunConfig validation and ValidateInboundGrants. The auth server refuses to start without it.
  • audiences is deprecated and ignored. A non-empty value is reported by the DeprecatedInboundGrantConfiguration condition and by one startup WARN per association.
  • SPIFFE token exchange must send exactly one resource that exactly matches an entry in the association's resources and in the server's allowed audiences. The server refuses a missing, empty or repeated resource, or any audience parameter, with invalid_target.
  • CRD validation ratcheting (Kubernetes 1.30+) still admits updates that leave the list unchanged. The Valid condition on MCPExternalAuthConfig, or the AuthServerConfigValidated condition on VirtualMCPServer, reports the missing resources, and dependent servers fail to reconcile until you add it.
  • On Redis-backed servers, the first start after upgrading logs one configured client replaced with a different policy WARN per association. Nothing is authorized differently.

Before

spiffeClientAuth:
  - # ...other association fields unchanged
    audiences:
      - https://mcp.example.com

After

spiffeClientAuth:
  - # ...other association fields unchanged
    resources:
      - https://mcp.example.com   # must also be in the server's allowed audiences

Migration steps

  1. Add a non-empty resources list to every spiffeClientAuth entry. Each entry must be one of the server's allowed audiences.
  2. Remove audiences from these entries. It is ignored now and only triggers the deprecation condition and WARN.
  3. Update SPIFFE workloads to send exactly one resource=<uri> and no audience parameter on token-exchange requests.
  4. Check the Valid / AuthServerConfigValidated conditions after you upgrade.

PR: #7160, part of #6204

Migration guide: uvx:// defaults to stdio

Who is affected: CLI users who run thv run uvx://<package> with no --transport and no registry metadata, for a package that serves streamable-http or SSE. For example, a package switched to HTTP through its own arguments after --. Python stdio servers, which previously restarted in a loop, now work without any flags.

The transport is now chosen in this order:

  1. An explicit --transport
  2. Registry metadata
  3. stdio for uvx:// inputs, unless --target-port or --stateless is set
  4. streamable-http

npx://, go:// and plain images are unchanged, and so is the thv serve API path. thv run logs the implicit stdio choice at startup.

Before

# ran as streamable-http implicitly
thv run uvx://my-http-mcp-server -- --transport streamable-http

After

thv run --transport streamable-http uvx://my-http-mcp-server -- --transport streamable-http

Migration steps

  1. Find thv run uvx://… invocations for servers that speak HTTP or SSE.
  2. Add --transport streamable-http or --transport sse, or set --target-port.
  3. Stdio-based uvx:// servers need no change.

PR: #7133 — Fixes #6634

Migration guide: SPIFFE act.sub names the workload

Who is affected: deployments where SPIFFE workloads use token exchange without an actor_token, especially Cedar policies or authorization_details hooks that identify the client through act.sub.

  • In a SPIFFE workload's exchange, the outermost act.sub is now the workload's verified SPIFFE ID instead of the client ID. client_id is unchanged.
  • A sibling workload under a wildcard (/*) association can no longer exchange another workload's token. It gets invalid_grant with the hint "The subject token was issued to a different workload of this client."
  • After you upgrade, re-exchanging a token issued before the upgrade (whose act.sub is the client ID) gets invalid_grant. These tokens are short-lived, and the workload recovers by exchanging the original token again.

Before

permit(principal, action, resource)
when { principal.claim_act.sub == "my-spiffe-client" };

After

permit(principal, action, resource)
when { principal.claim_client_id == "my-spiffe-client" };

Migration steps

  1. Search your Cedar policies for claim_act.sub comparisons against SPIFFE client IDs.
  2. Change them to claim_client_id, or match the workload's SPIFFE ID if you want per-workload rules.
  3. Update authorization_details hooks that read Request.Actor, which now carries the SPIFFE ID.

PR: #7176, part of #6204

Migration guide: MCPRemoteProxy default resources

Who is affected: every MCPRemoteProxy that leaves any resource field unset.

Unset fields now default to these values:

CPU Memory
Requests 50m 64Mi
Limits 200m 256Mi

Explicit values in spec.resources or podTemplateSpec still win, field by field. A proxy that sets only limits behaves exactly as before. Affected proxies restart once after the operator upgrade. A proxy whose working set is above 256Mi, such as a busy proxy with an embedded auth server, will be OOMKilled.

Before

apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPRemoteProxy
spec:
  # no resources: container ran unbounded

After

apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPRemoteProxy
spec:
  resources:
    requests:
      cpu: 100m
      memory: 256Mi
    limits:
      cpu: 500m
      memory: 1Gi   # size to the proxy's observed working set

Migration steps

  1. Before you upgrade the operator, check memory usage of your existing MCPRemoteProxy pods.
  2. For any proxy close to or above 256Mi, set spec.resources.limits.memory (and CPU if needed) explicitly.
  3. Upgrade the operator, and expect one rolling restart of affected proxies.

PR: #7137 — Fixes #3131

Migration guide: Go API changes

Who is affected: Go programs that embed ToolHive packages. CLI flags, operator manifests, serialized runner configuration and request handling are unchanged.

Before

import "github.com/stacklok/toolhive/pkg/oauthproto/tokenexchange" // middleware + factory

grant := authserver.SPIFFEGrantTypeTokenExchange

After

import "github.com/stacklok/toolhive/pkg/auth/tokenexchange" // middleware + factory
// pkg/oauthproto/tokenexchange still holds the RFC 8693 client, ExchangeConfig and NormalizeTokenType

grant := oauthproto.GrantTypeTokenExchange...
Read more

v0.66.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 16 Nov 14:08
74fbd9b

What's Changed

New Contributors

Full Changelog: v0.65.0...v0.66.0

v0.65.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 13 Nov 11:22
2cf07aa

What's Changed

  • Allow clock skew on private_key_jwt assertions by @jhrozek in #7088
  • Record trace and span IDs on audit events by @reyortiz3 in #7102
  • Borrow caller-supplied authserver storage by @jhrozek in #7104
  • Decouple DCR keys from auth storage by @jhrozek in #7096
  • Authenticate clients with SPIFFE X.509-SVIDs by @jhrozek in #7092
  • Bound registry openapi.yaml read and YAML decoding cost by @rdimitrov in #7107
  • Avoid quadratic YAML decoding of untrusted skill files by @rdimitrov in #7106
  • Add oauthproto/idjag with the XAA client and server rules by @jhrozek in #7103
  • Add ID-JAG target configuration for delegate clients by @jhrozek in #7105
  • Define internal claim names in one place by @jhrozek in #7113
  • Give each DCR failure subtest its own upstream by @jhrozek in #7118
  • Give RefreshTokenFactory a required signer by @jhrozek in #7115
  • Define subject claim names in claimnames by @jhrozek in #7120
  • Share the bounded access-token issuance step by @jhrozek in #7121
  • Add the ID-JAG minting core and align token minting by @jhrozek in #7117
  • Log the cause of token exchange server errors by @jhrozek in #7122
  • Serve the cached CIMD client when a re-fetch fails transiently by @alex-feel in #6857
  • Move consent proxy test to authserver integration by @jhrozek in #7111
  • Add the actor-token validator hook for ID-JAG issuance by @jhrozek in #7116
  • Take a free actor validator slot before waiting by @jhrozek in #7125
  • Configure actor-token validators for delegate clients by @jhrozek in #7123
  • Release v0.65.0 by @toolhive-release-app[bot] in #7129

Full Changelog: v0.64.0...v0.65.0

v0.64.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 10 Nov 11:46
d2b9a6b

🚀 Toolhive v0.64.0 is live!

This release hardens the embedded authorization server. It closes a client-assertion replay gap, rejects ID-JAGs presented as access tokens, and stops deeply nested JWTs before fosite parses them. The operator now exposes the auth server's TLS listener port.

🆕 New Features

  • When embeddedAuthServer.tlsListener is enabled, MCPServer, MCPRemoteProxy and VirtualMCPServer workloads now get an https-auth container port and a Service port 8443 (appProtocol: https), so the listener can be reached through the Service. Affected workloads roll their pods once on the next reconcile. For a VirtualMCPServer with serviceType: LoadBalancer or NodePort, port 8443 is now reachable from outside the cluster; it serves the same auth server routes already public on the http port. Workloads without the listener don't change (#7065)

🐛 Bug Fixes

  • private_key_jwt client assertions with exp: 0, an exp that overflows, or presented in the last second before expiry are now refused with HTTP 401 invalid_client. Before, they could be replayed because their jti replay marker had already expired (#7087)
  • JWTs whose typ marks them as ID-JAGs (oauth-id-jag+jwt) are now rejected wherever an access token is expected, including resource-server bearer auth and token-exchange subject/actor tokens. This prevents token-type confusion when an issuer signs both with the same key (#7089)
  • Client assertions and OpenID Connect request objects whose payload is not valid JSON, or is nested deeper than 10000 levels, are now refused before fosite parses them. This mitigates the go-jose v3 stack-exhaustion advisory GHSA-vvm8-gf78-28g4 (#7090)
  • A Redis failure while recording a client assertion's jti now returns the standard OAuth error code server_error instead of error. The HTTP status is still 500 (#7086)
  • The gjson identity modifiers used by paths like access_token|@upstreamjwt|sub are now registered automatically by authserver.New and upstream.NewOAuth2Provider, so standalone embedders no longer need to register them by hand (#7063)
  • authserver.New now returns a true nil Server on error instead of a typed-nil pointer. Calling Close more than once no longer repeats cleanup or panics. Storage ownership rules for embedders are now documented (#7071)
  • Fixed a missing import that kept the auth server storage integration tests from compiling under -tags integration (#7085)

🧹 Misc

  • CLI help now shows boolean flags as --flag[=true|false] after the spf13/pflag v1.1.0 upgrade. Flag parsing and pass-through of unknown flags are unchanged (#7083)
  • Added a depguard rule that blocks new non-test imports of go-jose v3 and fosite's token/jwt, so new JWT parsing can't bypass the unsafe-JWS guard (#7097)
  • The ID-JAG JOSE typ value is now defined once as oauthproto.JWTTypeIDJAG (#7070)
  • Made the Redis connection-failure tests deterministic by using a client that can never connect, instead of a closed port (#7080)
  • mockoidc subject assertions in the integration tests now pass with both the old and the new mockoidc versions (#7078)
  • Raised the golangci-lint CI timeout to 10 minutes (#7084)
  • Trimmed CODEOWNERS so automatic review requests are opt-in (#7093)

📦 Dependencies

Module Version
github.com/spf13/pflag v1.1.0
github.com/aws/aws-sdk-go-v2 v1.47.8
github.com/aws/aws-sdk-go-v2/config v1.33.16
github.com/aws/aws-sdk-go-v2/service/sts v1.51.9
github.com/cenkalti/backoff/v7 v7.0.3
github.com/go-jose/go-jose/v4 v4.1.9
github.com/gofrs/flock v0.13.2
github.com/modelcontextprotocol/registry v1.8.8
github.com/onsi/ginkgo/v2 v2.34.0
github.com/stacklok/toolhive-catalog v0.20261103.0
github.com/stacklok/toolhive-core v0.0.59
github.com/stacklok/toolhive-core/redisconn v0.0.59
github.com/testcontainers/testcontainers-go v0.45.0
github.com/tidwall/gjson v1.20.2
modernc.org/sqlite v1.62.0
github.com/oauth2-proxy/mockoidc digest e06ed0b
golang.org/x/exp/jsonrpc2 digest 47ce03d
go.starlark.net digest 4f4267f
alpine 3.24.4
ghcr.io/modelcontextprotocol/inspector 2.14.0
ghcr.io/zizmorcore/zizmor 1.32.0
python, registry, index.docker.io/library/alpine digest updates
node (GitHub Actions) 26
anthropics/claude-code-action v1.0.269
docker/login-action v4.8.0
github/codeql-action v4.39.3
helm/kind-action v1.15.2
sigstore/cosign-installer v4.1.3
Full commit log

What's Changed

Full Changelog: v0.63.0...v0.64.0

🔗 Full changelog: v0.63.0...v0.64.0