René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4d898eaa-7241-472c-e752-2af7e16ccf8e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA08E:7A60E:1DEA837:2655A10:6B01577F
html-safe-nonce6fb6db1b009a00a24cb056ba36a94298148bda9a7ec283f42800d96c6fd661c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDhFOjdBNjBFOjFERUE4Mzc6MjY1NUExMDo2QjAxNTc3RiIsInZpc2l0b3JfaWQiOiIzNDk4NzM1ODQ3Nzk5MzQ3MDcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac992f4ae2794d3c7673c0366d88d8131cdab2b9ecac07715ada02d7638e63d5dd
hovercard-subject-tagissue:4573957786
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/copilot-cli/3642/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bdac792420f73717f934d08b56192dd0870fb0572a92a4e966cf40b97edc1494/github/copilot-cli/issues/3642
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bdac792420f73717f934d08b56192dd0870fb0572a92a4e966cf40b97edc1494/github/copilot-cli/issues/3642
og:image:altSummary 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametamirdresher
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/copilot-cli git https://github.com/github/copilot-cli.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id585860664
octolytics-dimension-repository_nwogithub/copilot-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id585860664
octolytics-dimension-repository_network_root_nwogithub/copilot-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/copilot-cli/issues/3642#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcopilot-cli%2Fissues%2F3642
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcopilot-cli%2Fissues%2F3642
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcopilot-cli
Reloadhttps://github.com/github/copilot-cli/issues/3642
Reloadhttps://github.com/github/copilot-cli/issues/3642
Reloadhttps://github.com/github/copilot-cli/issues/3642
githubhttps://github.com/github
copilot-clihttps://github.com/github/copilot-cli
Codehttps://github.com/github/copilot-cli
Issues2.1k (2.1k)https://github.com/github/copilot-cli/issues
Pull requests47 (47)https://github.com/github/copilot-cli/pulls
Discussionshttps://github.com/github/copilot-cli/discussions
Actionshttps://github.com/github/copilot-cli/actions
Projectshttps://github.com/github/copilot-cli/projects
Security and quality2 (2)https://github.com/github/copilot-cli/security
Insightshttps://github.com/github/copilot-cli/insights
https://github.com/github/copilot-cli
New issuehttps://github.com/login?return_to=https://github.com/github/copilot-cli/issues/3642
New issuehttps://github.com/login?return_to=https://github.com/github/copilot-cli/issues/3642
Featurehttps://github.com/github/copilot-cli/issues?q=type:"Feature"
Copilot CLI 1.0.58 does not auto-load project-level .copilot/mcp-config.jsonhttps://github.com/github/copilot-cli/issues/3642#top
area:configurationConfig files, instruction files, settings, and environment variableshttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Aconfiguration%22
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryhttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Amcp%22
mcp_hosthttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22mcp_host%22
https://github.com/tamirdresher
tamirdresherhttps://github.com/tamirdresher
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#issue-4573957786
github-actionshttps://github.com/apps/github-actions
triagehttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22triage%22
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26251790837
examonhttps://github.com/examon
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryhttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Amcp%22
area:configurationConfig files, instruction files, settings, and environment variableshttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Aconfiguration%22
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26252072972
examonhttps://github.com/examon
Featurehttps://github.com/github/copilot-cli/issues?q=type:"Feature"
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26252077982
github-actionshttps://github.com/apps/github-actions
triagehttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22triage%22
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26252078352
devm33https://github.com/devm33
mcp_hosthttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22mcp_host%22
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26252481231
https://github.com/caarlos0
caarlos0https://github.com/caarlos0
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#issuecomment-4606120569
https://github.com/tamirdresher
tamirdresherhttps://github.com/tamirdresher
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#issuecomment-4606469486
@caarlos0https://github.com/caarlos0
@bradygaster/squad-clihttps://github.com/bradygaster/squad
tamirdresherhttps://github.com/tamirdresher
completedhttps://github.com/github/copilot-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 2, 2026https://github.com/github/copilot-cli/issues/3642#event-26255082876
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/copilot-cli/issues/3642
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/copilot-cli/issues/3642
area:configurationConfig files, instruction files, settings, and environment variableshttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Aconfiguration%22
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryhttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22area%3Amcp%22
mcp_hosthttps://github.com/github/copilot-cli/issues?q=state%3Aopen%20label%3A%22mcp_host%22
Featurehttps://github.com/github/copilot-cli/issues?q=type:"Feature"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.