0.1.2 • Published 5 months ago

4everhosting-mcpserver v0.1.2

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

4EVERLAND Hosting MCP Server

A Model Context Protocol (MCP) server tool for deploying code to 4EVERLAND's IPFS hosting service.

Installation

npm install 4everhosting-mcpserver

Requirements

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

Environment Setup

Set the following environment variables:

export TOKEN=your_4everland_api_token
export API_URL=https://cli-api.4everland.org  # Default API URL

Usage

After installation, you can run the server:

4everhosting-mcpserver

Or use it in your own MCP client implementation by connecting to the server.

Features

  • Deploy code directly to 4EVERLAND IPFS hosting
  • Automatically packages files into a zip archive
  • Creates new projects on 4EVERLAND
  • Returns deployment URLs

API Reference

This server implements an MCP tool:

deploy_code

Deploys code to 4EVERLAND hosting.

Parameters:

  • code_files: Record<string, string> - Map of file paths to their content
  • project_name: string - Name of the project

Returns:

  • status: "success" | "error"
  • content: Array of text content
  • deploymentUrl: URL of the deployed project (on success)

Development

# Build the project
npm run build

# Run the server locally
npm run serve

License

MIT