GitHub Copilot Agents
在 GitHub Copilot Agents 中配置 Lingo.dev MCP
什么是 GitHub Copilot Agents?
GitHub Copilot 编码代理是一款自主 AI 工具,可在后台独立完成开发任务。它能够处理 bug 修复、实现新功能、扩展测试覆盖率、更新文档以及解决技术债务。
初始设置
-
进入一个 GitHub 仓库。
-
依次进入 Settings > Copilot > Coding agent。
-
在 MCP 配置 字段中,输入以下配置:
{ "mcpServers": { "lingo": { "command": "npx", "type": "stdio", "tools": ["*"], "args": ["mcp-remote", "https://mcp.lingo.dev/main"] } } } -
点击 Save MCP configuration。
-
在同一个仓库中,将以下代理定义提交到
.github/agents/i18n-setup.md文件:--- 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.** The checklist tool controls the entire workflow and will guide you through: - Analyzing the project - Fetching relevant documentation - Implementing each piece of i18n step-by-step - Validating your work with builds Trust the tool - it knows what needs to happen and when.
使用方法
-
登录 GitHub。
-
进入 Agents。
-
选择仓库。
-
选择代理。
-
输入以下提示:
Set up i18n for the following locales: - en - es Use "en" as the default locale.请确保:
- 将指定的语言区域替换为所需的语言区域
- 始终指定一个默认语言区域
-
点击 Start task。