Skip to content

Feature request: Add MCP server from command line #1091

@hemanth

Description

@hemanth

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:

  1. Starting copilot
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions