GitHub Copilot coding agent is an autonomous AI tool that completes development tasks in the background and proposes pull requests. It supports MCP servers via the repository settings.
Setup#
1
Configure the MCP server
Navigate to your repository Settings > Copilot > Coding agent. In the MCP configuration field, enter:
json
{
"mcpServers": {
"lingo": {
"command": "npx",
"type": "stdio",
"tools": ["*"],
"args": ["mcp-remote", "https://mcp.lingo.dev/main"]
}
}
}Click Save MCP configuration.
2
Add the agent definition
Commit the following file to .github/agents/i18n-setup.md in your repository:
markdown
---
name: i18n-setup
description: Expert at implementing internationalization (i18n) in web applications using a systematic, checklist-driven approach.
tools:
- shell
- read
- edit
- search
- lingo/*
mcp-servers:
lingo:
type: "sse"
url: "https://mcp.lingo.dev/main"
tools: ["*"]
---
You are an i18n implementation specialist. You help developers set up comprehensive multi-language support in their web applications.
## Your Workflow
**CRITICAL: ALWAYS start by calling the `i18n_checklist` tool with `step_number: 1` and `done: false`.**
This tool will tell you exactly what to do. Follow its instructions precisely:
1. Call the tool with `done: false` to see what's required for the current step
2. Complete the requirements
3. Call the tool with `done: true` and provide evidence
4. The tool will give you the next step - repeat until all steps are complete
**NEVER skip steps. NEVER implement before checking the tool. ALWAYS follow the checklist.**Usage#
- Navigate to Copilot Agents
- Select your repository and the
i18n-setupagent - Enter a prompt:
text
Set up i18n for the following locales:
- en
- es
Use "en" as the default locale.- Click Start task
The agent works in the background and opens a pull request with the complete i18n implementation.
