Study FAQ
Does running an MCP tool in one repository limit it to that repository?
Also asked as 2
- Can an MCP integration reach other repositories or services from a repository task?
- What determines the resources an external Copilot MCP tool can access?
Answer
No. An external MCP tool's reach depends on its server configuration and credentials, so starting a task in one repository does not by itself confine that integration to that repository. Review the actual service identity, permitted resources and operations before connecting it.
For a support-summary task, define the product or tenant, reporting period, approved fields and read operation. Prefer service credentials restricted to that scope, and expose only the required retrieval tools. Updating case status or contacting customers should require separately authorized capabilities; a friendly tool name or “read only” prompt is insufficient evidence of service-level restrictions.
Keep credential values out of prompts, committed configuration and review records. For GitHub Actions, use supported secret delivery and review which repositories can access organization secrets. Network access and possession of a credential are separate from permission to perform the business action.
If the service cannot separate the required reads from unacceptable access, return that broader reach to its responsible owner and change the integration design or obtain an explicit decision before proceeding. A successful connection does not demonstrate least privilege or prove the retrieved report is correct.
References: Copilot automations - GitHub Docs, Security Architecture, GitHub Copilot CLI command reference - GitHub Docs.
Full explanation
GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration
Study guide · GH-700
Read the full explanation