# Can I reuse my local Copilot CLI MCP configuration in a GitHub Agentic Workflow?

Exam: GH-700 — Enhancing Operational Efficiency with Agentic AI (beta)
Knowledge domain: Design and implement agentic workflows and automations (25–30%)
Updated: 2026-11-19T04:47:24.545038+00:00
HTML: https://learningpathx.com/faq/GH-700/gh700-copilot-cli-mcp-to-agentic-workflow.html

## Also asked as

- Is a working Copilot CLI MCP connection enough to configure the same integration in gh-aw?
- What must change when an MCP integration moves from Copilot CLI to GitHub Agentic Workflows?

A working local Copilot CLI connection is not a GitHub Agentic Workflows deployment configuration. Rebuild the integration using the selected workflow engine and runner's supported schema, authentication and tool controls; a developer's home-directory MCP configuration is not automatically available on an Actions runner.

For the handoff, identify the approved server, exact required tools, external service identity and permitted resource scope. Map them to the workflow's documented integration configuration and secret delivery. Configure the workflow's tool capabilities and required network access separately from service authorization, and inspect which runtime components receive credentials.

GitHub Agentic Workflows uses Markdown source with YAML frontmatter under `.github/workflows/`, compiled into a `.lock.yml` workflow. Retain and review both source and compiled output. Do not paste the CLI `mcpServers` JSON object into frontmatter and assume compatibility.

If the integration is undocumented for the selected runtime or rejected by the compiler, resolve that compatibility problem before running it; broader permissions do not repair an invalid schema. After compilation, run an authorized bounded trial and verify the actual identity, tool activity, returned records and resulting artifact. Compilation validates configuration but does not prove the business task is authorized or its result correct.

References: [Creating GitHub Agentic Workflows - GitHub Docs](https://docs.github.com/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows), [Security Architecture](https://github.github.com/gh-aw/introduction/architecture/), [Adding MCP servers for GitHub Copilot CLI - GitHub Docs](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers), [Frontmatter](https://github.github.com/gh-aw/reference/frontmatter/).

Source: [GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration](https://learningpathx.com/guide/GH-700/gh-700-connect-mcp-tools-with-scoped-credentials-and-runtime-configuration.html)
