spring-projects / spring-projects/spring-ai

tomcat can not shutdown

Open
#4,002 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
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.

Image

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

testProject.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.