Repository navigation
Releases
Releases · gettoolhost/toolhost-local
v0.0.5
Fixes
- A config that doesn't load is no longer silent. When the config on disk stops loading (a syntax error, an unreadable file, or a deleted one), the gateway keeps serving the last good config. Dropping every tool on a typo would punish you. But that also means a revocation in a broken hand edit hasn't taken effect. Now
toolhost status,toolhost doctorand baretoolhostsayconfig invalid since <time>: <error>; still running the previous config, anddoctorexits 1 until the config loads again. - Tools that don't resolve are no longer silent. When two servers claim one tool name, the gateway serves no tools from any server until the clash is gone, as in v0.0.4. Now
status,doctorand baretoolhostsaycould not resolve the tools since <time>: <error>; serving no tools from any server until they resolve, anddoctorexits 1 while it lasts. - Both reports cover every gateway on the config, stdio ones included, and they work even when the config no longer parses.
- Deleting the config used to go unnoticed by a running gateway. It now counts as a config that doesn't load.
- Bare
toolhostwith a broken config used to print nothing and exit 0. It now reports the error and exits 1. - For a config that exists but doesn't parse,
doctornow says to correct the file. It used to suggesttoolhost init, which refuses to overwrite it.
Changes you might notice
GET /statusandtoolhost status --jsoncarryconfig_errorandresolve_error, each{since, error}, while they last.- While a gateway isn't serving what its config says, it keeps a note at
degraded/<pid>.jsonin the environment's state folder,~/.toolhost/degraded/for the global one. The note goes when the fault does, or when the gateway stops.
Release pipeline
- The verify step now names the repository when it downloads the draft release. In v0.0.4 the step failed, and the release was verified and published by hand.
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-localv0.0.4
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.jsonor 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__enablerefuses an unapproved tool even when the config has noenabledlist.- A denial with an empty reason is still shown to the agent.
- Names from a
passthroughupstream are checked against the tool-name rules. toolhost requestsshows 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_timeoutwhile calls are in flight no longer races them. - A missing OAuth grant now points at the command that exists,
toolhost mcp auth <name>. toolhost helpno longer prints a group without a title.
Protocol
- A request whose
Originheader isn't a local origin gets403before the key is checked, on every route, as the MCP transport specification requires. AHostheader that isn't local, on a loopback connection, gets403on 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 attachfor 12 clients, merging onelocal-gatewayentry and leaving every other entry alone;--project,--stdio,--dry-runand--print.- The five
gateway__verbs (discover,enable,disable,call,request) and the request queue you answer withtoolhost 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, andtoolhost init --sharedfor 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-localv0.0.3
v0.0.2
v0.0.1
Full Changelog: https://github.com/gettoolhost/toolhost-local/commits/v0.0.1