@@ -100,7 +100,7 @@ q version
100100The version is printed:
101101
102102``` output
103- q 1.7.2
103+ q 1.10.1
104104```
105105
106106## How can I configure my AWS account to get the most from the Q CLI?
@@ -122,19 +122,28 @@ q chat
122122When the chat session starts you see:
123123
124124``` output
125- Hi, I'm Amazon Q. Ask me anything.
125+ To learn more about MCP safety, see https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-security.html
126126
127- Things to try
128- • Fix the build failures in this project.
129- • List my s3 buckets in us-west-2.
130- • Write unit tests for my application.
131- • Help me understand my git status
132127
133- /acceptall Toggles acceptance prompting for the session.
134- /profile (Beta) Manage profiles for the chat session
135- /context (Beta) Manage context files for a profile
136- /help Show the help dialogue
137- /quit Quit the application
128+
129+ ⢠⣶⣶⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⣿⣶⣦⡀⠀
130+ ⠀⠀⠀⣾⡿⢻⣿⡆⠀⠀⠀⢀⣄⡄⢀⣠⣤⣤⡀⢀⣠⣤⣤⡀⠀⠀⢀⣠⣤⣤⣤⣄⠀⠀⢀⣤⣤⣤⣤⣤⣤⡀⠀⠀⣀⣤⣤⣤⣀⠀⠀⠀⢠⣤⡀⣀⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⢠⣿⣿⠋⠀⠀⠀⠙⣿⣿⡆
131+ ⠀⠀⣼⣿⠇⠀⣿⣿⡄⠀⠀⢸⣿⣿⠛⠉⠻⣿⣿⠛⠉⠛⣿⣿⠀⠀⠘⠛⠉⠉⠻⣿⣧⠀⠈⠛⠛⠛⣻⣿⡿⠀⢀⣾⣿⠛⠉⠻⣿⣷⡀⠀⢸⣿⡟⠛⠉⢻⣿⣷⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⠀⠀⠀⠀⢸⣿⣿
132+ ⠀⢰⣿⣿⣤⣤⣼⣿⣷⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⢀⣴⣶⣶⣶⣿⣿⠀⠀⠀⣠⣾⡿⠋⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⡇⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⢹⣿⣇⠀⠀⠀⠀⠀⢸⣿⡿
133+ ⢀⣿⣿⠋⠉⠉⠉⢻⣿⣇⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⣿⣿⡀⠀⣠⣿⣿⠀⢀⣴⣿⣋⣀⣀⣀⡀⠘⣿⣿⣄⣀⣠⣿⣿⠃⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠈⢿⣿⣦⣀⣀⣀⣴⣿⡿⠃
134+ ⠚⠛⠋⠀⠀⠀⠀⠘⠛⠛⠀⠘⠛⠛⠀⠀⠀⠛⠛⠀⠀⠀⠛⠛⠀⠀⠙⠻⠿⠟⠋⠛⠛⠀⠘⠛⠛⠛⠛⠛⠛⠃⠀⠈⠛⠿⠿⠿⠛⠁⠀⠀⠘⠛⠃⠀⠀⠘⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠙⠛⠿⢿⣿⣿⣋⠀⠀
135+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⢿⡧
136+
137+ ╭─────────────────────────────── Did you know? ────────────────────────────────╮
138+ │ │
139+ │ You can resume the last conversation from your current directory by │
140+ │ launching with q chat --resume │
141+ │ │
142+ ╰──────────────────────────────────────────────────────────────────────────────╯
143+
144+ /help all commands • ctrl + j new lines • ctrl + s fuzzy search
145+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
146+ >
138147```
139148
140149For example, you can ask for the IP address of an EC2 instance instead of going to the AWS console or looking up the AWS CLI command to get it.
@@ -158,12 +167,16 @@ Use the `/context` command to see the possible locations to store your context.
158167The help information is printed.
159168
160169``` output
161- current profile: default
162170
163- global:
164- .amazonq/rules/**/*.md
165- README.md
166- AmazonQ.md
171+ 🌍 global:
172+ .amazonq/rules/**/*.md
173+ README.md
174+ AmazonQ.md
175+
176+ 👤 profile (default):
177+ <none>
178+
179+ No files in the current directory matched the rules above.
167180```
168181
169182For example, you can create a new file to store your context.
@@ -182,15 +195,148 @@ did you read my context information?
182195The response confirms the context file was read:
183196
184197``` output
185- Yes, I've read your context information. I understand that you're an Arm Linux developer who prefers
186- Ubuntu and other Debian-based distributions. You don't use x86 computers, so I should provide
187- information assuming you're working on Arm Linux. You sometimes use macOS and Windows on Arm, but I
188- should only provide information about those operating systems when you specifically ask for it.
198+ Yes, I've read your context information. I understand that you're an Arm Linux developer who primarily
199+ uses Ubuntu and other Debian-based distributions. You don't use x86 computers, so I'll provide all
200+ information assuming you're working on Arm Linux. You occasionally use macOS and Windows on Arm, but I'
201+ ll only provide information about those operating systems when you specifically ask for it.
202+
203+ I'll tailor my responses to be relevant for Arm Linux development, particularly focusing on Debian-
204+ based distributions like Ubuntu, which is your preference.
205+ ```
206+
207+ Give it a try by asking questions like "How do I install the AWS CLI?" and verify that the answers match the provided context.
208+
209+ ## How do I change the model Amazon Q uses?
210+
211+ When you start ` q chat ` the model is printed:
212+
213+ ``` output
214+ 🤖 You are chatting with claude-3.7-sonnet
215+ ```
216+
217+ You can use the ` /model ` command to list other available models.
218+
219+ ``` console
220+ /model
221+ ```
222+
223+ The model options are displayed:
224+
225+ ``` output
226+ ? Select a model for this chat session ›
227+ ❯ claude-4-sonnet
228+ claude-3.7-sonnet (active)
229+ claude-3.5-sonnet
230+ ```
231+
232+ Use the arrow keys and select the model you want to use.
233+
234+ You can ask Amazon Q to set the default model for future sessions.
235+
236+ ## Install an MCP server
237+
238+ As an example of using MCP with Amazon Q, you can configure the Github MCP server.
239+
240+ Go to your GitHub account developer settings and create a personal access token with the following permissions:
241+
242+ - repo (Full control of private repositories)
243+ - read: org (Read organization membership)
244+ - read: user (Read user profile data)
245+
246+
247+ Use an editor to add the content below to the file ` $HOME/.amazonq/mcp.json `
248+
249+ ``` console
250+ {
251+ "mcpServers": {
252+ "github": {
253+ "command": "docker",
254+ "args": [
255+ "run",
256+ "-i",
257+ "--rm",
258+ "-e",
259+ "GITHUB_PERSONAL_ACCESS_TOKEN",
260+ "ghcr.io/github/github-mcp-server"
261+ ],
262+ "env": {
263+ "GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-pat>"
264+ }
265+ }
266+ }
267+ }
268+ ```
269+
270+ Replace ` <your-github-pat> ` with your GitHub token.
271+
272+ You also need Docker running on the system. Refer to the [ Docker install guide] ( /install-guides/docker/ ) for instructions.
273+
274+ Restart ` q ` with the new MCP configuration:
189275
190- I'll keep this context in mind when answering your questions, focusing on Arm Linux-specific
191- information and Debian-based distributions by default.
276+ ``` console
277+ q chat
192278```
193279
194- Give it a try by asking questions such as ` how do I install the aws cli? ` and check that the answers match the provided context.
280+ You see the GitHub MCP server loaded and running:
281+
282+ ``` output
283+ ✓ github loaded in 0.14 s
284+ ✓ 1 of 1 mcp servers initialized.
285+
286+ ⢠⣶⣶⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⣿⣶⣦⡀⠀
287+ ⠀⠀⠀⣾⡿⢻⣿⡆⠀⠀⠀⢀⣄⡄⢀⣠⣤⣤⡀⢀⣠⣤⣤⡀⠀⠀⢀⣠⣤⣤⣤⣄⠀⠀⢀⣤⣤⣤⣤⣤⣤⡀⠀⠀⣀⣤⣤⣤⣀⠀⠀⠀⢠⣤⡀⣀⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⢠⣿⣿⠋⠀⠀⠀⠙⣿⣿⡆
288+ ⠀⠀⣼⣿⠇⠀⣿⣿⡄⠀⠀⢸⣿⣿⠛⠉⠻⣿⣿⠛⠉⠛⣿⣿⠀⠀⠘⠛⠉⠉⠻⣿⣧⠀⠈⠛⠛⠛⣻⣿⡿⠀⢀⣾⣿⠛⠉⠻⣿⣷⡀⠀⢸⣿⡟⠛⠉⢻⣿⣷⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⠀⠀⠀⠀⢸⣿⣿
289+ ⠀⢰⣿⣿⣤⣤⣼⣿⣷⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⢀⣴⣶⣶⣶⣿⣿⠀⠀⠀⣠⣾⡿⠋⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⡇⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⢹⣿⣇⠀⠀⠀⠀⠀⢸⣿⡿
290+ ⢀⣿⣿⠋⠉⠉⠉⢻⣿⣇⠀⢸⣿⣿⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⠀⠀⣿⣿⡀⠀⣠⣿⣿⠀⢀⣴⣿⣋⣀⣀⣀⡀⠘⣿⣿⣄⣀⣠⣿⣿⠃⠀⢸⣿⡇⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠈⢿⣿⣦⣀⣀⣀⣴⣿⡿⠃
291+ ⠚⠛⠋⠀⠀⠀⠀⠘⠛⠛⠀⠘⠛⠛⠀⠀⠀⠛⠛⠀⠀⠀⠛⠛⠀⠀⠙⠻⠿⠟⠋⠛⠛⠀⠘⠛⠛⠛⠛⠛⠛⠃⠀⠈⠛⠿⠿⠿⠛⠁⠀⠀⠘⠛⠃⠀⠀⠘⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠙⠛⠿⢿⣿⣿⣋⠀⠀
292+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⢿⡧
293+
294+ ╭─────────────────────────────── Did you know? ────────────────────────────────╮
295+ │ │
296+ │ You can execute bash commands by typing ! followed by the command │
297+ │ │
298+ ╰──────────────────────────────────────────────────────────────────────────────╯
299+
300+ /help all commands • ctrl + j new lines • ctrl + s fuzzy search
301+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
302+ >
303+ ```
195304
196- You're ready to use the Q CLI.
305+ You can now use the GitHub MCP server to interact with GitHub repositories and do things like:
306+
307+ ** Repository Management**
308+ - Create new repositories
309+ - Fork existing repositories
310+ - List branches and tags
311+ - Create new branches
312+
313+ ** Code Management**
314+ - Get file contents from repositories
315+ - Create or update files
316+ - Delete files
317+ - Push multiple files in a single commit
318+ - Search code across repositories
319+
320+ ** Pull Requests**
321+ - Create pull requests
322+ - List pull requests
323+ - Get pull request details
324+ - Update pull requests
325+ - Merge pull requests
326+ - Review pull requests
327+ - Request GitHub Copilot reviews
328+ - Get pull request files and comments
329+
330+ ** Issues**
331+ - Create issues
332+ - List issues
333+ - Get issue details
334+ - Update issues
335+ - Add comments to issues
336+ - Search issues
337+
338+ ** Commits**
339+ - List commits
340+ - Get commit details
341+
342+ You're ready to use the Q CLI.
0 commit comments