| name | server |
| description | Test, analyze, or start Docker for the server project Use when this capability is needed. |
| metadata | {"author":"ajvelo"} |
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
cd {server-path} && uv run pytest
cd {server-path} && uv run pytest tests/{path}.py
cd {server-path} && uv run pytest -k "{filter}"
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
docker action 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.