open-index/open-npm huggingface dataset:
npm package: 4everhosting-mcpserver
Description: 4EVERLAND Hosting MCP Server Tool
Author: furyGo
Latest version: 0.1.2

# 4EVERLAND Hosting MCP Server

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

## Installation

```bash
npm install 4everhosting-mcpserver
```

## Requirements

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

## Environment Setup

Set the following environment variables:

```bash
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:

```bash
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

```bash
# Build the project
npm run build

# Run the server locally
npm run serve
```

## License

MIT