@mcp.tool()
def get_countries_by_length(length: int) -> list[str]:
"""Get countries with names of a specific length."""
return [c for c in COUNTRIES if len(c) == length]
In pyproject.toml, increase the version (e.g., 1.0.1 → 1.0.2).
version = "1.0.1"
From your project root (mcp-server/):
python -m build
Reinstall with pipx (Upgrade your CLI Tool)
pipx install dist/country_mcp_server-1.0.1-py3-none-any.whl --force