aws / aws/amazon-q-developer-cli
bug: MCP server processes persist after Q CLI terminal closure - orphaned Python processes accumulate
- Lingua principale
- Rust
- Stelle
- 2k
- Fork
- 439
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
Mac
### Expected behaviour
MCP server processes started by Q CLI continue running as background processes even after the terminal session is closed, leading to resource accumulation and potential system performance issues.
Ideally, All MCP server processes should be terminated when Q CLI exits or the terminal is closed.
### Actual behaviour
MCP server processes remain running as orphaned background processes. In the reported case, 80+ Python processes were found running from .cache/uv/archive-v0/ directories for various AWS MCP servers (cost-explorer,
bedrock, cfn, documentation, billing, terraform, etc.).
### Steps to reproduce
Steps to Reproduce:
1. Start Q CLI with MCP servers configured
2. Use various MCP tools/servers during the session
3. Close the terminal or exit Q CLI
4. Check running processes with ps aux | grep -i "python.*\.cache"
### Environment
```yaml
• OS: macOS
• Q CLI version: [current version]
• MCP servers: AWS Labs MCP servers (cost-explorer, bedrock-kb-retrieval, cfn, documentation, billing, etc.)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il caso macOS con server AWS MCP configurati, usando q doctor e q restart come indicato, quindi esamina l'uscita di Q CLI e il ciclo di vita del processo del server MCP. Verifica il risultato con ps aux sia dopo un'uscita normale sia dopo la chiusura del terminale; il lavoro è completato quando i processi del server MCP non rimangono più orfani né si accumulano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python, rust
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100