Repository navigation
v0.75.0
🚀 Toolhive v0.75.0 is live!
This release tightens how skills and AI plugins resolve OCI references and adds an embedded mode for skill dependencies. It also ships several security hardening fixes to Cedar authorization, tool-annotation hints and vMCP code mode, and fixes OIDC upstreams that set a DCR registration endpoint.
🔒 Security fixes
This release fixes four security advisories: two Medium and two Low. Each needs Cedar authorization, and two need vMCP code mode, which is off by default.
Authorization (Cedar policies on MCP traffic)
- GHSA-3xg3-v4rg-c5j2 (4.3): attributes and parents declared in
entities_jsonwere dropped when the middleware built the same entity for a request, so ahas-guardedforbidon them never matched. - GHSA-f3jp-x8mp-pf7g (3.1, Low): tool-annotation hints listed in one MCP session were applied to calls in another. See the per-session hints breaking change below.
vMCP code mode
- GHSA-ph3p-52h9-v9vc (4.3): integers passed from a script reached Cedar as
Long, so aforbidcomparing them withdecimal(...)did not match. - GHSA-rc59-8pgw-8cg5 (3.1, Low): a script could pass argument names that differ only in case, so Cedar and a case-insensitive backend could read different values.
All four were found by Anthropic's OSS scanner.
⚠️ Breaking Changes
- Skill and AI plugin references without a registry host no longer resolve to Docker Hub. References such as
org/skill:v1are now looked up only in the local OCI store, and a missing reference returns 404. To pull from Docker Hub, include the host, for exampledocker.io/org/skill:v1. (migration guide) - Tool-annotation hints are now kept per MCP session. A Cedar policy that permits calls based on hints such as
readOnlyHintnow gets the MCP defaults when the calling session never listed tools. Clients must calltools/listin the same session beforetools/call, or the policy must stop relying on hints. (migration guide)
Migration guide: Registry-less OCI references for skills and AI plugins
This affects CLI users, API and SDK consumers, and maintainers of skill or plugin registries who used references without a registry host, or who relied on bare build tags.
What changed for thv skill and thv ai-plugin (and the matching /api/v1beta/skills and /api/v1beta/plugins endpoints):
install,contentandupgrade: registry-less references (name:tag,org/name[:tag]) resolve only from the local OCI store. A miss returns404.upgradealso resolves unqualified lock filesourcevalues locally.- Registry catalogs: an entry whose OCI identifier has no host now returns
422. push: bare tags and registry-less references are rejected with400.build:- A bare
--tag v0.1.0is stored as<name>:v0.1.0, and omitting--tagstores<name>:latest. name:tagandorg/name:tagare now accepted.- Overwriting a tag that belongs to a different skill or plugin returns
409 Conflictunless you pass--force(force: truein the API).
- A bare
- Unchanged: existing local builds with bare tags can still be listed, removed and resolved. Lock file entries with an unqualified
resolvedReferencestill restore throughsync.
Before
thv skill install org/skill:v1 # silently pulled index.docker.io/org/skill:v1
thv skill build ./my-skill --tag v0.1.0 # stored bare "v0.1.0", shared by every skill
thv skill push org/my-skill:v0.1.0 # implicitly pushed to Docker HubAfter
thv skill install docker.io/org/skill:v1 # explicit host required for Docker Hub
thv skill build ./my-skill --tag v0.1.0 # stored as "my-skill:v0.1.0"
thv skill install my-skill:v0.1.0 # resolved from the local store
thv skill build ./my-skill --tag ghcr.io/org/my-skill:v0.1.0
thv skill push ghcr.io/org/my-skill:v0.1.0Migration steps
- Add a registry host (
docker.io/,ghcr.io/and so on) to every remote skill or plugin reference in scripts, API calls and lock filesourcevalues. - Registry maintainers: change OCI identifiers from
org/skill:1.0todocker.io/org/skill:1.0, or to whichever host they actually live on. - Update scripts that installed local builds by bare tag to use
<name>:<tag>. - Add
--forceonly where you mean to overwrite a tag that another skill or plugin owns. - Apply the same changes to
thv ai-plugin build/push/install.
Migration guide: Per-session tool-annotation hints
This affects operators of ToolHive proxies whose Cedar policies permit tools/call based on tool annotation hints such as readOnlyHint or destructiveHint.
Until now, the authorization middleware kept one set of hints per proxy, taken from the most recent tools/list by any client. This was a security issue: hints listed in one session could admit a call in another. Hints are now recorded and read per MCP session. A session is the caller's identity together with the Mcp-Session-Id header or the legacy SSE session parameter.
Calls now get the MCP default hints in these cases:
- The session never listed tools.
- The request has no session ID, or has conflicting ones.
- The request uses the stateless 2026-07-28 protocol revision.
- The session was evicted from the 4096-entry cache.
A hint-based permit therefore now denies calls from Virtual MCP placed in front of the proxy, from thv mcp call, and to stateless servers.
A query parameter that matches a session parameter name only when case is ignored, such as SessionId, is now refused.
Virtual MCP's own admission is unaffected.
Before
// Worked for any client once some client had listed tools on the proxy
permit(principal, action == Action::"call_tool", resource)
when { resource.readOnlyHint == true };After
// Same policy: now only matches when this session listed tools first.
// To pin hints regardless of session, declare them in entities_json, e.g.
// {"uid": {"type": "Tool", "id": "weather"}, "attrs": {"readOnlyHint": true}, "parents": []}
permit(principal, action == Action::"call_tool", resource)
when { resource.readOnlyHint == true };Migration steps
- Find Cedar policies that permit calls based on
readOnlyHint,destructiveHint,idempotentHintoropenWorldHint. - Make sure clients call
tools/listin the same MCP session beforetools/call. - For callers without a session (vMCP in front of a proxy,
thv mcp call, stateless servers), either declare the hints for trusted tools inentities_jsonor permit by tool name. - Stop clients from sending query parameters such as
SessionIdthat differ from the session parameter name only in case.
Security fix (merge commit f5b701d8) — ANT-2026-2O88ZN15
🆕 New Features
- Skills can set
toolhive.requires-mode: embeddedto install theirtoolhive.requiresdependencies inside the requiring skill, so agents discover only one skill. Lock files that use embedded dependencies are written at schema version 2, so everyone sharing such a lock file needs v0.75.0 or later (#7388). thv skill validateno longer warns about links into embedded dependency directories, and it suggestsSKILL.embedded.mdwhen a link points at a dependency'sSKILL.md(#7463).- Go library consumers can call the hardened OAuth client probes (
dcr.ProbeClientAuthorizationEndpoint,dcr.ProbeClientTokenEndpoint) andoauthproto.IssuersEqualdirectly, and can inspect dynamic client registration failures as a typed*oauthproto.RegistrationError(#7477). thv skill buildandthv ai-plugin buildacceptname:tagandorg/name:tagtags, scope bare tags to the skill or plugin name, and protect against overwriting another artifact's tag unless you pass--force(#7433, #7435).
🐛 Bug Fixes
- Security: Cedar entities declared in
entities_jsonare now merged with the entities the middleware builds for each request, instead of being replaced by them. Declared attributes such asownerand declaredToolGroupparents now take effect, and token claims, tool arguments and server-reported annotations can no longer override them. Theentities_jsonexample indocs/authz.mdwas corrected (merge commit bfe7e58e, ANT-2026-KYBO4ZCQ). - Security: tool-call arguments from vMCP code-mode scripts are now decoded the same way as HTTP
tools/callparameters before Cedar and the backend see them. Script integers now compare as decimals, the same as over HTTP. Arguments with member names that differ only in case (such asPathandpath) are rejected with a script error (merge commit 9d226ee4, ANT-2026-U9F5Z3OM, ANT-2026-P4O6SJNX). - Security: tool-call trace spans now redact sensitive keys nested inside objects and arrays in
gen_ai.tool.call.argumentsandmcp.tool.arguments, so these secrets are no longer exported to trace backends (#7483). - OIDC upstreams whose
dcr_configsetsregistration_endpointnow start. Previously the auth server failed withcache put: invalid_requestand registered a new client on every attempt. Such configs now also requireissuer_urlunlessdcr_config.discovery_urlis set (#7473). - Building two skills or plugins with the same bare
--tagno longer silently overwrites the first one in the local OCI store (#7433, #7435).
🧹 Misc
- Added a shared
pkg/ocipackage for parsing OCI references and tagging local builds, now used by both skills and plugins (#7432). - Added E2E tests for embedded skill dependencies, covering user-scope install, trust refusal and lock-driven sync (#7464).
📦 Dependencies
| Module | Version |
|---|---|
github.com/stacklok/toolhive-core |
v0.0.64 |
github.com/stacklok/toolhive-core/redisconn |
v0.0.64 |
github.com/modelcontextprotocol/go-sdk |
v1.9.0 |
github.com/golang-jwt/jwt/v5 |
v5.4.0 |
github.com/lestrrat-go/jwx/v4 |
v4.7.1 |
github.com/aws/aws-sdk-go-v2 |
v1.49.0 |
github.com/shirou/gopsutil/v4 |
v4.26.11 |
Two small behaviour changes come with these updates (#7485):
- The vMCP loopback Host guard now accepts
localhostin any letter case. - The 401
error_descriptionfor an expired token now ends with the elapsed time, for exampletoken is expired by 1m3s.
👋 Welcome to our newest contributors: @HammrLord 🎉
Full commit log
What's Changed
- Add embedded mode for toolhive.requires dependencies by @peppescg in #7388
- Export OAuth client probes, DCR errors, and issuer helper by @samuv in #7477
- Add E2E tests for embedded skill dependencies by @peppescg in #7464
- Tolerate embedded dependency links in skill validate by @peppescg in #7463
- Add shared pkg/oci reference parser and local-build helpers by @samuv in #7432
- Scope skill build tags and unify skill OCI references by @samuv in #7433
- Scope plugin build tags and unify plugin OCI references by @samuv in #7435
- Start OIDC upstreams that set a DCR registration endpoint by @tgrunnagle in #7473
- Redact sensitive keys in nested tool arguments by @HammrLord in #7483
- Bump toolhive-core to v0.0.64 by @tgrunnagle in #7485
- Release v0.75.0 by @toolhive-release-app[bot] in #7487
New Contributors
- @HammrLord made their first contribution in #7483
Full Changelog: v0.74.0...v0.75.0
🔗 Full changelog: v0.74.0...v0.75.0