0.1.3 • Published 4 months ago

@4everland/4ever-mcpserver v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

4EVERLAND Hosting MCP Server

Version License: MIT Node

A Model Context Protocol (MCP) server tool that enables AI assistants to deploy static websites to 4EVERLAND's decentralized hosting services.

Overview

This MCP server allows AI assistants like Claude to deploy websites directly to 4EVERLAND's hosting services across multiple platforms (IPFS, Arweave, Internet Computer, and BNB GreenField).

Installation

npm install @4everland/4ever-mcpserver

Or run directly:

npx @4everland/4ever-mcpserver@latest serve

Requirements

  • Node.js >= 20.12.2
  • 4EVERLAND account with API token

Environment Variables

VariableDescriptionDefault
TOKENYour 4EVERLAND API token (required)-
API_URL4EVERLAND API URLhttps://cli-api.4everland.org

AI Assistant Integration

Claude Desktop

Add the following to your Claude Desktop configuration:

{
  "mcpServers": {
    "4ever-mcpserver": {
      "command": "npx",
      "args": [
        "@4everland/4ever-mcpserver@latest",
        "serve"
      ],
      "env": {
        "TOKEN": "your-4ever-hosting-auth-token"
      }
    }
  }
}

API Reference

Tool: deploy_site

Deploys code to 4EVERLAND hosting platforms.

Parameters

ParameterTypeDescription
code_filesRecord<string, string>Map of file paths to their content
project_namestringProject name (alphanumeric, underscore, hyphen; cannot start/end with hyphen)
project_idstring (optional)Existing project ID to deploy to (new project created if omitted)
platform"IPFS" | "AR" | "IC" | "GREENFIELD"Storage platform to deploy to (default: "IPFS")

Response

On success:

{
  "status": "success",
  "content": [
    {
      "type": "text",
      "text": "Successfully deployed project to https://example.4everland.app"
    }
  ],
  "deploymentUrl": "https://example.4everland.app",
  "project_id": "project123"
}

On error:

{
  "status": "error",
  "content": [
    {
      "type": "text",
      "text": "Failed to deploy: [error message]"
    }
  ]
}

Development

# Clone repository
git clone https://github.com/4everland/4everland-hosting-mcp-server.git

# Install dependencies
npm install

# Build the project
npm run build

# Run the server locally
npm run serve

License

MIT

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

5 months ago

0.1.0

5 months ago