snouty

com.antithesis由 antithesis.com 發布v0.9.1更新於 Nov 5, 2026

Launch and triage Antithesis runs, run commands at a moment of a run, and search the docs

概覽

AI 產生的概覽

把 Antithesis 測試指令開放給 AI 助理:啟動與排查執行、在執行中下指令、搜尋文件。

可以做什麼
  • 啟動並在本機驗證 Antithesis 執行,包括推送映像與檢查 docker-compose 設定
  • 列出、檢視、等待與取消執行,讀取屬性(斷言)結果、建置日誌與分支日誌
  • 以關鍵字或事件集 DSL 查詢檢索某次執行的事件
  • 在進行中的執行之指定時刻執行 bash 腳本
  • 在本機搜尋 Antithesis 文件
適用情境
當你使用 Antithesis 決定性測試,希望助理代為啟動執行、查看狀態與斷言結果、翻查日誌與事件,或在執行中的系統裡跑診斷腳本,而不必切換到命令列時使用。
執行需求
需在本機安裝本機程序(npm 套件或預先編譯的執行檔);MCP 伺服器屬於不穩定功能,須設定 SNOUTY_UNSTABLE_FEATURES=mcp 才會啟用。需要 Antithesis 租戶與憑證(ANTITHESIS_API_KEY,或由 snouty login 儲存的憑證),啟動執行另需倉庫位址。launch 與 validate 需要 Docker Compose v2 以及 Docker 或 Podman 引擎。加入伺服器前先執行一次 snouty login。
安裝前請注意
伺服器本身沒有驗證機制,依賴 snouty 儲存或環境變數中的憑證,因此助理會以你的 Antithesis 帳號身分操作。工具可以啟動執行、取消執行,並在執行中的系統裡執行 bash 腳本,會消耗租戶資源並改變狀態。MCP 功能明確標示為不穩定,工具與輸出可能變動。專案設定檔需先信任後才會被讀取。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 snouty,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

snouty

A CLI for the Antithesis API. See the REST API reference for details on available endpoints and parameters.

Usage

Snouty provides the following subcommands. Invoke snouty <command> --help to find out more.

  • snouty login: sign in and store your tenant, repository, and credentials.
  • snouty launch: push images and kick off an Antithesis run.
  • snouty runs: list and inspect Antithesis test runs and their results.
    • snouty runs list: list runs, with status/launcher/date filters.
    • snouty runs show <run_id>: show details for a single run.
    • snouty runs wait [--until ready|complete] <run_id>: poll a run until it is ready to use or complete.
    • snouty runs cancel <run_id>: cancel a run that is starting or in progress.
    • snouty runs properties <run_id>: list property (assertion) results.
    • snouty runs build-logs <run_id>: stream a run's build logs.
    • snouty runs logs <run_id> <hash> [vtime]: stream a run's logs along one branch.
    • snouty runs events <run_id> -m <needle>: search events in a run.
    • snouty runs search <run_id> <query>: run an event-set DSL query against a run's events.
    • snouty runs exec <run_id> <hash> <vtime> [script]: run a bash script at a given moment in a run that is in progress (a test run or a debugging session). Needs tenant release 64.0 or newer.
  • snouty debug: start a debug session.
  • snouty validate: locally run and validate your docker-compose.yaml setup.
  • snouty doctor: check your environment is configured correctly.
  • snouty docs: search the Antithesis documentation locally.
  • snouty docker-credential <action>: the Docker and Podman credential helper for your tenant registry. See Docker credential helper.
  • snouty completions <shell>: generate shell completion scripts.
  • snouty version: print version and build information.
  • snouty update: install the latest version. Set update_channel = "unstable" (or SNOUTY_UPDATE_CHANNEL=unstable) to also consider pre-releases; override the setting for one run with --channel stable|unstable.

Add --json for machine-readable output. See COOKBOOK.md for worked recipes.

Requirements

