You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 802c19e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: 01-setup-and-first-steps/README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -518,7 +518,18 @@ copilot
518
518
# Shows available models and lets you pick one. Examples: GPT-6 Sol, GPT-6 Luna, Claude Sonnet 5.5, Claude Opus 5.5.
519
519
```
520
520
521
-
> 💡 **Session vs. persistent model**: The `/model` command changes the model for the **current session only**. When you start a new session, Copilot will use the default again. To set a permanent default model for all future sessions, use `/config model` instead.
521
+
> 💡 **Session vs. persistent model**: The `/model` command changes the model for the **current session only**. When you start a new session, Copilot will use the default again. To set a permanent default model for all future sessions, use `/config model` inside a session, or the `copilot config` terminal command from your regular shell (no session needed):
522
+
523
+
```bash
524
+
# Set your default model from the terminal (outside a Copilot session)
525
+
copilot config set model claude-sonnet-5.5
526
+
527
+
# View all your saved settings
528
+
copilot config list
529
+
530
+
# Remove a setting and return to the default
531
+
copilot config remove model
532
+
```
522
533
523
534
> 💡 **Tip**: Copilot CLI usage is measured in **GitHub AI Credits**. The number of credits used depends on the model you select and how many tokens the task consumes. More capable models may cost more, so use lighter models for routine tasks and save powerful reasoning models for complex work. Run `/usage` to see how many AI credits your current session has used.
Copy file name to clipboardExpand all lines: 06-mcp-servers/README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ The GitHub MCP server is built-in and requires no setup. Below are additional se
223
223
224
224
> 💡 **The `.` path**: The `.` means "current directory". Copilot can access files relative to where you launched it. In a Codespace, this is your workspace root. You can also use an absolute path like `/workspaces/copilot-cli-for-beginners` if you prefer.
225
225
226
-
Add this to your `~/.copilot/mcp-config.json` and restart Copilot.
226
+
Add this to your `~/.copilot/mcp-config.json`. MCP configuration changes take effect between turns.
227
227
228
228
</details>
229
229
@@ -252,7 +252,7 @@ Context7 gives Copilot access to up-to-date documentation for popular frameworks
252
252
- ✅ **No account needed**
253
253
- ✅ **Your code stays local**
254
254
255
-
Add this to your `~/.copilot/mcp-config.json` and restart Copilot.
255
+
Add this to your `~/.copilot/mcp-config.json`. MCP configuration changes take effect between turns.
256
256
257
257
</details>
258
258
@@ -301,7 +301,9 @@ copilot
301
301
302
302
Copilot CLI includes a built-in `web_fetch` tool that can fetch content from any URL. This is useful for pulling in READMEs, API docs, or release notes without leaving your terminal. No MCP server needed.
303
303
304
-
You can control which URLs are accessible via `~/.copilot/config.json` (general Copilot settings), which is separate from `~/.copilot/mcp-config.json` (MCP server definitions).
304
+
You can control which URLs are accessible via `~/.copilot/settings.json` (general Copilot settings), which is separate from `~/.copilot/mcp-config.json` (MCP server definitions).
305
+
306
+
> ⚠️ **Settings file location**: Copilot CLI reads user settings from `~/.copilot/settings.json`. The older `~/.copilot/config.json` file is no longer used for user settings. Any keys placed there will be silently ignored.
305
307
306
308
```json
307
309
{
@@ -757,7 +759,7 @@ copilot
757
759
758
760
**Expected result**: Copilot lists `book_app.py`, `books.py`, and `utils.py` with their functions.
759
761
760
-
> 💡 **Don't have filesystem MCP configured yet?** Create the config file from the [Complete Configuration](#complete-configuration-file) section above. Then restart Copilot.
762
+
> 💡 **Don't have filesystem MCP configured yet?** Create the config file from the [Complete Configuration](#complete-configuration-file) section above. MCP configuration changes take effect between turns.
761
763
762
764
---
763
765
@@ -851,7 +853,7 @@ An empty author and year of 0. That's the data quality issue!
851
853
852
854
The tests in `test_books.py` cover: `add_book`, `mark_as_read`, `remove_book`, `get_unread_books`, and `find_book_by_title`. Functions like `load_books`, `save_books`, and `list_books` don't have direct tests. The CLI functions in`book_app.py` and helpers in`utils.py` have no tests at all.
853
855
854
-
**If MCP isn't working:** Restart Copilot after editing the config file.
856
+
**If MCP isn't working:** MCP configuration changes now take effect between turns automatically. If you've just added a new server and Copilot doesn't see it yet, type your next message and the server should be available.
0 commit comments