
spheronfdn/spheron-mcp-plugin
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
This MCP plugin integrates with the Spheron SDK to provide compute deployment capabilities directly through Claude.
Обзор
This MCP (Model Context Protocol) plugin integrates with the Spheron Protocol SDK to provide compute deployment and management capabilities directly through Claude. - : Fixed fs-extra import to work properly with ES modules - : Added proper handling of BigInt values in API responses to prevent JSON serialization errors - : Deploy compute resources using YAML configuration - : Check your wallet balance for different tokens - : Get URLs for your active deployments - : Get detailed information about a lease If you're not using nvm, ensure your system Node.js version is 16.0.0 or higher: 1. Compile TypeScript to JavaScript 2. Make the main file executable 3. Run the Node.js version check script 1. Locate or create the MCP settings file: 2. Edit the settings file with your configuration: 3. Find the absolute path to the mcp-server directory:
README
Показан фрагмент оригинального README. Открыть оригинал.
Spheron Network MCP Plugin
This MCP (Model Context Protocol) plugin integrates with the Spheron Protocol SDK to provide compute deployment and management capabilities directly through Claude.
Recent Fixes
- ES Module Compatibility: Fixed fs-extra import to work properly with ES modules
- BigInt Serialization: Added proper handling of BigInt values in API responses to prevent JSON serialization errors
Features
- Deploy Compute Resources: Deploy compute resources using YAML configuration
- Fetch Wallet Balance: Check your wallet balance for different tokens
- Fetch Deployment URLs: Get URLs for your active deployments
- Fetch Lease ID Details: Get detailed information about a lease
Installation
1. Clone the Repository
# Clone the repository
git clone https://github.com/spheronFdn/spheron-mcp-plugin.git
# Navigate to the project directory
cd spheron-mcp-plugin
2. Set Up Node.js Version
Using nvm (recommended)
# If you don't have nvm installed, install it first:
# For macOS/Linux:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# For Windows (using Windows Subsystem for Linux or Git Bash):
# Follow instructions at https://github.com/nvm-sh/nvm
# Restart your terminal or run:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Use the project's Node.js version (defined in .nvmrc)
nvm use
# If you get an error that the version isn't installed:
nvm install
nvm use
Without nvm
If you’re not using nvm, ensure your system Node.js version is 16.0.0 or higher:
# Check your Node.js version
node -v
# If it's below 16.0.0, download and install from nodejs.org
# https://nodejs.org/en/download/
3. Install Dependencies and Build
# Navigate to the server directory
cd spheron-server
# Install dependencies
npm install
# Build the project
npm run build
# Verify the build was successful
ls -la build
The build process will:
- Compile TypeScript to JavaScript
- Make the main file executable
- Run the Node.js version check script
Configuration
VS Code Configuration
- Locate or create the MCP settings file:
# For Linux:
mkdir -p ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/
touch ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
# For macOS:
mkdir -p ~/Library/Application\ Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/
touch ~/Library/Application\ Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
# For Windows:
# Create the file at %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
- Edit the settings file with your configuration:
# Open the file in your preferred editor
# For example:
Установка
docker run -i --rm -e SPHERON_PRIVATE_KEY -e SPHERON_NETWORK -e PROVIDER_PROXY_URL -e YAML_API_URL saurrx/spheron-mcp:latestКонфигурация
{
"mcpServers": {
"spheron": {
"command": "node",
"args": [
"/absolute/path/to/spheron-mcp-plugin/mcp-server/build/index.js"
],
"env": {
"SPHERON_PRIVATE_KEY": "your-spheron-private-key",
"SPHERON_NETWORK": "testnet",
"PROVIDER_PROXY_URL": "https://provider-proxy.sphn.xyz",
"YAML_API_URL": "http://149.56.15.95:8080/generate"
},
"disabled": false,
"autoApprove": []
}
}
}