By combination of the solution from
https://stackoverflow.com/a/79700580/22944268
https://stackoverflow.com/a/79738017/22944268
i was able to get the answer the question "How to pass data from an MCP client to an MCP server in Java with Spring AI?"
i tried this implementation and it worked.
Thank you for everyone's contribution.