Repository navigation
Events can now come from streams outside the server and go out to webhooks. @events.source registers a long-lived listener, such as a websocket to a firehose, that the server runs once however many clients subscribe, restarts from its last saved position when it fails, and runs on one replica at a time when replicas share an event log; on hosts that can't keep work running between requests, pass EventsExtension(sources=False) and run them in a worker with events.run_sources(). A client can also subscribe with an https URL and a secret, and the server POSTs each event there, signed with Standard Webhooks, which works on stateless hosts. Fixes cover OAuthProxy refresh token revocation races, skills listed through a proxy, generate-cli labels, parameter names and skill names, OpenAPI schema ordering, cookies and explicit nulls, resource links in a mounted server's prompt results, literal $ref values in tool schema defaults, and elicitation responses, which are now sent under the schema's property names. http_app() now accepts max_request_body_size.
Resource reads resolve other spellings of a URI before authorization. A read such as docs://reports/q%33 or docs://reports/q3#x that a template matches now resolves to the URI the template forwards, docs://reports/q3, so that resource's visibility, auth and AuthMiddleware rules apply, and middleware sees that URI. On a single server, such a read now returns the concrete resource at that URI instead of calling the template.
DocketEventLog is now RedisEventLog. Import it from fastmcp_events.redis_log and install fastmcp-events[redis] instead of fastmcp-events[docket]. The old name has no alias. The Redis keys are unchanged, so existing events and client cursors carry over.
Some invalid setups now raise instead of misbehaving. Mounting servers into each other raises ValueError at mount() instead of RecursionError when a client connects. A background task whose result doesn't match the tool's output schema raises, as call_tool already did.
Thanks to our 23 contributors, including 14 first-time contributors.
What's Changed
Enhancements ✨
- Require the triage reviewer on every PR head by @zzstoatzz in #6897
- Add webhook delivery to fastmcp-events by @zzstoatzz in #6846
- Exempt PrefectHQ org members from the issue-link gate by @zzstoatzz in #6942
- Run outside-stream listeners as event sources by @zzstoatzz in #7014
- Link the ambient HTTP span when MCP _meta owns the server span's parent by @kephale in #6766
Fixes 🐞
- Skip legacy backends and omit invalid entries in proxied skills/list by @parkedwards in #6828
- Accept percent-encoded slashes in skill path prefixes by @parkedwards in #6827
- fix(skills): sanitize proxy validation warnings by @jlowin in #6830
- Refuse subscription arguments for event types without for_subscription by @zzstoatzz in #6847
- Close refresh token revocation races in OAuthProxy by @zzstoatzz, @Pipe5linger, and @Mirabis in #6840
- Hide credentials in TaskContextSnapshot repr by @zzstoatzz, @abhishekrajv7-cmd, and @soarkit in #6851
- Fix lifespan shutdown crash when a lifespan holds a task group by @zzstoatzz in #6864
- Fix generate-cli type labels for optional and union parameters by @andreivince in #6403
- test: skip symlink privilege tests on Windows (#6365) by @mohitdixit02 in #6381
- Send elicitation responses under the schema's property names by @AarnavNoble in #6567
- Order OpenAPI schema definitions by component order by @hanneslipusch in #6842
- Reject circular server mounts before attachment by @its-amann in #6784
- Validate explicit task results against output schemas by @GoldArowana in #6467
- fix: suffix colliding sanitized parameter names in generate-cli by @IhateStomachProblems in #6670
- fix: preserve untyped object extras with an empty schema by @qyf700 in #6569
- Accept max_request_body_size in http_app() by @andreivince in #6804
- Resolve respelled resource URIs to the URI a template forwards by @zzstoatzz and @YusefSyed in #7055
- Rewrite resource links in namespaced prompt results by @AarnavNoble in #6836
- Preserve client session cookies when OpenAPI calls supply cookie parameters by @gulagala001 in #6464
- fix(cli): generate valid skill names by @anticipate218 in #6445
- Preserve explicit null in OpenAPI whole-body JSON requests by @wang1299 in #6363
- Skip tool discovery when Prefab is unavailable by @andreivince in #6270
Docs 📚
- Say what changed for events since 4.2.5 in the v4.2.6 notes by @zzstoatzz in #6811
- docs: explain dynamic skills over MCP by @jlowin in #6829
- docs: add v4.2.7a1 changelog entries by @jlowin in #6831
- Explain the automatic PR review in plain words by @zzstoatzz in #6901
- Release skill: send a direct link to every approval by @zzstoatzz in #6919
- docs: add v4.2.7a2 changelog entries by @zzstoatzz in #6921
- docs: add v3.4.12 changelog entries by @zzstoatzz in #6951
- docs: add v4.2.7a3 changelog entries by @zzstoatzz in #7034
- Describe the Jetstream example in atproto terms by @zzstoatzz in #7035
Other Changes 🦾
- fix: skip yanked releases in the PyPI version check by @AP24110011695 in #6585
- Hold burst issues with needs:triage instead of skipping them by @zzstoatzz in #7051
- Sweep open PRs hourly in the issue-link gate by @zzstoatzz in #7050
- Keep literal $ref values in tool schema defaults by @samtin0x and @hulkbig in #7048
New Contributors
- @Pipe5linger made their first contribution in #6840
- @Mirabis made their first contribution in #6840
- @abhishekrajv7-cmd made their first contribution in #6851
- @YusefSyed made their first contribution in #7055
- @hanneslipusch made their first contribution in #6842
- @its-amann made their first contribution in #6784
- @GoldArowana made their first contribution in #6467
- @IhateStomachProblems made their first contribution in #6670
- @qyf700 made their first contribution in #6569
- @samtin0x made their first contribution in #7048
- @kephale made their first contribution in #6766
- @gulagala001 made their first contribution in #6464
- @anticipate218 made their first contribution in #6445
- @wang1299 made their first contribution in #6363
Full Changelog: v4.2.6...v4.2.7