Skip to content

Maintenance: Install NX MCP server#33234

Merged
valentinpalkovic merged 6 commits into
nextfrom
copilot/install-mcp-server
Mar 15, 2026
Merged

Maintenance: Install NX MCP server#33234
valentinpalkovic merged 6 commits into
nextfrom
copilot/install-mcp-server

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 29, 2025

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 a new MCP server entry named "nx" to the product's assistant/IDE integration configurations, enabling an additional runtime adapter across supported platforms.

✏️ 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
Copy Markdown

nx-cloud Bot commented Nov 29, 2025

View your CI Pipeline Execution ↗ for commit 9549c2a

Command Status Duration Result
nx run-many -t compile -c production --parallel=1 ✅ Succeeded 5m 12s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-14 08:50:17 UTC

Co-authored-by: kasperpeulen <1035299+kasperpeulen@users.noreply.github.com>
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
@kasperpeulen
Copy link
Copy Markdown
Member

What about the mcp server for copilot? @copilot

@kasperpeulen
Copy link
Copy Markdown
Member

kasperpeulen commented Nov 29, 2025

And use @latest @copilot

Co-authored-by: kasperpeulen <1035299+kasperpeulen@users.noreply.github.com>
Copy link
Copy Markdown
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).

@kasperpeulen
Copy link
Copy Markdown
Member

Please use @latest tag for the package @copilot

Co-authored-by: kasperpeulen <1035299+kasperpeulen@users.noreply.github.com>
Copy link
Copy Markdown
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).

Copy link
Copy Markdown
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
Copy Markdown
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
@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
Copy Markdown
Contributor

coderabbitai Bot commented Nov 29, 2025

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c7ee7c30-5a9d-41da-a1a1-4e19a151abe6

📥 Commits

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

📒 Files selected for processing (1)
  • .mcp.json

📝 Walkthrough

Walkthrough

Adds a new "nx" MCP server configuration (command: npx, args: ["-y","nx-mcp@latest"]) to multiple MCP configuration files across the repository.

Changes

Cohort / File(s) Summary
MCP server configuration
\.cursor/mcp.json`, `.github/copilot-mcp.json`, `.vscode/mcp.json`, `.mcp.json``
Introduces mcpServers.nx with command: "npx" and args: ["-y", "nx-mcp@latest"] in each MCP/config file (consistent entries across environments).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

📝 Coding Plan
  • Generate coding plan for human review comments

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

@github-actions github-actions Bot added the Stale label Dec 10, 2025
@valentinpalkovic valentinpalkovic moved this to Empathy Queue (prioritized) in Core Team Projects Mar 10, 2026
@storybook-app-bot
Copy link
Copy Markdown

Package Benchmarks

Commit: 9549c2a, ran on 14 March 2026 at 08:53:17 UTC

The following packages have significant changes to their size or dependencies:

storybook

Before After Difference
Dependency count 49 49 0
Self size 20.45 MB 20.21 MB 🎉 -246 KB 🎉
Dependency size 16.54 MB 16.54 MB 0 B
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 183 183 0
Self size 779 KB 779 KB 🎉 -154 B 🎉
Dependency size 67.65 MB 67.40 MB 🎉 -247 KB 🎉
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 176 176 0
Self size 32 KB 32 KB 🎉 -36 B 🎉
Dependency size 66.17 MB 65.93 MB 🎉 -246 KB 🎉
Bundle Size Analyzer Link Link

create-storybook

Before After Difference
Dependency count 50 50 0
Self size 1.04 MB 1.04 MB 🎉 -457 B 🎉
Dependency size 37.00 MB 36.75 MB 🎉 -246 KB 🎉
Bundle Size Analyzer node node

@valentinpalkovic valentinpalkovic merged commit 4c960ec into next Mar 15, 2026
116 of 121 checks passed
@valentinpalkovic valentinpalkovic deleted the copilot/install-mcp-server branch March 15, 2026 09:14
@github-project-automation github-project-automation Bot moved this from Empathy Queue (prioritized) to Done in Core Team Projects Mar 15, 2026
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

Status: Done

Development

Successfully merging this pull request may close these issues.

Install MCP server

4 participants