Commit 4d5b0d8
committed
fix(mcp): properly terminate stdio processes when refreshing MCP servers
- Enhanced deleteConnection to properly terminate stdio processes (Docker containers)
- Added process termination logic with SIGTERM followed by SIGKILL if needed
- Added delays after cleanup to ensure processes are fully terminated
- Fixes issue where refreshing MCP servers was creating duplicate instances
This ensures that Docker-based MCP servers like Tavily are properly cleaned up
when using the refresh button, preventing multiple instances from running.1 parent 3ee6072 commit 4d5b0d8
1 file changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
| 1010 | + | |
1011 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1012 | 1032 | | |
1013 | 1033 | | |
1014 | 1034 | | |
| |||
1188 | 1208 | | |
1189 | 1209 | | |
1190 | 1210 | | |
| 1211 | + | |
1191 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
1192 | 1217 | | |
1193 | 1218 | | |
1194 | 1219 | | |
| |||
1265 | 1290 | | |
1266 | 1291 | | |
1267 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1268 | 1296 | | |
1269 | 1297 | | |
1270 | 1298 | | |
| |||
0 commit comments