aws / aws/amazon-q-developer-cli
bug: mcp/tools not switching when using /agent swap
- Vorherrschende Sprache
- Rust
- Sterne
- 2k
- Forks
- 439
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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
WSL
### Expected behaviour
If I have 2 agents, let's call them "A" and "B". Agent A has access to certain MCP servers and Tools, A1, A2, ... Ax. Agent B has access to other MCP server and Tools B1, B2, ... Bx. Now I start a session with Q CLI with Agent A. It will load Agent A's MCPs and tools. Now I swap agents through /agent swap B. I would expect it would load Agent B's MCP Servers and Tools.
### Actual behaviour
Q switches the context to Agent B, but it keeps the MCPs and Tools from Agent A.
### Steps to reproduce
_No response_
### Environment
```yaml
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem in WSL mit zwei konfigurierten Agents und `/agent swap B` zu reproduzieren, und bestätige, dass Agent B die MCP-Server und Tools von Agent A beibehält. Verfolge die Behandlung des Agentenwechsels sowie das Neuladen von MCP und Tools; abgeschlossen ist die Aufgabe, wenn beim Wechseln der Agents die verfügbaren Ressourcen durch die für den ausgewählten Agent konfigurierten ersetzt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100