MCP: try stopping ls in server_lifespan

This commit is contained in:
Michael Panchenko committed 2025-06-04 21:03:46 +02:00
1 parent 7b5f59624b
commit f04d3e44ff
1 file changed
+1 -1
+1 -1
View File
@@ -160,7 +160,7 @@ def create_mcp_server_and_agent(
nonlocal agent
mark_used(mcp_server)
yield
del agent
agent.language_server.stop()
mcp_settings = Settings(lifespan=server_lifespan, host=host, port=port)
mcp = FastMCP(**mcp_settings.model_dump())