وكلاء GitHub Copilot

إعداد Lingo.dev MCP في وكلاء GitHub Copilot

ما هو GitHub Copilot Agents؟

وكيل البرمجة GitHub Copilot هو أداة ذكاء اصطناعي مستقلة تعمل بشكل مستقل في الخلفية لإكمال مهام التطوير. يمكنه التعامل مع إصلاح الأخطاء، وتنفيذ ميزات جديدة، وتوسيع تغطية الاختبار، وتحديث الوثائق، ومعالجة الديون التقنية.

الإعداد الأولي

  1. انتقل إلى مستودع GitHub.

  2. انتقل إلى الإعدادات > Copilot > وكيل البرمجة.

  3. في حقل تكوين MCP، أدخل التكوين التالي:

    {
      "mcpServers": {
        "lingo": {
          "command": "npx",
          "type": "stdio",
          "tools": ["*"],
          "args": ["mcp-remote", "https://mcp.lingo.dev/main"]
        }
      }
    }
    
  4. انقر على حفظ تكوين MCP.

  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. انقر على بدء المهمة.