Skip to content

Commit 40ab0ee

Browse files
authored
Merge pull request #61 from jpadams/q-dev
docs: add Amazon Q Developer CLI chat how-to
2 parents cbe9268 + 2293be7 commit 40ab0ee

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,37 @@ Save the CLAUDE.md file at the root of the repository. Alternatively, merge the
7979
curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md >> CLAUDE.md
8080
```
8181

82+
### [Amazon Q Developer CLI chat](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat.html)
83+
84+
Add this container-use MCP config to `~/.aws/amazonq/mcp.json`:
85+
86+
```json
87+
{
88+
"mcpServers": {
89+
"container-use": {
90+
"command": "cu",
91+
"args": [
92+
"stdio"
93+
],
94+
"env": {},
95+
"timeout": 60000
96+
}
97+
}
98+
}
99+
```
100+
101+
Save the agent instructions for Container Use to your project root at `./.amazonq/rules/container-use.md`:
102+
103+
```sh
104+
mkdir -p ./.amazonq/rules && curl https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md > .amazonq/rules/container-use.md
105+
```
106+
107+
To trust only the Container Use environment tools, invoke Q chat like this:
108+
109+
```sh
110+
q chat --trust-tools=container_use___environment_checkpoint,container_use___environment_file_delete,container_use___environment_file_list,container_use___environment_file_read,container_use___environment_file_write,container_use___environment_open,container_use___environment_run_cmd,container_use___environment_update
111+
```
112+
82113
### [goose](https://block.github.io/goose/docs/getting-started/using-extensions#mcp-servers)
83114

84115
Add this to `~/.config/goose/config.yaml`:

0 commit comments

Comments
 (0)