v4.7.2

punkpeye/fastmcpv4.7.2Jul 18, 2026by github-actions[bot]

AI Summary

Fixes authentication handling by returning a specific 401 status code instead of relying on error-message heuristics.

Key Highlights

  • Returns 401 for authentication failures
  • Standardizes HTTP status code for auth errors
  • Closes issue #180

Full Release Notes

## [4.7.2](https://github.com/punkpeye/fastmcp/compare/v4.7.1...v4.7.2) (2026-07-18)


### Bug Fixes

* return 401 for authentication failures instead of relying on error-message heuristics ([#288](https://github.com/punkpeye/fastmcp/issues/288)) ([7077962](https://github.com/punkpeye/fastmcp/commit/707796219da74fdabd9461de5c2e26fe3e8e8a3d)), closes [#180](https://github.com/punkpeye/fastmcp/issues/180) [#createUnauthorizedResponse](https://github.com/punkpeye/fastmcp/issues/createUnauthorizedResponse)