Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 29, 2025

Closes #30941

What I did

Adds NX MCP server configuration to enable AI-assisted development with Nx workspace context. The nx-mcp@latest package provides AI assistants with understanding of the project graph, build targets, and monorepo structure.

  • Added NX MCP server to .cursor/mcp.json for Cursor users
  • Added .vscode/mcp.json with NX MCP server for VS Code users
  • Added .github/copilot-mcp.json with NX MCP server for GitHub Copilot users

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

Configuration-only change. No runtime testing needed. JSON files validated with jq.

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook publish.yml --field pr=<PR_NUMBER>

Original prompt

This section details on the original issue you should resolve

<issue_title>Install MCP server</issue_title>
<issue_description>### Describe the problem

Follow this guide:

https://nx.dev/docs/getting-started/ai-setup

To install the NX mcp server.

Additional context

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Summary by CodeRabbit

  • Chores
    • Added MCP server configuration for enhanced IDE integration across Cursor, GitHub Copilot, and VS Code.

✏️ Tip: You can customize this high-level summary in your review settings.

@kasperpeulen kasperpeulen added build Internal-facing build tooling & test updates ci:normal labels Nov 29, 2025
@nx-cloud
Copy link

nx-cloud bot commented Nov 29, 2025

View your CI Pipeline Execution ↗ for commit 0a3cfbe

Command Status Duration Result
nx run-many -t compile --parallel=3 ✅ Succeeded 55s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-29 21:04:58 UTC

Copilot AI changed the title [WIP] Install MCP server following the guide Install NX MCP server Nov 29, 2025
Copilot AI requested a review from kasperpeulen November 29, 2025 17:49
Copilot finished work on behalf of kasperpeulen November 29, 2025 17:49
@kasperpeulen
Copy link
Contributor

What about the mcp server for copilot? @copilot

@kasperpeulen
Copy link
Contributor

kasperpeulen commented Nov 29, 2025

And use @latest @copilot

Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

What about the mcp server for copilot? @copilot

Added NX MCP server configuration for GitHub Copilot in .github/copilot-mcp.json (commit 0a1c71f).

Copilot finished work on behalf of kasperpeulen November 29, 2025 17:54
@kasperpeulen
Copy link
Contributor

Please use @latest tag for the package @copilot

Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

Please use @latest tag for the package @copilot

Updated all MCP configurations to use nx-mcp@latest (commit 0a3cfbe).

@kasperpeulen kasperpeulen requested review from Copilot and removed request for kasperpeulen November 29, 2025 20:37
Copilot finished work on behalf of kasperpeulen November 29, 2025 20:38
Copilot AI requested a review from kasperpeulen November 29, 2025 20:38
Copilot finished reviewing on behalf of kasperpeulen November 29, 2025 20:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds NX MCP (Model Context Protocol) server configuration to enable AI assistants to interact with the repository's NX workspace. The configuration is added across three different tool configurations to support Cursor, VS Code, and GitHub Copilot.

Key changes:

  • Added NX MCP server configuration using the nx-mcp@latest package
  • Configured the server to run via npx with stdio communication
  • Ensured consistency across different tool configurations

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.vscode/mcp.json New file adding NX MCP server configuration for VS Code with stdio type specification
.github/copilot-mcp.json New file adding NX MCP server configuration for GitHub Copilot
.cursor/mcp.json Added NX MCP server configuration to existing Cursor configuration file

Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

Copilot AI changed the title Install NX MCP server Maintenance: Install NX MCP server Nov 29, 2025
Copilot finished work on behalf of kasperpeulen November 29, 2025 20:40
@kasperpeulen kasperpeulen marked this pull request as ready for review November 29, 2025 20:41
@github-actions github-actions bot deleted a comment from kasperpeulen Nov 29, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 29, 2025

📝 Walkthrough

Walkthrough

Adds MCP server configuration for "nx" across three development environment configuration files. Each file configures the same nx-mcp server to run via npx with identical arguments, enabling IDE integration for the Nx build tool.

Changes

Cohort / File(s) Summary
MCP Server Configuration
\.cursor/mcp.json`, `.github/copilot-mcp.json`, `.vscode/mcp.json``
Adds "nx" MCP server configuration with command "npx" and arguments ["-y", "nx-mcp@latest"] across Cursor, GitHub Copilot, and VS Code configuration files

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c6ff2fb and 0a3cfbe.

📒 Files selected for processing (3)
  • .cursor/mcp.json (1 hunks)
  • .github/copilot-mcp.json (1 hunks)
  • .vscode/mcp.json (1 hunks)
🔇 Additional comments (3)
.github/copilot-mcp.json (1)

1-8: Configuration properly structured for GitHub Copilot MCP integration.

The JSON configuration correctly defines the NX MCP server for GitHub Copilot using the standard mcpServers schema, with matching command and arguments across all three platform configurations.

.vscode/mcp.json (1)

1-9: Proper use of stdio adapter type for VS Code MCP integration.

The configuration correctly specifies the NX MCP server for VS Code with the appropriate "type": "stdio" adapter, enabling bidirectional communication between the editor and the MCP server. Command and arguments match the other platform configurations.

.cursor/mcp.json (1)

3-9: Clean integration with existing Cursor MCP configuration.

The NX MCP server entry is properly added to the mcpServers object with consistent formatting and indentation matching the existing "wallaby" configuration. The original entry remains unchanged, ensuring no disruption to existing functionality.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Internal-facing build tooling & test updates ci:normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install MCP server

2 participants