Skip to content

Conversation

@dsarno
Copy link
Collaborator

@dsarno dsarno commented Jan 21, 2026

Description

Fix Rider/IntelliJ GitHub Copilot MCP configuration paths and add mcp.json manifest for GitHub MCP Registry support. Fixes #599

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Changes Made

  • Fix RiderConfigurator to use correct GitHub Copilot config paths:
    • Windows: %LOCALAPPDATA%\github-copilot\intellij\mcp.json
    • macOS: ~/Library/Application Support/github-copilot/intellij/mcp.json
    • Linux: ~/.config/github-copilot/intellij/mcp.json
  • Add mcp.json for GitHub MCP Registry support:
    • Enables users to install via coplaydev/unity-mcp
    • Uses uvx with mcpforunityserver from PyPI

Testing/Screenshots/Recordings

  • Tested on Windows with JetBrains Rider + GitHub Copilot
  • Verified MCP connection works via Unity console logs showing successful WebSocket registration and tool discovery
  • Confirmed mcp.json is written to correct path (%LOCALAPPDATA%\github-copilot\intellij\mcp.json)

Related Issues

Additional Notes

  • The previous Rider config paths were incorrect and prevented the MCP connection from being established
  • Cross-platform paths verified for Windows, macOS, and Linux

Summary by Sourcery

Fix GitHub Copilot MCP configuration for JetBrains Rider and add registry manifest support.

New Features:

  • Add an mcp.json manifest to enable installation via the GitHub MCP Registry.

Bug Fixes:

  • Correct JetBrains Rider GitHub Copilot MCP configuration paths on Windows, macOS, and Linux so the MCP connection can be established.

Summary by CodeRabbit

  • Chores
    • Updated Rider integration configuration file paths across Windows, macOS, and Linux platforms
    • Added MCP server configuration file for Unity MCP server connectivity

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

- Fix RiderConfigurator to use correct GitHub Copilot config path:
  - Windows: %LOCALAPPDATA%\github-copilot\intellij\mcp.json
  - macOS: ~/Library/Application Support/github-copilot/intellij/mcp.json
  - Linux: ~/.config/github-copilot/intellij/mcp.json
- Add mcp.json for GitHub MCP Registry support:
  - Enables users to install via coplaydev/unity-mcp
  - Uses uvx with mcpforunityserver from PyPI
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 21, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adjusts the Rider GitHub Copilot MCP client to write its configuration to the official GitHub Copilot IntelliJ paths across all platforms and introduces a top-level mcp.json manifest to support installation via the GitHub MCP Registry using the PyPI-distributed mcpforunityserver.

Updated class diagram for RiderConfigurator MCP paths

classDiagram
    class McpClient {
        string name
        string windowsConfigPath
        string macConfigPath
        string linuxConfigPath
        bool IsVsCodeLayout
    }

    class JsonFileMcpConfigurator {
        +JsonFileMcpConfigurator(mcpClient)
        +Configure()
    }

    class RiderConfigurator {
        +RiderConfigurator()
    }

    RiderConfigurator --|> JsonFileMcpConfigurator
    JsonFileMcpConfigurator o--> McpClient

    class Environment {
        +static string GetFolderPath(specialFolder)
    }

    class Path {
        +static string Combine(part1, part2, part3, part4, part5)
    }

    RiderConfigurator ..> Environment : uses
    RiderConfigurator ..> Path : uses

    McpClient : windowsConfigPath = LocalApplicationData/github-copilot/intellij/mcp.json
    McpClient : macConfigPath = UserProfile/Library/Application Support/github-copilot/intellij/mcp.json
    McpClient : linuxConfigPath = UserProfile/.config/github-copilot/intellij/mcp.json
    McpClient : IsVsCodeLayout = true
Loading

File-Level Changes

Change Details Files
Point Rider MCP configuration to the official GitHub Copilot IntelliJ config locations on Windows, macOS, and Linux.
  • Update the Windows config path to use the LocalApplicationData folder and the github-copilot/intellij/mcp.json layout.
  • Update the macOS config path to use ~/Library/Application Support/github-copilot/intellij/mcp.json.
  • Update the Linux config path to use ~/.config/github-copilot/intellij/mcp.json.
  • Retain IsVsCodeLayout flag while changing only the underlying file system locations.
MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs
Add MCP manifest for GitHub MCP Registry-based installation and discovery.
  • Introduce a top-level mcp.json manifest describing the MCP server entry (package/id, command, and arguments) for the GitHub MCP Registry.
  • Configure the manifest to use the PyPI mcpforunityserver package invoked via uvx so users can install via coplaydev/unity-mcp.
mcp.json

Assessment against linked issues

Issue Objective Addressed Explanation
#599 Ensure the Unity MCP server is correctly configured for GitHub Copilot in Rider so that Copilot can discover and list the Unity MCP tools.
#599 Fix the Rider GitHub Copilot MCP configuration so that MCP-based actions (including HTTP local mode) can successfully connect and operate.

Possibly linked issues

  • #: The issue’s Rider–Copilot MCP failure is caused by wrong config paths, which this PR corrects and validates.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 21, 2026

📝 Walkthrough

Walkthrough

The PR modifies RiderConfigurator.cs to update MCP configuration paths from JetBrains Rider directories to GitHub Copilot IntelliJ directories across Windows, macOS, and Linux platforms. Additionally, a new mcp.json configuration file is introduced defining the MCP server setup for unity-mcp using stdio communication with uvx.

Changes

Cohort / File(s) Summary
RiderConfigurator Path Updates
MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs
Updated platform-specific MCP configuration paths: Windows (AppData JetBrains Rider → LocalApplicationData github-copilot/intellij), macOS (Library/Application Support/JetBrains/Rider → Library/Application Support/github-copilot/intellij), Linux (~/.config/JetBrains/Rider → ~/.config/github-copilot/intellij)
MCP Server Configuration
mcp.json
New file defining MCP server configuration with mcpServers.unity-mcp, stdio type, uvx command, and arguments for mcpforunityserver

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • CoplayDev/unity-mcp#448: Updates the same RiderConfigurator platform-specific paths to point to github-copilot/intellij locations

Suggested reviewers

  • msanatan

Poem

🐰 Paths were paths, from old to new,
Through Windows, Mac, and Linux too,
From Rider's home to Copilot's rest,
A hop and skip to the config best!
mcp.json brings the magic spree,
MCP for Unity, wild and free! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: fixing Rider config paths and adding MCP registry manifest support.
Description check ✅ Passed The description follows the template with all required sections completed: description, type of change, changes made, testing, and related issues.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@dsarno dsarno merged commit f54b1cb into CoplayDev:main Jan 21, 2026
2 checks passed
msanatan pushed a commit to msanatan/unity-mcp that referenced this pull request Jan 21, 2026
- Fix RiderConfigurator to use correct GitHub Copilot config path:
  - Windows: %LOCALAPPDATA%\github-copilot\intellij\mcp.json
  - macOS: ~/Library/Application Support/github-copilot/intellij/mcp.json
  - Linux: ~/.config/github-copilot/intellij/mcp.json
- Add mcp.json for GitHub MCP Registry support:
  - Enables users to install via coplaydev/unity-mcp
  - Uses uvx with mcpforunityserver from PyPI
@coderabbitai coderabbitai bot mentioned this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rider + Github Copilot use MCP cannot works

1 participant