Skip to main content

fastmcp.cli.deploy.state

Versioned JSON state helpers for the FastMCP CLI.

Functions

state_lock

Lock related CLI state changes across processes.

read_state

Read and validate a versioned JSON state file.

write_state

Write JSON through a restricted temporary file and atomic replacement.

remove_state

Remove a state file when it exists.

Classes

StateFileError

A CLI state file could not be read or written safely.