Rich Trouton spotted something in the release notes for macOS Sequoia 15.5, released earlier this week: that AFP is now deprecated and will be removed in a future version of the operating system. He writes:
This announcement is providing a end-of-the-road notification for AFP, which has been included in Apple’s operating systems for the Mac since System 6 in 1988. The ability to run an AFP server was removed from macOS as part of macOS Big Sur and it is not possible to host AFP shares from APFS formatted drives, so the AFP client has been the final functional part of AFP left as of macOS Sequoia.
This deprecation will affect the AFP functionality available via the Finder and via the mount_afp command line tool, with the mount_afp man page also noting that the AFP client is being deprecated.