Step by step guide to build an MCP server for Cursor AI using Java and Spring with practical tips for endpoints message handling and deployment