Make Claude an effective monorepo developer. Navigate the project graph, follow workspace conventions, and run generators with best practices baked in. Give Claude the ability to drive autonomous CI fix loops - retrieving failed task outputs, analyzing errors, applying fixes, and iterating until green. Includes skills, subagents, and an MCP server.
The easiest way to add these AI agent configurations to your Nx workspace is by running:
nx configure-ai-agents
This will set up the appropriate configuration files for your preferred AI tools.
Preview: the nx and nx-cloud plugins
plugins/ holds two plugins that work across coding agents without any per-agent build: nx (workspace skills and the nx MCP server) and nx-cloud (CI monitoring, CI failure review, cache investigation, CI optimization, the Nx Cloud API, and the hosted Nx Cloud MCP server). They are not yet what nx configure-ai-agents installs.
Claude Code: the marketplace is a single file, so add it by URL and enable the plugins in .claude/settings.json. Disable the current nx@nx-claude-plugins plugin in the same file, since both are named nx:
Or for yourself only: claude plugin marketplace add https://raw.githubusercontent.com/nrwl/nx-ai-agents-config/main/plugins/.claude-plugin/marketplace.json, then claude plugin install nx@nx-plugins and claude plugin install nx-cloud@nx-plugins.
Codex: add the marketplace once, then install or enable the plugins:
A repository can enable them for everyone who has added the marketplace in .codex/config.toml. Codex starts plugin MCP servers outside the workspace, so the repository also declares the nx MCP server there, which takes precedence over the plugin's copy (nx configure-ai-agents already writes this entry):
Cursor: load the plugins from a checkout of this repository with cursor-agent --plugin-dir <checkout>/plugins/nx --plugin-dir <checkout>/plugins/nx-cloud.
Pointing the Nx Cloud MCP server at another host
The nx-cloud plugin connects to https://cloud.nx.app/nx-cloud/mcp. To use another Nx Cloud host, such as a single-tenant instance or a local server, give the agent that host's /nx-cloud/mcp URL:
Claude Code: set NX_CLOUD_MCP_URL, for example to https://snapshot.nx.app/nx-cloud/mcp. Put it under env in ~/.claude/settings.json (every project), the workspace's .claude/settings.json (everyone in the workspace) or .claude/settings.local.json (you, in this workspace), or export it in the shell that starts Claude Code. Declaring another server named nx-cloud does not work: Claude Code runs it next to the plugin's server instead of replacing it.
Codex: declare a server with the plugin's name. It replaces the plugin's server. codex mcp add nx-cloud --url https://snapshot.nx.app/nx-cloud/mcp adds it to ~/.codex/config.toml; for one workspace, add it to the workspace's .codex/config.toml, which Codex reads once the project is trusted: