Cursor 是一款基于 VS Code 的 AI 代码编辑器,支持通过项目级 JSON 配置文件接入 MCP 服务器。
配置#
在项目根目录创建 .cursor/mcp.json:
json
{
"mcpServers": {
"lingo": {
"url": "https://mcp.lingo.dev/main"
}
}
}无需 API 密钥。
使用方式#
在 Cursor 中打开项目,然后输入:
Set up i18n
也可以提前指定 locale:
Set up i18n with the following locales: en, es, and pt-BR. The default locale is "en".
Cursor 会调用 i18n_checklist 工具,并按引导步骤完成整个流程——分析项目、获取框架文档,以及实现 locale 路由、翻译和语言切换器。
