GitHub Copilot Agents

GitHub Copilot AgentsでLingo.dev MCPをセットアップする

GitHub Copilot Agentsとは何か?

GitHub Copilotコーディングエージェントは、開発タスクを完了するためにバックグラウンドで独立して動作する自律型AIツールです。バグ修正、新機能の実装、テストカバレッジの拡大、ドキュメントの更新、技術的負債への対応などを処理できます。

初期設定

  1. GitHubリポジトリに移動します。

  2. Settings > Copilot > Coding agentに移動します。

  3. MCP configurationフィールドに、以下の設定を入力します:

    {
      "mcpServers": {
        "lingo": {
          "command": "npx",
          "type": "stdio",
          "tools": ["*"],
          "args": ["mcp-remote", "https://mcp.lingo.dev/main"]
        }
      }
    }
    
  4. Save MCP configurationをクリックします。

  5. 同じリポジトリで、以下のエージェント定義を.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.
    

使用方法

  1. GitHubにログインします。

  2. Agentsに移動します。

  3. リポジトリを選択します。

  4. エージェントを選択します。

  5. 以下のプロンプトを入力します:

    Set up i18n for the following locales:
    
    - en
    - es
    
    Use "en" as the default locale.
    

    以下を確認してください:

    • 指定されたロケールを希望のロケールに置き換える
    • 常にデフォルトロケールを指定する
  6. タスク開始をクリックします。