Development workflow for FastMCP contributors
NotSet
type as an alternative to None
in certain situations - follow existing patterns.
auth_token
is clear; tok
requires mental translation.
Specific exception types make error handling predictable. Catching ValueError
tells readers exactly what error you expect. Never use bare except
clauses.
None
as the default and create the mutable object inside the function.
Breaking established patterns confuses readers. If you must deviate, discuss in the issue first.
<VersionBadge />
uv run pre-commit run --all-files && uv run pytest
contrib
: Community-maintained patterns and utilities. Original authors maintain their contributions. Not representative of the core framework.
experimental
: Maintainer-developed features that may preview future functionality. Can break or be deleted at any time without notice. Pin your FastMCP version when using these features.