使用 AI 构建
安装 Claude Plugin、Kiro Power 或 MCP Server 以使 AI 助手能够有效地使用该插件。通过使用这些工具,您可以借助 AI 加速开发工作流程,同时受益于以一致的方式搭建项目脚手架,减少设置主要组件的时间,并从插件内置的安全性、可观测性、类型安全和本地开发中获益。
配置您的 AI 助手
Section titled “配置您的 AI 助手”Nx Plugin for AWS 作为 Kiro Power 发布,它将 MCP 服务器与指导文档和工作流程指南捆绑在一起。
-
在 Kiro 中打开 Powers 面板,然后点击 Add power from GitHub
-
输入以下 URL:
https://github.com/awslabs/nx-plugin-for-aws/tree/main/powers/nx-plugin-for-aws -
点击 Install
Kiro 会自动配置 MCP 服务器 — 无需额外设置。
运行以下命令:
kiro-cli mcp add \ --name nx-plugin-for-aws \ --scope global \ --command npx \ --args "-y,@aws/nx-plugin-mcp"有关更多详细信息,请参阅 Kiro CLI MCP 文档。
Nx Plugin for AWS 作为 Claude Code plugin 发布,它将 Skill 与 MCP 服务器捆绑在一起。
在 Claude Code 中依次运行以下命令:
/plugin marketplace add awslabs/nx-plugin-for-aws/plugin install nx-plugin-for-aws@nx-plugin-for-aws然后运行 /reload-plugins 以激活插件。
将以下内容添加到 ~/.cursor/mcp.json(或项目中的 .cursor/mcp.json):
{ "mcpServers": { "nx-plugin-for-aws": { "command": "npx", "args": ["-y", "@aws/nx-plugin-mcp"] } }}有关更多详细信息,请参阅 Cursor MCP 文档。
将以下内容添加到 ~/.codex/config.toml:
[mcp_servers.nx-plugin-for-aws]command = "npx"args = ["-y", "@aws/nx-plugin-mcp"]有关更多详细信息,请参阅 Codex 配置文档。
大多数兼容 MCP 的助手使用 JSON 配置文件。添加以下条目:
{ "mcpServers": { "nx-plugin-for-aws": { "command": "npx", "args": ["-y", "@aws/nx-plugin-mcp"] } }}如果您遇到诸如 ENOENT npx 之类的问题,请将命令替换为 npx 的完整路径(使用 which npx 查找)。
有关特定助手的文档:
开始 Vibe Coding
Section titled “开始 Vibe Coding”要求您的 AI 助手使用 nx-plugin-for-aws 构建一些东西!它通常会创建一个工作空间,使用适用的生成器搭建脚手架,然后填充业务逻辑。
尝试这样的提示:
“使用 Nx Plugin for AWS 构建一个多代理应用程序。我想要一个 React 前端,它与后端编排代理通信,后端编排代理委托给专门的研究和写作代理。”
或者从一个更小的起点开始:
“使用 Nx Plugin for AWS 搭建一个由 tRPC API 支持的 React 网站,包含 Cognito 身份验证和 CDK 基础设施。“
构建您自己的 MCP Server
Section titled “构建您自己的 MCP Server”查看 ts#mcp-server 生成器指南,了解有关构建您自己的 MCP Server 的详细信息。