You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/use-copilot-cli/overview.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,7 +263,23 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop
263
263
264
264
{% data variables.copilot.copilot_cli_short %} comes with the {% data variables.product.github %} MCP server already configured. This MCP server allows you to interact with resources on {% data variables.product.prodname_dotcom_the_website %}—for example, allowing you to merge pull requests from the CLI.
265
265
266
-
To extend the functionality available to you in {% data variables.copilot.copilot_cli_short %}, you can add more MCP servers:
266
+
To extend the functionality available to you in {% data variables.copilot.copilot_cli_short %}, you can add more MCP servers.
267
+
268
+
To add a remote HTTP server directly from your terminal without starting an interactive session, use:
For local servers and additional options, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers#using-the-copilot-mcp-add-subcommand).
281
+
282
+
Alternatively, add a server from an interactive session:
Copy file name to clipboardExpand all lines: content/copilot/reference/copilot-cli-reference/cli-command-reference.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -653,18 +653,30 @@ Use `copilot mcp` to manage MCP server configurations from the command line with
653
653
|------------|-------------|
654
654
|`list [--json]`| List all configured MCP servers grouped by source, including plugin-provided servers. |
655
655
|`get <name> [--json]`| Show configuration and tools for a specific server. For plugin-provided servers, also shows the source plugin name and version. |
656
-
|`add <name>`| Add a server to the user configuration. Writes to `~/.copilot/mcp-config.json`. |
656
+
|`add [options] <name> [url]`| Add a server to the user configuration. Writes to `~/.copilot/mcp-config.json`. |
657
657
|`remove <name>`| Remove a user-level server. Workspace servers must be edited in their configuration files directly. |
658
658
659
+
For local (stdio) servers, provide the command after `--`:
660
+
661
+
```shell copy
662
+
copilot mcp add SERVER-NAME -- COMMAND [ARGS...]
663
+
```
664
+
665
+
For remote HTTP or SSE servers, specify the transport and provide the URL:
666
+
667
+
```shell copy
668
+
copilot mcp add --transport http SERVER-NAME URL
669
+
```
670
+
659
671
**`copilot mcp add` options:**
660
672
661
673
| Option | Description |
662
674
|--------|-------------|
663
675
|`-- <command> [args...]`| Command and arguments for local (stdio) servers. |
664
-
|`--url <url>`| URL for remote servers. |
665
-
|`--type <type>`| Transport type: `local`, `stdio`, `http`, or `sse`. |
676
+
|`<url>`| URL for remote servers. |
677
+
|`--transport <transport>`| Transport type: `stdio`, `http`, or `sse`. The default is `stdio`. |
0 commit comments