Skip to main content

fastmcp.cli.events

fastmcp experimental events: list a server’s event types and watch one as it fires. Experimental: this command may change in any release without a deprecation period.

Functions

list_events_command

List the event types a server offers. Examples:

watch_command

Subscribe to an event type and print each event as it arrives. Arguments are key=value pairs, coerced with the event type’s input schema. The watch runs until interrupted (or --count events), then prints the cursor to resume from. Examples: