Quick Start
This guide will get you up and running with the MCMP JavaScript SDK in just a few minutes.Prerequisites
Node.js 16+
Ensure you have Node.js 16 or higher installed
MCMP Account
Sign up for a free account at mcmp.app
Step 1: Install the SDK
Install the MCMP JavaScript SDK:Step 2: Get Your API Key
- Sign in to mcmp.app
- Go to Settings → API Keys
- Click Generate New Key
- Copy your API key
Step 3: Create Your First Server
Step 4: Run Your Code
Run your JavaScript application:What’s Next?
Server Management
Learn to manage server lifecycle, configuration, and monitoring
Real-time Events
Subscribe to real-time server events and player activities
Plugin Integration
Integrate with Bukkit/Spigot/Paper plugins
Advanced Features
Explore advanced SDK capabilities
Common Examples
List All Servers
Execute Server Commands
Monitor Server Performance
TypeScript Support
The SDK includes full TypeScript support:React Integration
For React applications, use the React-specific package:Vue.js Integration
For Vue.js applications:Error Handling
Handle errors gracefully:Environment Variables
Use environment variables for configuration:Troubleshooting
Authentication Error
Authentication Error
Make sure your API key is correct and has the necessary permissions.
Server Creation Failed
Server Creation Failed
Check that you have sufficient resources and the server type/version is supported.
Connection Issues
Connection Issues
Verify your network connection and that the MCMP API is accessible.
TypeScript Errors
TypeScript Errors
Ensure you have TypeScript installed and your tsconfig.json is configured properly.