pypi fastmcp 4.2.7a3
v4.2.7a3: Consider the Source

52 minutes ago

Events can now come from streams outside the server. @events.source registers a long-lived listener, such as a websocket to a firehose, that emits events as they arrive. The server runs one copy of it however many clients subscribe, restarts it from the position it last saved when it fails, and, when replicas share an event log, runs it on one replica at a time. On hosts that can't keep work running between requests, pass EventsExtension(sources=False) and run the sources in a worker with events.run_sources().

DocketEventLog is now RedisEventLog. Import it from fastmcp_events.redis_log and install it with fastmcp-events[redis] instead of fastmcp-events[docket]. The old name has no alias, so change the import and the extra. The log uses the same Redis keys as before, so existing events and client cursors carry over.

This prerelease also rejects mounts that would make a server contain itself, raises when a background task's result doesn't match the tool's output schema (as call_tool already did), sends elicitation responses under the schema's property names, and adds max_request_body_size to http_app().

Thanks to our 16 contributors, including 8 first-time contributors.

What's Changed

Enhancements ✨

Fixes 🐞

Docs 📚

Other Changes 🦾

New Contributors

Full Changelog: v4.2.6...v4.2.7a3

Don't miss a new fastmcp release

NewReleases is sending notifications on new releases.