aws / aws/amazon-q-developer-cli
bug: MCP server config for the custom agent does not support environment variable substitution
- 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
macOS 15.6 (24G84)
### Expected behaviour
The MCP server configuration loading does not process environment variable substitution in the `env` section of server configurations. Environment variables specified with `${env:VARIABLE_NAME}` syntax are not being replaced with their actual values.
### Actual behaviour
Environment variables are not being replace.
### Steps to reproduce
_No response_
### Environment
When loading MCP server configuration, environment variables in the `env` section should be substituted with their actual values. For example:
```yaml
{
"mcpServers": {
"database-server": {
"command": "node",
"args": ["server.js"],
"env": {
"DATABASE_URL": "${env:DB_URL}",
"PORT": "${env:SERVER_PORT}"
}
}
}
}
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Non sono identificati alcun file sorgente, test o comando di riproduzione. Inizia individuando il loader della configurazione del server MCP e gli eventuali test correlati, quindi riproduci l’esempio mcpServers fornito con ${env:DB_URL} e ${env:SERVER_PORT}; l’attività è completata quando questi valori vengono sostituiti durante il caricamento della sezione env.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100