Installation Guide
This guide will help you install and configure the gm-mcp scaffold tool.
System Requirements
- Node.js >= 16.0.0
- npm >= 7.0.0 or yarn >= 1.22.0
Installation Methods
Method 1: Global Installation (Recommended)
bash
npm install -g @studiogm/gm-mcpThis is the simplest method. After installation, you can use the gm-mcp command anywhere.
Method 2: Using npx (No Installation Required)
bash
npx gm-mcp init my-projectAutomatically downloads the latest version each time you use it, suitable for occasional use.
Method 3: Install from Source
bash
# Clone repository
git clone https://github.com/studiogmls/gm-mcp.git
cd gm-mcp
# Install dependencies
npm install
# Build project
npm run build
# Global link
npm linkVerify Installation
After installation, run the following command to verify successful installation:
bash
gm-mcp --versionIf the version number is displayed, the installation was successful.
View Help
bash
gm-mcp --helpThis will display all available commands and options.
Updates
Check for Updates
bash
gm-mcp updateManual Update
bash
npm update -g @studiogm/gm-mcpUninstall
If you need to uninstall gm-mcp:
bash
npm uninstall -g @studiogm/gm-mcpTroubleshooting
Permission Issues
If you encounter permission errors, try:
bash
# Use sudo (macOS/Linux)
sudo npm install -g @studiogm/gm-mcp
# Or configure npm to use a different directory
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATHNetwork Issues
If download speed is slow, configure npm mirror:
bash
npm config set registry https://registry.npmmirror.comVersion Conflicts
If you encounter version conflicts:
bash
# View installed version
npm list -g @studiogm/gm-mcp
# Force reinstall
npm uninstall -g @studiogm/gm-mcp
npm install -g @studiogm/gm-mcpNext Steps
After installation, you can:
- Quick Start - Create your first project
- Basic Usage - Learn basic commands
- Template Overview - Learn about available templates