Copilot CLI v1.0.40-0: Custom Agents & MCP Fixes
Copilot CLI 1.0.40-0 adds custom agent switching for ACP clients, improves message cancellation granularity, and fixes MCP OAuth caching and tool name sanitization issues.
TL;DR
- ACP clients can now list and switch custom agents via agent config
- Ctrl+C and double-Esc now remove queued messages one at a time instead of clearing all
- Prompt mode now gates repo hooks and workspace MCP behind opt-in env vars for secure-by-default behavior
- MCP OAuth token caching and tool name sanitization fixes
New
- Custom agent switching — ACP clients can now list and switch between custom agents via the agent config option
Improved
- Message cancellation — Ctrl+C and double-Esc now remove pending queued messages one at a time instead of clearing the entire queue at once
- Slash command ranking — Prefix matches now rank above fuzzy matches in command suggestions
- Prompt mode security — Repo hooks and workspace MCP are now gated behind opt-in env vars (GITHUB_COPILOT_PROMPT_MODE_REPO_HOOKS and GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP) for secure-by-default behavior
Fixed
- MCP OAuth token caching — Tokens now cache correctly when multiple servers share the same URL but use different static OAuth client IDs
- MCP tool name sanitization — Tool names with dots or other invalid characters are now sanitized correctly
Update via: npm install -g @github/copilot-cli@1.0.40-0
Source: Copilot CLI