spring-projects / spring-projects/spring-ai
tomcat can not shutdown
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
I run a empty project with one mcp tool and use MCP Inspector to connect mcp server, then i shutdown project,it will block in tomcat.GracefulShutdown.
Environment
springboot 3.5.4
spring-ai-starter-mcp-server-webmvc 1.01
Steps to reproduce
start springboot server, connect mcp server, shutdown springboot server
Minimal Complete Reproducible example
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the attached testProject.zip with Spring Boot 3.5.4 and spring-ai-starter-mcp-server-webmvc 1.01, then connect through MCP Inspector and reproduce shutdown. Trace the Tomcat GracefulShutdown block and compare behavior before and after disconnecting the MCP client; done means the server shuts down without blocking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100