跳转到内容

使用 AI 构建

使用 Nx Plugin for AWS 预设创建的工作空间包含了常见编码代理(Claude Code、Cursor、Kiro、Gemini CLI、GitHub Copilot 和 OpenAI Codex)的项目级 MCP 配置,因此在工作空间内工作的代理可以使用插件的 MCP server,无需进一步设置。

在您的助手中打开工作空间并询问您想要的内容:

Prompt

Add a React website with an AG-UI agent, an MCP server for its tools and a DynamoDB table, and wire them together.

它会查找插件提供的生成器,按照依赖关系所需的顺序运行它们。使用您的代理从那里填充业务逻辑。

上面的工作空间配置足以用于构建。如果您想使用 AI 创建新工作空间,或将 Nx Plugin for AWS 添加到现有项目,您可以全局安装:

Nx Plugin for AWS 作为 Kiro Power 发布,它将 MCP 服务器与指导文档和工作流程指南捆绑在一起。

  1. 在 Kiro 中打开 Powers 面板,然后点击 Add power from GitHub

  2. 输入以下 URL:

    https://github.com/awslabs/nx-plugin-for-aws/tree/main/powers/nx-plugin-for-aws
  3. 点击 Install

Kiro 会自动配置 MCP 服务器 — 无需额外设置。

在插件全局可用的情况下,您的助手也可以创建工作空间。尝试这样的提示:

Prompt

Build a multi-agent application using the Nx Plugin for AWS. I want a React frontend that talks to a backend orchestrator agent which delegates to specialised research and writing agents.

或者从一个更小的起点开始:

Prompt

Use the Nx Plugin for AWS to scaffold a React website backed by a tRPC API, with Cognito auth and CDK infrastructure.