-
Notifications
You must be signed in to change notification settings - Fork 846
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature or problem you'd like to solve
Make it possible to extend / override MCP configuration for a single session without destructive edits to user config
Proposed solution
My proposed solution would be something like Claude Code's or Amp's --mcp-config (which takes an MCP config file directly) or Codex CLI's --config (which can override any configuration parameter).
The user would invoke Copilot CLI with their transient config:
copilot --mcp-config my_temporary_config.json
This could be useful:
- When integrating Copilot CLI with an external tool that can export its functionality over HTTP on a dynamic port (this is my specific use case).
- To easily switch between different MCP configurations during development, without having to make permanent edits to project- or user-wide config.
- For automated testing, in which instances MCP servers may be started dynamically (in parallel) on a number of ports.
Example prompts or workflows
My target use case:
- My tool (which has its own, user-facing interface) wants to invoke the services of Copilot CLI as an agentic backend.
- My tool starts an MCP server to expose its functionality on a dynamically-allocated HTTP port.
- My tool invokes Copilot CLI, which takes on its usual configuration for the user / project but also applies the settings passed by
--mcp-configso that it can find my tool's MCP server instance and provide user assistance. - Copilot CLI accomplishes agentic work with my tool.
- Copilot CLI exits and my tool shuts down its MCP server instance.
Additional context
No response
Tiberriver256 and yshrsmzTiberriver256
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request