npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cursor-mcp-to-github-copilot-port

v1.0.1

Published

Port Cursor ~/.cursor/mcp.json to VS Code .vscode/mcp.json for GitHub Copilot MCP

Readme

Cursor MCP → GitHub Copilot (VS Code) port

npm package: cursor-mcp-to-github-copilot-port

CLI and library that ports your Cursor MCP configuration into the format Visual Studio Code and GitHub Copilot expect, so you can reuse the same MCP servers after switching editors.


What is Model Context Protocol (MCP)?

MCP is an open standard for connecting AI assistants to tools and data outside the model: issue trackers, docs, databases, custom scripts, and more. The editor starts one or more MCP servers (local processes or remote HTTP endpoints). Those servers advertise tools (and sometimes resources and prompts). When you chat in agent mode, the model can call those tools so the assistant can act on your systems with your approval, according to each product’s UI and policies.


How MCP works in Cursor

  1. Configuration file
    Cursor stores MCP server definitions in a JSON file, typically ~/.cursor/mcp.json (user-wide).

  2. Shape of the file
    The top-level object uses mcpServers. Each key is a display name; the value describes the server:

    • Local (stdio): command, optional args, env, envFile.
    • Remote (HTTP): url, optional headers.
  3. How Cursor uses it
    Cursor loads this config, starts or connects to servers, and exposes their tools to Chat, Composer, and related AI flows. The on-disk JSON is the source of truth.

  4. This package’s input
    The CLI reads that file (default ~/.cursor/mcp.json) and expects mcpServers.


How to enable MCP in VS Code with GitHub Copilot

MCP in VS Code is used from GitHub Copilot Chat (Agent mode and tools). You need a supported VS Code build, Copilot access, and a valid mcp.json.

Prerequisites

  • Visual Studio Code 1.99+.
  • GitHub Copilot signed in (getting access).
  • Copilot Business / Enterprise: org may need “MCP servers in Copilot” enabled (about MCP).

Where VS Code stores MCP config

| Scope | File | |--------|------| | Workspace | .vscode/mcp.json | | User | Profile mcp.json (e.g. macOS ~/Library/Application Support/Code/User/mcp.json) |

Command Palette: MCP: Open Workspace Folder MCP Configuration, MCP: Open User Configuration.

Ways to add servers

  1. Edit mcp.json manually — servers, type: stdio | http (reference).
  2. GitHub MCP Registry in Extensions (GitHub docs).
  3. code --add-mcp (VS Code MCP servers).
  4. Optional: "chat.mcp.discovery.enabled": true in settings.json to discover configs from apps like Claude Desktop.

Using MCP in the UI

Open Copilot Chat → Agent → tools; start/trust servers; complete Auth for remote servers when prompted.

More: Add and manage MCP servers in VS Code, Extending Copilot Chat with MCP.


What this package does

| It does | It does not | |--------|------------------| | Reads Cursor mcp.json (mcpServers) | Install editors or enable Copilot | | Writes VS Code mcp.json with servers | Start MCP servers | | Adds type: stdio / http | Map exotic Cursor-only fields | | Optional Snyk IDE_CONFIG_PATH CursorVSCode | Store secrets for you |

It is a config migrator. You still trust, start, and authenticate in VS Code.


How to run this package (step-by-step)

1. Install

npx cursor-mcp-to-github-copilot-port --help

From a monorepo clone of this project:

cd packages/cursor-mcp-to-github-copilot-port
node bin/cli.mjs --help

Global:

npm install -g cursor-mcp-to-github-copilot-port

2. Preview (--dry-run)

npx cursor-mcp-to-github-copilot-port --dry-run

3. Write workspace .vscode/mcp.json

cd /path/to/your/project
npx cursor-mcp-to-github-copilot-port --force

Use --merge --force if the file already exists.

4. Or user / Insiders config

npx cursor-mcp-to-github-copilot-port -t user --force
npx cursor-mcp-to-github-copilot-port -t insiders --force

5. Open VS Code

Copilot Chat → Agent → tools to start/trust servers.

6. Custom paths

npx cursor-mcp-to-github-copilot-port -s ~/.cursor/mcp.json -o ./.vscode/mcp.json --force

Why the formats differ

| | Cursor | VS Code + Copilot | |---|--------|-------------------| | File | ~/.cursor/mcp.json | .vscode/mcp.json or user mcp.json | | Key | mcpServers | servers | | type | Often omitted | Required stdio / http |


What gets converted (details)

  • Stdio: command, args, env, envFiletype: "stdio". Snyk IDE_CONFIG_PATH: CursorVSCode unless --no-fix-snyk.
  • HTTP: url, headerstype: "http"; empty headers omitted.
  • Names: normalized to camelCase-style ids unless --no-sanitize-names.
  • inputs: copied if present.

Requirements

  • Node.js 18+
  • VS Code + Copilot when using the generated config (see above).

CLI reference

| Option | Description | |--------|-------------| | -s, --source <path> | Cursor file (default ~/.cursor/mcp.json) | | -t, --target | workspace | user | insiders | stdout | | -o, --out <path> | Output path | | --merge / --force | Merge or overwrite | | --dry-run | Print JSON only | | --no-sanitize-names / --no-fix-snyk | Disable renames / Snyk env fix | | -h, --help | Help |

User mcp.json paths: macOS ~/Library/Application Support/Code/User/mcp.json; Windows %APPDATA%\Code\User\mcp.json; Linux ~/.config/Code/User/mcp.json. Insiders uses Code - Insiders.


Monorepo (full Git repo)

If you install from npm you only get this package. In the full repository, this package lives under packages/cursor-mcp-to-github-copilot-port with a private root package.json and npm run publish:cli.


Development

npm test

Publishing

npm publish --access public

(from this directory; or npm run publish:cli from monorepo root after npm install)


Security & limitations

Treat mcp.json as sensitive. This CLI does not start servers. Enterprise MCP may be policy-gated. See GitHub: about MCP.


License

MIT (see package.json).