Commands that work with docker-compose.yaml files (e.g. launch, validate) require:

  • Docker Compose v2 — snouty drives either the standalone docker-compose binary or the docker compose CLI plugin (bundled with Docker Desktop/Engine), whichever it finds on your PATH. podman-compose is no longer supported.
  • A container engine — Docker or Podman, used to build and push images.

If both engines are installed, Podman is preferred. Override the engine with SNOUTY_CONTAINER_ENGINE=docker or container_engine in a settings file (see below); an explicit DOCKER_HOST in your environment is always respected.

VM-backed and remote container engines

snouty validate bind-mounts a temp directory from this machine into each container. It watches this directory for the setup-complete event. Some container engines run inside a VM or on another machine. If the engine does not share this machine's temp directory, the engine creates the bind source on its own side and reports no error. The directory on this machine stays empty. Validate then fails with timed out waiting for setup-complete event, even though the system under test emits the event.

There are two fixes:

  • Share this machine's temp directory with the engine. See the mount documentation for your engine.

  • Set SNOUTY_TEMP_DIR to a directory under a path the engine already shares with write access:

    sh
    SNOUTY_TEMP_DIR=/path/shared/with/the/vm/snouty snouty validate ./config

    SNOUTY_TEMP_DIR must point to an empty or non-existent directory. This prevents validate from reading events that a previous run left behind. Snouty does not remove the directory after the run, so remove it before the next run.

Install snouty

Install prebuilt binaries via shell script

sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/antithesishq/snouty/releases/latest/download/snouty-installer.sh | sh

This also allows you to update via snouty update later on.

Install prebuilt binaries via cargo binstall

sh
cargo binstall snouty

Install prebuilt binaries via npm

sh
npm install -g snouty

The package downloads the prebuilt binary for your platform from the GitHub Release on its first run, and installs the Docker credential helper.

Install snouty from source

sh
cargo install snouty

Download prebuilt binaries

Uninstalling

cargo uninstall snouty || rm -f "$(which snouty)" "$(which snouty-update)" "$(which docker-credential-snouty)"

If you set up shell completions, also remove the snouty line from your shell's startup file.

Configuration

Using the API requires at least a tenant and a credential. snouty launch also needs a repository — the container registry it pushes the config image to. Docs commands need no configuration at all.

The quickest way is snouty login, which asks for each value and stores the result:

sh
snouty login

Settings can also come from environment variables or a TOML settings file. An environment variable always takes precedence.

sh
export ANTITHESIS_TENANT="your-tenant"export ANTITHESIS_REPOSITORY="us-central1-docker.pkg.dev/your-project/your-repo"export ANTITHESIS_API_KEY="your-api-key"

Run snouty settings show at any point to see what snouty resolves, and which settings files it reads. Run snouty doctor to check that your environment works.

Settings files

Settings can instead live in a TOML file. Snouty reads two, the first taking precedence:

  1. A project settings file — ./.snouty.toml by default. Point elsewhere with the global --settings <path> flag or the SNOUTY_SETTINGS_PATH environment variable.
  2. A global settings file — settings.toml under $XDG_CONFIG_HOME/snouty/ (falling back to $HOME/.config/snouty/).
toml
# .snouty.tomltenant = "your-tenant"repository = "us-central1-docker.pkg.dev/your-project/your-repo"

A matching environment variable always overrides the file. The supported keys and their environment-variable equivalents are:

Settings keyEnvironment variablePurpose
tenantANTITHESIS_TENANTYour Antithesis tenant. Becomes the API host, https://<tenant>.antithesis.com.
repositoryANTITHESIS_REPOSITORYContainer registry that snouty launch pushes the config image to.
base_urlANTITHESIS_BASE_URLAPI URL, replacing the one derived from the tenant. See the proxy section below.
container_engineSNOUTY_CONTAINER_ENGINEForce docker or podman instead of auto-detecting.
update_channelSNOUTY_UPDATE_CHANNELstable (default) or unstable, for snouty update.
api_cache_max_file_sizeSNOUTY_API_CACHE_MAX_FILE_SIZELargest response the API cache stores, as 10 MB, 10 MiB or a byte count.

