Agentes do GitHub Copilot

Max PrilutskiyCEO e cofundadorAtualizado em: há 7 meses · 2 min de leitura

O agente de programação do GitHub Copilot é uma ferramenta de IA autónoma que executa tarefas de desenvolvimento em segundo plano e propõe pull requests. Suporta servidores MCP através das definições do repositório.

Configuração#

1

Configurar o servidor MCP

Aceda a Settings > Copilot > Coding agent no seu repositório. No campo MCP configuration, introduza:

json
{
  "mcpServers": {
    "lingo": {
      "command": "npx",
      "type": "stdio",
      "tools": ["*"],
      "args": ["mcp-remote", "https://mcp.lingo.dev/main"]
    }
  }
}

Clique em Save MCP configuration.

2

Adicionar a definição do agente

Faça commit do ficheiro seguinte em .github/agents/i18n-setup.md no seu repositório:

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.**

consumo#

  1. Aceda a Copilot Agents
  2. Selecione o seu repositório e o agente i18n-setup
  3. Introduza um prompt:
text
Set up i18n for the following locales:

- en
- es

Use "en" as the default locale.
  1. Clique em Start task

O agente trabalha em segundo plano e abre um pull request com a implementação completa de i18n.

Próximos passos#