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 分