A credential is never read from a settings file. snouty login keeps credentials apart from settings — see Authentication.

Run snouty settings show to print the value that snouty resolved for each setting, and the settings files it read.

Trusting a project settings file

snouty uses ./.snouty.toml only after you trust it. Until you trust or deny the file, each command that reads the settings stops with an error. Review the file, then decide:

sh
snouty settings trust   # use ./.snouty.toml while its content stays the samesnouty settings deny    # ignore ./.snouty.toml

Each command also takes the path of a settings file. When a trusted file changes, you must trust it again. snouty keeps the decisions in trust.toml, next to the global settings file.

A file that you name with --settings or SNOUTY_SETTINGS_PATH needs no trust, because you chose it. To use every project settings file without a check, for example in CI, set SNOUTY_SETTINGS_TRUST=all.

Profiles

A settings file can define named profiles for switching between environments. Select one with the global --profile <name> flag or the ANTITHESIS_PROFILE environment variable (the flag wins):

toml
# .snouty.tomltenant = "default-tenant"repository = "registry.example.com/default"
[profile.staging]tenant = "staging-tenant"repository = "registry.example.com/staging"
sh
snouty --profile staging runs list

For any one setting, snouty uses the first value it finds, highest precedence first:

  1. environment variable
  2. the selected profile in the project settings file
  3. the selected profile in the global settings file
  4. the top-level default in the project settings file
  5. the top-level default in the global settings file

Unstable features

When a subcommand or a flag, or the Antithesis API it calls, is still changing shape, snouty can keep it behind a gate, turned on by naming its feature in SNOUTY_UNSTABLE_FEATURES (a comma-separated list). Anything behind this gate can change its behavior, its flags, or its id, or go away, in any release.

FeatureEnables
mcpsnouty mcp, the MCP server. Its tools and their output can still change.
teamslaunch --max-compute-hours, launch --setup-timeout and debug --duration. They need tenant version 66 or newer.

An id that snouty does not know, such as the retired runs-exec, has no effect.

MCP server

snouty mcp serves most of snouty's commands to AI agents as Model Context Protocol tools, over the stdio transport. It is an unstable feature: set SNOUTY_UNSTABLE_FEATURES=mcp to turn it on. The agent starts the server itself.

Run snouty login once before you add the server. The server uses snouty's credentials and configuration to access Antithesis. The MCP server has no authentication of its own and communicates with clients only over stdio (stdin, stdout).

Run snouty mcp --help to see all tools.

snouty is listed in the MCP Registry as com.antithesis/snouty.

The server sets no time or output limit on a tool call. The client sets them: when it cancels a call, the server kills the call's command. Up to 8 tool calls run at the same time, and --max-concurrent-calls changes that number.

Claude Code

sh
claude mcp add snouty --scope user -e SNOUTY_UNSTABLE_FEATURES=mcp -- snouty mcp

--scope user makes the server available in every project. Without it, the server is added only for the current project. Run claude mcp list to check that it connects.

Codex

sh
codex mcp add snouty --env SNOUTY_UNSTABLE_FEATURES=mcp -- snouty mcp

Run codex mcp list to check it, and start a new session to use it.

Other clients

A JSON config for a stdio server looks like this one. The key names can be different in your client, so refer to its documentation:

json
{  "mcpServers": {    "snouty": {      "command": "snouty",      "args": ["mcp"],      "env": { "SNOUTY_UNSTABLE_FEATURES": "mcp" }    }  }}

Debugging the MCP server

  1. Set RUST_LOG=debug in the server's environment, and add --verbose to its args. For example: claude mcp add snouty -e SNOUTY_UNSTABLE_FEATURES=mcp -e RUST_LOG=debug -- snouty --verbose mcp.
  2. Read the server's stderr in the client. In Claude Code, start claude --debug and use /mcp to see the server's state. The server logs each command line that it runs, as running: snouty --json ….
  3. Run the logged command yourself, in a terminal. It prints what the tool call returned. Set RUST_LOG=debug on it too, to see its own debug log: the server does not pass RUST_LOG to its tool calls.

