Server
Arguments: $ARGUMENTS
Path: resolve from ~/.claude/project-repos.json using shortname
server. The example registry ships a Python / FastAPI project; adjust the
commands below if your server shortname points at a different stack.
All commands assume uv is installed. If the project uses a different
runner (poetry, pip, docker compose exec), update projects/server.md and
this file together.
Actions
test
# All tests:
cd {server-path} && uv run pytest
# Specific file:
cd {server-path} && uv run pytest tests/{path}.py
# Filter (substring match on test id):
cd {server-path} && uv run pytest -k "{filter}"
# With coverage:
cd {server-path} && uv run pytest --cov=app --cov-report=term
analyze
Ruff + mypy:
cd {server-path} && uv run ruff check .
cd {server-path} && uv run ruff format --check .
cd {server-path} && uv run mypy app
Fix with:
cd {server-path} && uv run ruff check --fix .
cd {server-path} && uv run ruff format .
docker
If the project ships a docker-compose.yml for local dev (Postgres, Redis,
LocalStack, etc.):
cd {server-path} && docker compose up -d
Migrations (example with Alembic):
cd {server-path} && uv run alembic upgrade head
Process
- Parse arguments: action (
test/analyze/docker), optional test filter - If
dockeraction and containers aren't running, start them first - Run the command
- Report result (summary of passed/failed, or first analyzer errors)
Source: ajvelo/claude-toolkit — distributed by TomeVault.