New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

chat-tools

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat-tools

A CLI tool to manage MCP configurations across different environments (Cursor, Claude Desktop)

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Portable MCP Manager

A CLI tool to manage MCP (Model Context Protocol) configurations across different environments like Cursor and Claude Desktop.

Features

  • 🔄 Replace or merge configurations from various sources
  • 🔗 Download from direct URLs or GitHub Gists (public/private)
  • 📱 Support for Cursor and Claude Desktop
  • 🖥️ Cross-platform support (Windows and macOS)
  • 📤 Upload configurations to GitHub Gists
  • 🎯 Interactive mode for easy usage
  • 📁 Smart filename handling - preserves original filenames
  • 🔀 Multi-file gist support with gistId/filename format
  • 🛠️ GitHub CLI integration when available

Installation

npm install -g portable-mcp

Or run directly with npx:

npx portable-mcp --help

Quick Start

Simply run the command without arguments to enter interactive mode:

portable-mcp

or

portable-mcp prompt

Replace Configuration

Replace your Cursor configuration from a GitHub Gist:

portable-mcp replace --type cursor --gist 50007c6cd60db13cf8477b3b5caa96f0

Replace from a direct URL:

portable-mcp replace --type cursor --json-url https://gist.githubusercontent.com/niradler/50007c6cd60db13cf8477b3b5caa96f0/raw/1c4229a9ac141f2a5530d98540ae67845b08a3be/cursor.json

Merge Configuration

Merge new settings with your existing configuration:

portable-mcp merge --type claude --gist abc123def456

Upload to Gist

Upload your current configuration to a new public Gist:

portable-mcp store --type cursor

Upload to a private Gist:

portable-mcp store --type cursor --private

Update an existing Gist:

portable-mcp store --type cursor --gist abc123def456

Get Default Paths

Check where your configuration files should be located:

portable-mcp path --type cursor
portable-mcp path --type claude

Command Reference

Commands

replace

Replace the entire configuration file.

Options:

  • --type <type> - Target application (cursor | claude)
  • --json-url <url> - Direct URL to JSON configuration
  • --gist <gist> - GitHub Gist ID or ID/filename for multi-file Gists
  • --destination <path> - Custom destination path

merge

Merge configuration with existing file (deep merge).

Options: Same as replace

store

Upload configuration to GitHub Gist.

Options:

  • --type <type> - Source application (cursor | claude)
  • --gist <gist> - Existing Gist ID to update (optional)
  • --private - Create private Gist (default: public)
  • --source <path> - Custom source path

path

Show default configuration path for a type.

Options:

  • --type <type> - Application type (default: cursor)

prompt

Interactive mode - asks questions to guide you through the process.

Environment Variables

  • GITHUB_TOKEN - GitHub personal access token (required for private Gists and API uploads when GitHub CLI is not available)

Configuration Paths

Cursor

  • Windows: C:\\Users\\<username>\\.cursor\\mcp.json
  • macOS: ~/Library/Application Support/Cursor/User/mcp.json

Claude Desktop

  • Windows: C:\\Users\\<username>\\AppData\\Roaming\\Claude\\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

GitHub Integration

If you have GitHub CLI installed and authenticated, the tool will automatically use it for Gist operations. This provides the best experience and doesn't require additional tokens.

GitHub API

If GitHub CLI is not available, you can use the GitHub API directly by setting the GITHUB_TOKEN environment variable:

export GITHUB_TOKEN=ghp_your_personal_access_token_here

Get a token from: https://github.com/settings/tokens

Required scopes: gist

Examples

Example 1: Complete Workflow

# Check current configuration location
portable-mcp path --type cursor

# Replace with a configuration from Gist
portable-mcp replace --type cursor --gist abc123def456

# Upload your modified configuration back
portable-mcp store --type cursor --private

Example 2: Working with Multi-file Gists

# Download specific file from multi-file Gist
portable-mcp replace --type cursor --gist abc123def456/cursor-config.json

Example 3: Custom Paths

# Use custom source and destination
portable-mcp replace --json-url https://example.com/config.json --destination ./my-config.json

Example 4: Merge Configurations

# Merge remote config with local (useful for partial updates)
portable-mcp merge --type cursor --gist abc123def456

Multi-file Gist Support

When working with gists that contain multiple files, you can specify the exact file using the format:

portable-mcp replace --type cursor --gist gist_id/filename.json

Example:

# Download specific file from multi-file gist
portable-mcp replace --type claude --gist 50007c6cd60db13cf8477b3b5caa96f0/claude.json

Filename Handling

The tool automatically preserves original filenames when uploading:

  • claude_desktop_config.json stays claude_desktop_config.json
  • mcp.json stays mcp.json

This makes it easier to identify and organize your configurations in gists.

License

MIT License - see LICENSE file for details.

Keywords

mcp

FAQs

Package last updated on 22 Aug 2025

Related posts