Skip to content

v0.75.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 04 Dec 09:18
· 7 commits to main since this release
7df454a

🚀 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_json were dropped when the middleware built the same entity for a request, so a has-guarded forbid on 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 a forbid comparing them with decimal(...) 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:v1 are now looked up only in the local OCI store, and a missing reference returns 404. To pull from Docker Hub, include the host, for example docker.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 readOnlyHint now gets the MCP defaults when the calling session never listed tools. Clients must call tools/list in the same session before tools/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, content and upgrade: registry-less references (name:tag, org/name[:tag]) resolve only from the local OCI store. A miss returns 404. upgrade also resolves unqualified lock file source values locally.
  • Registry catalogs: an entry whose OCI identifier has no host now returns 422.
  • push: bare tags and registry-less references are rejected with 400.
  • build:
    • A bare --tag v0.1.0 is stored as <name>:v0.1.0, and omitting --tag stores <name>:latest.
    • name:tag and org/name:tag are now accepted.
    • Overwriting a tag that belongs to a different skill or plugin returns 409 Conflict unless you pass --force (force: true in the API).
  • Unchanged: existing local builds with bare tags can still be listed, removed and resolved. Lock file entries with an unqualified resolvedReference still restore through sync.

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 Hub

After

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.0

Migration steps

  1. Add a registry host (docker.io/, ghcr.io/ and so on) to every remote skill or plugin reference in scripts, API calls and lock file source values.
  2. Registry maintainers: change OCI identifiers from org/skill:1.0 to docker.io/org/skill:1.0, or to whichever host they actually live on.
  3. Update scripts that installed local builds by bare tag to use <name>:<tag>.
  4. Add --force only where you mean to overwrite a tag that another skill or plugin owns.
  5. Apply the same changes to thv ai-plugin build/push/install.

PRs: #7432, #7433, #7435 — Fixes #7416

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

  1. Find Cedar policies that permit calls based on readOnlyHint, destructiveHint, idempotentHint or openWorldHint.
  2. Make sure clients call tools/list in the same MCP session before tools/call.
  3. For callers without a session (vMCP in front of a proxy, thv mcp call, stateless servers), either declare the hints for trusted tools in entities_json or permit by tool name.
  4. Stop clients from sending query parameters such as SessionId that 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: embedded to install their toolhive.requires dependencies 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 validate no longer warns about links into embedded dependency directories, and it suggests SKILL.embedded.md when a link points at a dependency's SKILL.md (#7463).
  • Go library consumers can call the hardened OAuth client probes (dcr.ProbeClientAuthorizationEndpoint, dcr.ProbeClientTokenEndpoint) and oauthproto.IssuersEqual directly, and can inspect dynamic client registration failures as a typed *oauthproto.RegistrationError (#7477).
  • thv skill build and thv ai-plugin build accept name:tag and org/name:tag tags, 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_json are now merged with the entities the middleware builds for each request, instead of being replaced by them. Declared attributes such as owner and declared ToolGroup parents now take effect, and token claims, tool arguments and server-reported annotations can no longer override them. The entities_json example in docs/authz.md was 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/call parameters 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 as Path and path) 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.arguments and mcp.tool.arguments, so these secrets are no longer exported to trace backends (#7483).
  • OIDC upstreams whose dcr_config sets registration_endpoint now start. Previously the auth server failed with cache put: invalid_request and registered a new client on every attempt. Such configs now also require issuer_url unless dcr_config.discovery_url is set (#7473).
  • Building two skills or plugins with the same bare --tag no longer silently overwrites the first one in the local OCI store (#7433, #7435).

🧹 Misc

  • Added a shared pkg/oci package 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 localhost in any letter case.
  • The 401 error_description for an expired token now ends with the elapsed time, for example token 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

Full Changelog: v0.74.0...v0.75.0

🔗 Full changelog: v0.74.0...v0.75.0