|Labs
预约演示平台
React(Lingo Compiler)
Alpha
React (MCP)
React(i18n)旧版 CLI(v0)
已废弃

Lingo.dev React MCP

  • 工作方式
  • 设置

AI Agents

  • Claude Code
  • Cursor
  • GitHub Copilot Agents
  • Codex(OpenAI)

GitHub Copilot Agents

GitHub Copilot coding agent 是一款可自主运行的 AI 工具,能在后台完成开发任务并发起拉取请求。它支持通过仓库设置接入 MCP 服务器。

设置#

1

配置 MCP 服务器

前往你的仓库 Settings > Copilot > Coding agent。在 MCP configuration 字段中,输入:

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

点击 Save MCP configuration。

2

添加 agent 定义

将以下文件提交到你仓库中的 .github/agents/i18n-setup.md:

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

使用方式#

  1. 前往 Copilot Agents
  2. 选择你的仓库和 i18n-setup agent
  3. 输入提示词:
text
Set up i18n for the following locales:

- en
- es

Use "en" as the default locale.
  1. 点击 Start task

agent 会在后台运行,并创建一个包含完整 i18n 实现的拉取请求。

下一步#

工作原理
了解 MCP 服务器提供了什么
Claude Code
改在 Claude Code 中设置
Cursor
改在 Cursor 中设置
Codex (OpenAI)
改在 Codex 中设置

这个页面对你有帮助吗?

Max PrilutskiyMax Prilutskiy·已更新 4 个月前·1 分钟阅读