Schema for internal use only

Please do not extend this schema as it is part of Nx internal usage.

@nx/workspace:set-up-ai-agents

Sets up the Nx MCP & rule files for common AI Agents.

Usage

1nx generate set-up-ai-agents ... 2

By default, Nx will search for set-up-ai-agents in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/workspace:set-up-ai-agents ... 2

Show what will be generated without writing to disk:

1nx g set-up-ai-agents ... --dry-run 2

Options

directory

Required
string
Default: .

Directory where the AI agent configuration files will be generated

packageVersion

string
Default: next

The version of the package to use

writeNxCloudRules

boolean
Default: false

Whether to write Nx Cloud rules