Authentication

Snouty accepts four kinds of credentials: OAuth tokens from a browser sign-in, an API key, a GitHub Actions OIDC token, and a deprecated username and password. On a workstation, run snouty login and let snouty store a credential for you. In CI and in scripts, use environment variables or GitHub Actions OIDC tokens.

Snouty looks for a credential in this order, and uses the first one it finds:

  1. ANTITHESIS_API_KEY in the environment.
  2. ANTITHESIS_USERNAME and ANTITHESIS_PASSWORD in the environment (deprecated).
  3. The credential stored for the selected --profile: the system keychain first, the credentials file second.
  4. The credential stored for the default profile: the system keychain first, the credentials file second.
  5. A GitHub Actions OIDC token, when the workflow exposes one.

An environment variable always wins over a stored credential. Unset ANTITHESIS_API_KEY when you want snouty to use what snouty login stored.

Run snouty doctor to see which credential snouty resolves, and where it comes from. doctor also warns when more than one source holds a credential, and names the action that hands the run to the next source.

Browser sign-in with snouty login

snouty login asks for your tenant and your repository, then asks how you want to authenticate. It writes the tenant and the repository to the global settings file, and it stores the credential separately.

sh
snouty loginsnouty login --tenant "your-tenant" --repository "us-central1-docker.pkg.dev/your-project/your-repo"snouty login --profile staging

Pick Single sign-on (OAuth) to sign in through your identity provider. Snouty binds a loopback server, opens a browser, and waits up to five minutes for the redirect to come back. It prints the sign-in URL as well, so you can open the URL by hand when it cannot open a browser for you. The exchange uses PKCE, so no shared secret is needed.

Two limits are worth knowing:

  • The menu offers single sign-on only when your tenant enables CLI OAuth. Without it, snouty login asks for an API key straight away.
  • The browser must run on the same machine as snouty, because the redirect goes to http://localhost:<port>/callback. On a headless machine or a remote VM, either forward that port to your workstation, or use another authentication method.

Where stored credentials live

On macOS, snouty stores the credential in the keychain, under the service name snouty. The entry is named _default_, or profile_<name> for a named profile. Set SNOUTY_DISABLE_KEYCHAIN_CREDENTIAL_STORAGE=1 to use the credentials file instead.

On every other platform, snouty writes credentials.toml next to the global settings file, in $XDG_CONFIG_HOME/snouty/ (falling back to $HOME/.config/snouty/).

API key

An API key works with every command, and needs no browser. Ask Antithesis support for one if you do not have one.

sh
export ANTITHESIS_API_KEY="your-api-key"

snouty login also stores an API key for you, which keeps the key out of your shell history and out of your environment.

Credential injection by an HTTPS proxy

Some VM and development platforms hold your credentials for you, and inject them into outbound requests. The platform gives you a hostname that stands in for https://<tenant>.antithesis.com. That hostname terminates TLS, replaces the Authorization header with the real credential, and forwards the request. Your machine never holds the secret. Replit and exe.dev work this way; check your platform's documentation for the hostname it gives you.

Point snouty at that hostname, and give it a placeholder API key:

sh
export ANTITHESIS_BASE_URL="https://antithesis.int.example.com"export ANTITHESIS_API_KEY="replaced-by-proxy"

Three things to know:

  • ANTITHESIS_BASE_URL replaces the URL that snouty derives from the tenant, so every API request goes to the proxy instead. Snouty takes the value as given, and only trims a trailing / or /api/v1.
  • Snouty still needs a credential, or it stops before it sends a request. Snouty never inspects the value, so any non-empty string works. Use an obvious placeholder such as replaced-by-proxy, so a reader sees that the real secret is elsewhere. An empty value counts as unset, and does not work.
  • Keep ANTITHESIS_TENANT set. Only the derived base URL uses it, and ANTITHESIS_BASE_URL replaces that, but snouty doctor reports a missing tenant as a failure.

