amazon-q-developer-cli
amazon-q-developer-cli copied to clipboard
qchat mcp add fails in workspace scope
Checks
- [x] I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- [x] I have run
q doctorin the affected terminal session - [x] I have run
q restartand replicated the issue again
Operating system
macOS 15.6.1 (24G90)
Expected behaviour
Upon running a command such as: qchat mcp add --scope workspace --name awslabs-aws-serverless --command uvx --args "awslabs.aws-serverless-mcp-server@latest,--allow-write,--allow-sensitive-data-access"
a .amazonq directory should be created if it doesnt already exist, and the configuration should be placed in this directory It appears when a user runs the qchat mcp add command in the workspace scope, if there is not already a .amazonq directory, it fails.
Actual behaviour
The user gets an error: error: No such file or directory (os error 2)
because the .amazonq directory does not yet exist
Steps to reproduce
mkdir ~/q-issue-test
cd ~/q-issue-test
qchat mcp add --scope workspace --name awslabs-aws-serverless --command uvx --args "awslabs.aws-serverless-mcp-server@latest,--allow-write,--allow-sensitive-data-access"
cd ~
rm -rf ~/q-issue-test
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "1.15.0"
hash = "eb8db5c635fc469f3bd94ead16bb4bfb32d7443b"
date = "2025-09-02T17:57:24.662205Z (10d ago)"
variant = "full"
[system-info]
os = "macOS 15.6.1 (24G90)"
chip = "Apple M3 Pro"
total-cores = 12
memory = "36.00 GB"
[environment]
cwd = "/Users/USER/Downloads/project"
cli-path = "/Users/USER/Downloads/project"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "brew"