MCP 服务器概览
What is Nx Console?
Nx Console is a graphical user interface and editor extension for managing Nx and Lerna monorepos. It provides visual workflows, project & task overviews, generator (scaffold) UIs, workspace graphs, and AI-enhancements to make working with large monorepos faster and more discoverable inside editors like VS Code and JetBrains IDEs.
How to use Nx Console?
- Install the extension: Visual Studio Code (Visual Studio Marketplace or OpenVSX) or JetBrains plugin marketplace.
- Open an Nx or Lerna workspace (Node.js required).
- Use the Projects view to browse projects, targets, and run tasks; open the Generate UI via the “Nx: Generate (UI)” command or context menu to run generators with autocomplete and validation.
- Optionally install/run the nx-mcp server (bundled with Nx Console or available as a separate npm package) to provide enhanced AI context to editor LLM features.
- Create or open an Nx workspace with:
npx create-nx-workspace@latest my-workspaceor add Nx to an existing repo withnpx nx init.
Key features
- AI enhancements: feed workspace architecture, generators and docs to editor LLMs; optional MCP server for VSCode and Cursor.
- Generate UI: interactive generator forms with autocomplete, validation and dry-run previews.
- Project Details View: inspect project configuration, available tasks, and run or navigate task graphs.
- Projects & Tasks Overview: browse projects, create shortcuts for common commands, and run targets from the UI.
- Workspace visualization: visualize project and task graphs focused on the file/project you are editing.
- Nx Cloud integration: view CI pipeline executions, onboarding guidance, and notifications for pipeline completion or failures.
- Cross-editor support: extensions for VS Code and JetBrains IDEs.
Use cases
- Developers working in large monorepos who prefer a visual interface inside their editor.
- Running and scaffolding generators without memorizing CLI flags.
- Exploring project dependencies and task graphs to understand impact of changes.
- Monitoring Nx Cloud CI runs and receiving in-editor notifications.
- Enhancing editor AI assistants with workspace-aware context for better code suggestions and Q&A.
FAQ
- Which editors are supported?
Visual Studio Code (Marketplace/OpenVSX) and JetBrains IDEs via a plugin.
- What workspace types are required?
An Nx or Lerna workspace is required; Node.js must be installed.
- Which Nx versions are supported?
The latest Nx Console supports Nx versions starting at Nx 15. Older versions may not be fully supported.
- Is there an AI integration and how does it work?
Yes. Nx Console can provide workspace context to editor LLMs and includes an MCP server (nx-mcp) to feed up-to-date docs, generators and architecture info to tools like VS Code Copilot and Cursor.
- How do I install or run the MCP server separately?
The MCP server can be installed as the
nx-mcpnpm package; the extension also bundles an MCP server option. See the repo/docs for instructions.
- Is Nx Console open source and can I contribute?
Yes. The project is open source on GitHub; contributions are welcome (see CONTRIBUTING.md and good-first-issue labels).
- What if I encounter compatibility issues?
Report issues on the GitHub repository or submit PRs. For upgrading Nx, follow Nx migrate docs.