Skip to content

v0.0.4

Choose a tag to compare

@github-actions github-actions released this 27 Nov 06:58
· 6 commits to main since this release
2cf15c3

Security fixes

  • A failed reload kept serving the old tool list (fail-open). When the tool list couldn't be rebuilt after a config change, for example because two servers claimed the same tool name, the gateway kept the previous list, so a tool you had just revoked stayed callable. Now a failed rebuild serves no server tools until the config resolves again. The five gateway__ verbs stay up, and the failure is in the audit log.
  • Server credentials could follow a redirect to another origin. A server's static headers, bearer token or OAuth token went along when the server redirected the gateway elsewhere, including from https to plain http. Credentials now go only to the configured scheme, host and port, and a redirect to any other origin is refused. For SSE servers, the gateway sends nothing to another origin, whatever address the server's endpoint event names.

Other fixes

  • Writers no longer lose each other's changes. Every write to toolhost.json or the request queue takes a lock, and a save from a stale read is refused (config changed on disk since it was read — nothing written) instead of undoing a newer change, such as bringing back a tool you revoked. The request queue is written atomically.
  • gateway__enable refuses an unapproved tool even when the config has no enabled list.
  • A denial with an empty reason is still shown to the agent.
  • Names from a passthrough upstream are checked against the tool-name rules.
  • toolhost requests shows everything a server petition carries: the URL, the command and every argument, quoted. Control characters in text from the agent are quoted too. A petition carrying both a URL and a command can't be accepted.
  • A direct call to a tool that isn't on the list is recorded in the audit log as tool_forbidden, with the name capped at 256 bytes.
  • Changing call_timeout while calls are in flight no longer races them.
  • A missing OAuth grant now points at the command that exists, toolhost mcp auth <name>.
  • toolhost help no longer prints a group without a title.

Protocol

  • A request whose Origin header isn't a local origin gets 403 before the key is checked, on every route, as the MCP transport specification requires. A Host header that isn't local, on a loopback connection, gets 403 on every route, not only /mcp.

Changes you might notice

  • A redirect that changes scheme, host or port, including http to https, is refused. Configure the server's final URL.
  • Write locks live in ~/.toolhost/locks/.
  • Homebrew installs a cask: brew install gettoolhost/tap/toolhost. The formula is gone.

Also since v0.0.3

  • toolhost attach for 12 clients, merging one local-gateway entry and leaving every other entry alone; --project, --stdio, --dry-run and --print.
  • The five gateway__ verbs (discover, enable, disable, call, request) and the request queue you answer with toolhost requests.
  • toolhost mcp: add, list, get, remove, enable, disable, test, tools, auth, logout and import.
  • Config and state under ~/.toolhost, a private environment per folder, and toolhost init --shared for a committable one.

Verify the download

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp 'https://github.com/gettoolhost/toolhost-local/.github/workflows/release.yml@.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  checksums.txt
sha256sum -c checksums.txt --ignore-missing
gh attestation verify toolhost_darwin_arm64.tar.gz -R gettoolhost/toolhost-local