Title: Copilot CLI 1.0.58 does not auto-load project-level .copilot/mcp-config.json · Issue #3642 · github/copilot-cli · GitHub
Open Graph Title: Copilot CLI 1.0.58 does not auto-load project-level .copilot/mcp-config.json · Issue #3642 · github/copilot-cli
X Title: Copilot CLI 1.0.58 does not auto-load project-level .copilot/mcp-config.json · Issue #3642 · github/copilot-cli
Description: Summary Copilot CLI 1.0.58 does not auto-load .copilot/mcp-config.json from the current working directory (project root). Only ~/.copilot/mcp-config.json is read automatically. As a result, MCP servers declared at the project level are s...
Open Graph Description: Summary Copilot CLI 1.0.58 does not auto-load .copilot/mcp-config.json from the current working directory (project root). Only ~/.copilot/mcp-config.json is read automatically. As a result, MCP ser...
X Description: Summary Copilot CLI 1.0.58 does not auto-load .copilot/mcp-config.json from the current working directory (project root). Only ~/.copilot/mcp-config.json is read automatically. As a result, MCP ser...
Opengraph URL: https://github.com/github/copilot-cli/issues/3642
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copilot CLI 1.0.58 does not auto-load project-level .copilot/mcp-config.json","articleBody":"### Summary\r\n\r\nCopilot CLI 1.0.58 does **not** auto-load `.copilot/mcp-config.json` from the current working directory (project root). Only `~/.copilot/mcp-config.json` is read automatically. As a result, MCP servers declared at the project level are silently absent from the session until the user passes `--additional-mcp-config @\u003cpath>` explicitly on every invocation.\r\n\r\nThis breaks any project that expects per-repo MCP configuration to be applied transparently (the same pattern used by VS Code / Claude Code / cursor).\r\n\r\n### Reproduction\r\n\r\n1. Install `@github/copilot@1.0.58` globally.\r\n2. In an empty repo, create `.copilot/mcp-config.json`:\r\n ```json\r\n {\r\n \"mcpServers\": {\r\n \"example\": {\r\n \"type\": \"local\",\r\n \"command\": \"node\",\r\n \"args\": [\"-e\", \"console.error('example MCP loaded')\"]\r\n }\r\n }\r\n }\r\n ```\r\n3. Run `copilot` from the repo root.\r\n4. Ask the model `list available MCP servers`.\r\n\r\n**Expected:** `example` is listed.\r\n**Actual:** No project-level servers; only those in `~/.copilot/mcp-config.json`.\r\n\r\n### Workaround\r\n\r\nPass the config explicitly on every spawn:\r\n\r\n```\r\ncopilot --additional-mcp-config @./.copilot/mcp-config.json\r\n```\r\n\r\nThe `@` prefix is required (means \"read JSON from file\"). We are shipping this workaround in `@bradygaster/squad-cli` 0.9.6-preview.8 across all 10 of our `copilot` spawn sites.\r\n\r\n### Why this matters\r\n\r\nProject-local MCP config is the natural way for frameworks (squad, etc.) to ship a curated MCP surface alongside the code. With the current behavior the framework must wrap every `copilot` invocation, which is fragile and easy to miss.\r\n\r\n### Ask\r\n\r\n1. Document the current behavior (no auto-load of project `.copilot/mcp-config.json`) in CLI docs.\r\n2. Consider auto-merging project-level config when present (with precedence rules vs `~/.copilot/mcp-config.json`).\r\n\r\n### Environment\r\n\r\n- Copilot CLI: 1.0.58\r\n- OS: Windows 11 (reproduced; same behavior expected on macOS/Linux)\r\n- Node: 22.x\r\n","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-06-02T18:22:26Z","url":"https://github.com/github/copilot-cli/issues/3642"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d898eaa-7241-472c-e752-2af7e16ccf8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A08E:7A60E:1DEA837:2655A10:6B01577F |
| html-safe-nonce | 6fb6db1b009a00a24cb056ba36a94298148bda9a7ec283f42800d96c6fd661c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDhFOjdBNjBFOjFERUE4Mzc6MjY1NUExMDo2QjAxNTc3RiIsInZpc2l0b3JfaWQiOiIzNDk4NzM1ODQ3Nzk5MzQ3MDcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 992f4ae2794d3c7673c0366d88d8131cdab2b9ecac07715ada02d7638e63d5dd |
| hovercard-subject-tag | issue:4573957786 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/copilot-cli/3642/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdac792420f73717f934d08b56192dd0870fb0572a92a4e966cf40b97edc1494/github/copilot-cli/issues/3642 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdac792420f73717f934d08b56192dd0870fb0572a92a4e966cf40b97edc1494/github/copilot-cli/issues/3642 |
| og:image:alt | Summary Copilot CLI 1.0.58 does not auto-load .copilot/mcp-config.json from the current working directory (project root). Only ~/.copilot/mcp-config.json is read automatically. As a result, MCP ser... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/copilot-cli git https://github.com/github/copilot-cli.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 585860664 |
| octolytics-dimension-repository_nwo | github/copilot-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 585860664 |
| octolytics-dimension-repository_network_root_nwo | github/copilot-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width