attempt allows you to retry fallible commands with a delay.
attempt [BACKOFF] [OPTIONS] [COMMAND]...
# Rerun database migrations if the server was not ready
attempt --retry-if-contains "server not ready" sqlx migrate
# Use an exponential backoff
attempt exponential --retry-if-contains "server not ready" sqlx migrate
attempt --help for quick access to documentationattempt exponential --helpattempt assumes that the child command's output will be UTF-8 encoded.
If any output predicates are used on a program that outputs invalid
UTF-8, attempt will crash.attempt --help will not reflect that the fixed strategy will be used if
no strategy is specified.cargo install attempt-cli
brew install attempt-cli
$ claude mcp add attempt \
-- python -m otcore.mcp_server <graph>