-
Notifications
You must be signed in to change notification settings - Fork 969
Open
Labels
Description
Feature Request
Add the ability to add MCP servers directly from the command line without entering the interactive Copilot CLI session.
Proposed syntax
copilot mcp add <URL> --header <key=value>or from the REPL
!mcp add <URL> --header <key=value>^ it should auto assign the name.
Use case
Currently, adding an MCP server requires:
- Starting
copilot - Running
/mcp addinteractively
A one-liner command would streamline the workflow, especially for:
- Scripting and automation
- Quick setup across multiple environments
- CI/CD pipelines
Current behavior
The /mcp command only works within the interactive Copilot CLI session.
Expected behavior
Support a non-interactive CLI flag/subcommand like:
copilot mcp add <URL> --header "Authorization=Bearer token"This would complement the existing interactive experience while enabling faster workflows.