snouty doctor confirms the whole setup: it reports the API key as provided, and it contacts the API through the proxy to report the API and tenant versions.

ANTITHESIS_EXTRA_HEADERS adds headers to every API request, as one Name: value pair per line. Use it when the platform expects a header of its own.

sh
export ANTITHESIS_EXTRA_HEADERS="X-Proxy-Token: abc123"

Docker credential helper

docker-credential-snouty gives Docker and Podman your snouty credentials for your tenant's container registry, registry.<tenant>.antithesis.com.

[!NOTE] The tenant registry must be enabled on your tenant. Contact Antithesis support to request it.

To set it up, add the registry to credHelpers in ~/.docker/config.json for Docker, or in ~/.config/containers/auth.json for Podman:

json
{  "credHelpers": {    "registry.<tenant>.antithesis.com": "snouty"  }}

The helper uses the same settings as snouty in the directory where Docker runs it, including ./.snouty.toml. With --profile or ANTITHESIS_PROFILE, the helper uses that profile. Otherwise, it uses the first profile whose repository is on registry.<tenant>.antithesis.com.

The shell script installer, the npm package and the Nix package install docker-credential-snouty. For another install method, make the alias yourself, in a directory on your PATH:

sh
ln -s "$(command -v snouty)" ~/.local/bin/docker-credential-snouty

Then docker push, docker pull, podman push and podman pull automatically use your snouty credentials for the Antithesis docker registry.

snouty launch --config does not need the helper. When the repository is on the tenant registry, snouty gives your credential to Docker or Podman when it pushes the images of the launch. For Docker, this needs Docker 28.3.0 or later. With an older Docker, configure the helper as shown above. For Podman, snouty gives a temporary auth file, which holds no secret, that sends Podman to docker-credential-snouty, and links that helper to itself in its config directory ($XDG_CONFIG_HOME/snouty or ~/.config/snouty). A username and password does not work with the registry, so with it, Docker or Podman pushes with its own credentials.

Username and password (deprecated)

Username and password authentication is deprecated. It works with snouty launch and snouty debug only, and both print a warning that points to snouty login. Every other command that talks to the API refuses it. Use snouty login or an API key instead.

snouty login does not set up a username and password. Set ANTITHESIS_USERNAME and ANTITHESIS_PASSWORD instead. A username and password that an older snouty stored in the credentials file still works.

Running in CI

snouty launch runs in any CI system. See CI.md for complete workflows for GitHub Actions, GitLab CI, Buildkite and CircleCI.

Shell Completions

Snouty supports tab completions for bash, zsh, fish, elvish, and PowerShell. Have your shell generate them at startup, as below. A completion script saved to a file describes the snouty that wrote it, and goes stale when snouty update installs a new version. Open a new shell after each update to load the new completions.

Bash

sh
# Add to ~/.bashrceval "$(snouty completions bash)"

Zsh

sh
# Add to ~/.zshrc, after compinitautoload -Uz compinitcompinitsource <(snouty completions zsh)

Fish

fish
# Put this line in ~/.config/fish/completions/snouty.fishsnouty completions fish | source

Elvish

elvish
# Add to ~/.config/elvish/rc.elvif (has-external snouty) { eval (snouty completions elvish | slurp) }

PowerShell

powershell
# Add to $PROFILEsnouty completions powershell | Out-String | Invoke-Expression

Credits

This project was originally developed by orbitinghail for use by Graft. It was donated to Antithesis for the benefit of everyone on Feb 27, 2026.

來源:README.md,提交 da3c7b6

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

4
  1. v0.9.1最新Nov 5, 2026
  2. v0.9.0Nov 4, 2026
  3. v0.9.0-rc.4Nov 4, 2026
  4. v0.9.0-rc.3Nov 3, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分