Repository navigation
Release Notes
"It connects." Tether talks to external MCP servers.
Added
[[mcp_server]]tables intether.toml: an MCP server over stdio (command,args, anenvallowlist for the child besidePATH) or streamable HTTP (url,headers), with atimeout_secsfor the handshake and for each call. Validated when the policy loads. A header value takes${NAME}from the environment, so a token is never written in the policy file, which every trace records.tether-mcp::client::ExternalServer: the MCP wire-protocol client, built onrmcp3.x behind theMcpClienttrait.initializewith a check of the negotiated protocol version,tools/list,tools/call, timeouts, and a child process that stops with the run. A server that never answersinitializefails the run at start.tether-mcp::Registry: merges the built-in sandbox server with every configured server into the one tool list the agent sees. A name collision is exposed as<server>__<tool>; the sandbox keeps the bare name. Rules see every tool as<server>.<tool>.run.created.mcp_servers: each server's id, transport, negotiated protocol version and reported name. Insidedata, so the frozen envelope is unchanged.- Policy rules can match on
server, so one rule covers a whole server. tether tools [--policy] [--json]: the merged tool list by server without starting a run.examples/mcp-filesystem: the demo against the reference filesystem server.- The
rmcpcargo feature ontether-mcpandtether-core, on by default. Without it a policy naming a server fails at start with a clear error. tether resume, and a replay or eval that goes live after leaving the recording, connect the servers the policy names, so the external tools work there too. A replay that stays on the recording connects nothing.--trust-recorded-serversonreplay,evalandresume. A trace's recorded policy could name any command, so those commands start a server only from a--policyfile or with this flag, and print what it runs first.tether inspectshows a call to an external server as<server>.<tool>.SECURITY.mdsays what an external MCP server can do: it is not sandboxed, and policy is the only check on it.
Security
Found in a review of the whole codebase before this release.
- Tool arguments sent as a JSON list were run by the built-in tools but had no
argvorpathfor a rule to match, so they passed every such rule. The built-in tools now take a JSON object only. list_dirchecked no path and listed any directory on the machine. It is held to the workspace like the other file tools.- A
denyoraskon apathor command name now ignores letter case, and matches a path that climbs out with... Both used to slip past. - A
toolpattern such asfs.*now covers a tool whose name has a/. - A blob is checked against its hash and must be a plain file on every read. A trace directory could carry a blob that was a link to a local file, and
tether replaywould copy that file into its output. - A crafted trace could crash
replayandeval, or hang them for minutes through the pattern matcher. Both are fixed; matching no longer backtracks. - Requests carrying credentials (model providers, HTTP MCP servers, OTLP export) no longer follow redirects.
tether inspect,tether toolsand the ask prompt show control characters as escapes, so a trace or a server cannot rewrite the terminal.- The ask prompt shows
pathandargvfirst and says how much it cut, so a longcontentcannot hide what is being approved. - The daemon removes only a socket at its socket path, never another file.
Fixed
execwith large input could hang for ever, past the time limit: input, output and the limit now run together.- A command's process group is killed when it returns, not only when it times out, so background jobs do not outlive it.
- Output is capped at 4 MiB per stream and
read_fileat 16 MiB, so a command that prints without end cannot exhaust memory or disk. - A trace is locked by its writer.
tether resumeon a run that was still alive wrote a second run into the same file and broke it for good. - The trace is synced to disk at each checkpoint and on a halt, not only at the end.
- The daemon could shut down as idle while a run was being created, and its halt did nothing for a run left waiting on an ask.
- A run under the daemon whose agent crashed, or was killed, stayed in progress for ever and kept the daemon and its MCP servers alive. The daemon now halts a run with no call from its agent for
idle_timeout_secs([budget], default 600, 0 for never); the run can be resumed. (#45) - A second Ctrl-C exited
tetherbut left the sandbox command it was running. The command and what it started are now killed first. - A socket path too long for the system gets an error that says so.
- A dollar budget on a model with no price now warns that it cannot apply.
Changed
- Every tool of an external server is
external = true; replay returns the recorded result and starts nothing. Replay also carries the recordedmcp_servers, so a replayedrun.createdequals the original, including for a trace written before 0.5, which has none. - Logging defaults to
info,rmcp=warnand goes to stderr;RUST_LOGoverrides it. mcpis back in the PyPI and npm package keywords, this time truthfully.
Install tether-cli 0.5.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/chizy7/tether/releases/download/v0.5.0/tether-cli-installer.sh | shDownload tether-cli 0.5.0
| File | Platform | Checksum |
|---|---|---|
| tether-cli-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| tether-cli-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| tether-cli-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| tether-cli-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |