Answer: Add a JSON file to the repository: Copilot CLI looks for project-level configuration in .mcp.json (in any directory from your working directory up to the repository root) or .github/mcp.json (shared configuration committed to the repository). Status: Confirmed Entry: tool/github-copilot/integrations/per-repository-mcp-servers Revision: 3 Digest: sha256:836df10b6f43ffef (changes whenever the content changes) Timeline: Created: 2026-11-13T03:23:57Z Last changed: 2026-11-20T13:02:11Z (trust requirement: — → Project-level MCP servers are loaded only after you confirm folder trust on first launch.) Last verified: 2026-11-20T13:02:11Z Next check: 2026-11-21T13:02:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of local config path | .mcp.json | [1] | 2026-11-20 shared config path | .github/mcp.json | [1] | 2026-11-20 precedence rule | .mcp.json takes precedence | [1] | 2026-11-20 trust requirement | Project-level MCP servers are loaded only after you confirm folder trust on first launch. | [1] | 2026-11-20 Sources: [1] GitHub. "Adding MCP servers for GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers Role: primary. Accessed: 2026-11-20T13:02:11Z Quote: ".mcp.json (in any directory from your working directory up to the repository root)" (Supports: local config path) Quote: ".github/mcp.json Shared configuration that is committed to the repository" (Supports: shared config path) Quote: "If both .mcp.json and .github/mcp.json exist in the same directory, .mcp.json takes precedence." (Supports: precedence rule) Quote: "Project-level MCP servers are loaded only after you confirm folder trust on first launch." (Supports: trust requirement) Snapshot SHA-256: 9647ffca98fa49137668e8d0168f853a663a14f58f104ba9844d1d79003a5377 (captured 2026-11-19T12:55:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T12:55:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:02:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:02:11Z Last attempt: 2026-11-20T13:02:11Z Notes and limitations: Extracted automatically from a single official source (section "Adding per-repository MCP servers"). Related: https://latestn.com/tool/github-copilot/integrations/plugin-json-fields What fields can I set in a plugin.json manifest for GitHub Copilot CLI plugins? https://latestn.com/tool/github-copilot/integrations/reuse-vscode-mcp-config How can I reuse my MCP configuration from Visual Studio Code in GitHub Copilot? https://latestn.com/tool/github-copilot/integrations/sdk-authentication How do I authenticate the GitHub Copilot SDK in my application? https://latestn.com/tool/github-copilot/integrations/lsp-servers-cli How do I use LSP servers with GitHub Copilot CLI? https://latestn.com/tool/github-copilot/integrations/manage-mcp-servers How do I manage or remove MCP servers in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/integrations/mcp-servers-sdk How do I use MCP servers with the GitHub Copilot SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:02:11Z | changed | trust requirement: — → Project-level MCP servers are loaded only after you confirm folder trust on first launch. | [1] 2026-11-20T13:02:11Z | changed | precedence rule: — → .mcp.json takes precedence | [1] 2026-11-20T13:02:11Z | changed | shared config path: — → .github/mcp.json | [1] 2026-11-20T13:02:11Z | changed | local config path: — → .mcp.json | [1] 2026-11-20T13:02:11Z | changed | Prompt mode environment variable: GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP → — | [1] 2026-11-20T13:02:11Z | changed | Trust requirement: Project-level MCP servers are loaded only after you confirm folder trust on first launch. → — | [1] 2026-11-20T13:02:11Z | changed | Accepted top-level formats: mcpServers → — | [1] 2026-11-20T13:02:11Z | changed | Precedence within same directory: .mcp.json → — | [1] 2026-11-20T13:02:11Z | changed | Shared config path: .github/mcp.json → — | [1] 2026-11-20T13:02:11Z | changed | Local config path: .mcp.json → — | [1] 2026-11-16T12:45:49Z | changed | Prompt mode environment variable: — → GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP | [1] 2026-11-16T12:45:49Z | changed | Trust requirement: — → Project-level MCP servers are loaded only after you confirm folder trust on first launch. | [1] 2026-11-16T12:45:49Z | changed | Accepted top-level formats: — → mcpServers | [1] 2026-11-16T12:45:49Z | changed | Precedence within same directory: — → .mcp.json | [1] 2026-11-16T12:45:49Z | changed | Shared config path: — → .github/mcp.json | [1] 2026-11-16T12:45:49Z | changed | Local config path: — → .mcp.json | [1] 2026-11-16T12:45:49Z | changed | prompt mode env var: GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP → — | [1] 2026-11-16T12:45:49Z | changed | trust requirement: confirm folder trust on first launch → — | [1] 2026-11-16T12:45:49Z | changed | accepted formats: mcpServers → — | [1] 2026-11-16T12:45:49Z | changed | precedence rule: .mcp.json takes precedence → — | [1] 2026-11-16T12:45:49Z | changed | shared config path: .github/mcp.json → — | [1] 2026-11-16T12:45:49Z | changed | local config path: .mcp.json → — | [1] 2026-11-13T03:23:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/integrations/per-repository-mcp-servers/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/integrations/per-repository-mcp-servers POST: https://latestn.com/dispute/tool/github-copilot/integrations/per-repository-mcp-servers with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/integrations/per-repository-mcp-servers?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add a per-repository MCP server in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:02:11Z. https://latestn.com/tool/github-copilot/integrations/per-repository-mcp-servers (accessed 2026-11-21T10:00:49Z). @misc{LatestN_tool_github_copilot_integrations_per_repository_mcp_servers_r3, title = {How do I add a per-repository MCP server in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/integrations/per-repository-mcp-servers}}, note = {Revision 3; digest sha256:836df10b6f43ffef; last verified 2026-11-20T13:02:11Z; accessed 2026-11-21T10:00:49Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/integrations/per-repository-mcp-servers