Skip to content

v4.2.7: Hooked on a Feeling

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 18:14
331c054

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 🐞

Docs 📚

Other Changes 🦾

New Contributors

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