I've managed to resolve it.
When you are using STATELESS protocol then instead of McpServerFeatures you need to use McpStatelessServerFeatures.
There is also an example in Spring AI Docs which uses this concrete specification class -> https://docs.spring.io/spring-ai/reference/api/mcp/mcp-stateless-server-boot-starter-docs.html