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 add interactively
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.
Feature Request
Add the ability to add MCP servers directly from the command line without entering the interactive Copilot CLI session.
Proposed syntax
or from the REPL
^ it should auto assign the name.
Use case
Currently, adding an MCP server requires:
copilot/mcp addinteractivelyA one-liner command would streamline the workflow, especially for:
Current behavior
The
/mcpcommand only works within the interactive Copilot CLI session.Expected behavior
Support a non-interactive CLI flag/subcommand like:
This would complement the existing interactive experience while enabling faster workflows.