Deploying a SpringAI MCP server on Tomcat #3186
Unanswered
rrivero-denodo
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a very simple Spring AI MCP server that works correctly when running as a JAR. I'm able to use it successfully with Cursor as a Spring AI app in that setup.
However, I wanted to deploy it as a WAR to an external Tomcat server. When deployed as a web application in Tomcat, I'm unable to get the MCP server to work properly. If I send a GET request to http://localhost:8080/simplemcp/sse using Postman, I can see the connection is established and working, but it doesn't work from Cursor or the MCP Inspector.
Has anyone been able to run a Spring AI MCP server successfully as a WAR in Tomcat? I've searched for information on this setup but haven’t found anything helpful so far.
Thanks in advance for your time and help!
Here are my application.properties:
My pom.xml:
Beta Was this translation helpful? Give feedback.
All reactions