i18n(zh-cn): Add new guides/build-with-ai.mdx translation#13987
Conversation
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
新增一篇中文指南,介绍如何通过 Astro Docs MCP 服务器为常见 AI 工具提供最新 Astro 文档上下文,并给出 AI 辅助开发 Astro 的实践建议。
Changes:
- 新增
build-with-ai.mdx中文文档页面,说明 Astro Docs MCP 服务器用途与原理 - 提供多种工具(CLI/编辑器/Action 等)配置 MCP 的示例与安装入口
- 添加面向 AI 构建 Astro 的操作建议与排查指引
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "Astro docs": { | ||
| "httpUrl": "https://mcp.docs.astro.build/mcp", | ||
| } |
There was a problem hiding this comment.
This issue exists in the original English documentation. As a translator, I must keep the translated version consistent with the source.
| "Astro docs": { | ||
| "type": "remote", | ||
| "url": "https://mcp.docs.astro.build/mcp", | ||
| "enabled": true |
There was a problem hiding this comment.
This issue exists in the original English documentation. As a translator, I must keep the translated version consistent with the source.
| allowed_tools: "mcp__astro-docs__search_astro_docs" | ||
| ``` | ||
|
|
||
| [在 Claude Code Github Action 中使用 MCP 服务器的更多信息](https://github.com/anthropics/claude-code-action?tab=readme-ov-file#using-custom-mcp-configuration) |
|
|
||
| ### 服务器详情 | ||
|
|
||
| - **名称**: Astro Docs |
There was a problem hiding this comment.
The terms Astro docs and astro-docs were originally used as key names in the English source. Regarding Astro Docs, I preserved two instances that involve configuring the MCP name, and translated the remaining ones
| ```json title="MCP 配置" {3-6} | ||
| { | ||
| "mcpServers": { | ||
| "Astro docs": { |
| mcp_config: | | ||
| { | ||
| "mcpServers": { | ||
| "astro-docs": { |
| 1. 导航至 [Claude.ai 连接器设置](https://claude.ai/settings/connectors)。 | ||
| 2. 点击 "Add custom connector"(添加自定义连接器)。你可能需要向下滚动才能找到此选项。 | ||
| 3. 输入服务器 URL: `https://mcp.docs.astro.build/mcp`。 | ||
| 4. 将名称设置为 "Astro Docs"。 |
| 一旦配置完成,你可以询问你的 AI 工具有关 Astro 的问题,它将直接从最新文档中检索信息。编码智能体将能够在执行编码任务时访问最新的文档,聊天机器人将能够准确回答关于 Astro 特性、API 和最佳实践的问题。 | ||
|
|
||
| :::note[请记住] | ||
| Astro 文档 MCP server 提供了对于最新文档的访问能力,但你的 AI 工具仍需负责解释和代码生成,AI 也会犯错,请务必仔细审查生成的代码并进行充分测试。 |
Description (required)
Translate
guides/build-with-ai.mdxto Simplified Chinese.Related issues & labels (optional)
username: _isyuah