Xpersona
P

PaperMC AI Operations

CLAWHUB · Unverified

Manage PaperMC Minecraft servers through safe, controlled interfaces. Use for server lifecycle management, backups, plugin operations, and health monitoring...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17aqrazspgn6y81xebvxbm3td83j2a9:papermc-ai-ops
  1. Install using `clawhub skill install s17aqrazspgn6y81xebvxbm3td83j2a9:papermc-ai-ops` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/yanxi1024-git/papermc-ai-ops before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yanxi1024-git-papermc-ai-ops/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

74,714 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: papermc-ai-ops
version: 2.0.1
description: Manage PaperMC Minecraft servers through safe, controlled interfaces. Use for server lifecycle management, backups, plugin operations, and health monitoring with backup-first safety policy.
license: MIT
---

# PaperMC Server AI Operations

AI-managed PaperMC Minecraft server operations with safety-first approach.

## When to Use This Skill

Use this skill when you need to:
- Manage PaperMC server lifecycle (status, logs, restart)
- Create backups (world, plugins, PaperMC jar)
- Install or update plugins safely
- Update PaperMC server version
- Monitor server health and diagnose issues
- **Intelligent plugin upgrades with risk assessment** (NEW in v2.0)

## Requirements

- Linux system with systemd
- Java 21+ (Zulu JDK recommended for ARM)
- Python 3.10+
- PaperMC server installation

## Quick Start

### 1. Configure

Edit paths in the scripts:
```python
# In manage_server.py, plugin_manager.py, update_paper.py
SERVER_DIR = Path("/path/to/your/papermc-server")
```

### 2. Check Status

```bash
python3 manage_server.py status
```

### 3. Create Backup

```bash
python3 manage_server.py backup
```

## Core Scripts

### manage_server.py

Server lifecycle management:
```bash
python3 manage_server.py status          # Service status
python3 manage_server.py logs -n 50      # View logs
python3 manage_server.py backup          # Backup world
python3 manage_server.py restart         # Safe restart
```

### plugin_manager.py

Plugin operations:
```bash
python3 plugin_manager.py list                           # List plugins
python3 plugin_manager.py backup <plugin.jar>           # Backup plugin
python3 plugin_manager.py install-url <url> --filename <name>
```

### update_paper.py

PaperMC updates:
```bash
python3 update_paper.py backup-jar                    # Backup current jar
python3 update_paper.py update-from-url <paper_jar_url>
```

### plugin_upgrade_framework.py (NEW in v2.0)

Intelligent plugin upgrade framework with risk assessment:

```bash
# Upgrade specific plugin (Method 1)
python3 plugin_upgrade_framework.py --plugin ViaVersion --version 5.8.0

# Scan for upgrade candidates (Method 2)
python3 plugin_upgrade_framework.py --method 2 --scan-limit 20

# Run examples
python3 upgrade_examples.py
```

## Safety Rules

### ❌ Never Use Direct Commands
- `kill`, `kill -9`
- `rm -rf`
- `systemctl stop/restart`
- Direct file overwrites

### ✅ Always Use Scripts
All operations go through approved Python scripts.

### 📦 Backup-First Policy
Before ANY risky operation:
1. Run backup command
2. Verify backup created
3. Proceed with change

## Plugin Upgrade Framework (NEW in v2.0)

Based on ViaVersion 5.7.2 → 5.8.0 upgrade experience (2026-03-28), this skill now includes an intelligent plugin upgrade framework.

### Core Upgrade Methods

#### Method 1: Specific Plugin Upgrade
For upgrading a specific plugin with full automation:

```python
from plugin_upgrade_framework import PluginUpgradeFramework

framewo

README.md

# PaperMC AI Operations Skill

An OpenClaw Agent skill for managing PaperMC Minecraft servers through safe, controlled interfaces.

**Author:** Andrew  
**Version:** 1.0.0  
**License:** MIT

---

## Overview

This skill enables AI agents to maintain PaperMC servers using approved control scripts rather than direct system commands. It follows operational safety principles:

- ✅ Backup-first policy
- ✅ No direct system commands
- ✅ Controlled interfaces only
- ✅ Full audit trail

## Features

- **Server Lifecycle Management**: Start, stop, restart, status checks
- **Backup Automation**: World, plugin, and jar backups
- **Plugin Management**: Safe install, backup, and inventory
- **Health Monitoring**: Automated health checks
- **Update Management**: Controlled PaperMC updates

## Installation

```bash
# Install via OpenClaw
openclaw skill install papermc-ai-ops

# Or manual installation
git clone https://github.com/YOUR_USERNAME/papermc-ai-ops-skill.git
cd papermc-ai-ops-skill
```

## Requirements

- Linux system with systemd
- Java 21+ (Zulu JDK recommended for ARM)
- Python 3.10+
- PaperMC server installation

## Quick Start

### 1. Configure Your Server

Edit `server.env`:
```bash
SERVER_DIR=/path/to/your/papermc-server
BACKUP_RETENTION=10
```

### 2. Run Health Check

```bash
python3 manage_server.py status
bash scripts/health_check.sh
```

### 3. Create Backup

```bash
python3 manage_server.py backup
```

## Control Scripts

### manage_server.py
Server lifecycle and maintenance:
```bash
python3 manage_server.py status          # Check service status
python3 manage_server.py logs -n 50      # View recent logs
python3 manage_server.py backup          # Create world backup
python3 manage_server.py restart         # Safe restart
```

### plugin_manager.py
Plugin operations:
```bash
python3 plugin_manager.py list                           # List plugins
python3 plugin_manager.py backup <plugin.jar>           # Backup plugin
python3 plugin_manager.py install-url <url> --filename <name>  # Install plugin
```

### update_paper.py
PaperMC updates:
```bash
python3 update_paper.py backup-jar                    # Backup current jar
python3 update_paper.py update-from-url <url>         # Update PaperMC
```

## Safety Rules

### ❌ Never Use Direct Commands
- `kill`, `kill -9`
- `rm -rf`
- `systemctl stop/restart`
- Direct file overwrites

### ✅ Always Use Scripts
All operations go through approved Python scripts.

### 📦 Backup-First Policy
Before ANY risky operation:
1. Run `manage_server.py backup`
2. Verify backup created
3. Proceed with change

## Directory Structure

```
papermc-server/
├── manage_server.py      # Main control script
├── plugin_manager.py     # Plugin operations
├── update_paper.py       # PaperMC updates
├── scripts/
│   └── health_check.sh   # Health monitoring
├── docs/
│   ├── architecture.md   # System design
│   ├── changelog.md      # Change history
│   └── tasks.md          # Maintenance tasks
├── backup/               # World

_meta.json

{
  "ownerId": "kn7er3zbr366axs1zgv47wfxt982j27x",
  "slug": "papermc-ai-ops",
  "version": "2.0.1",
  "publishedAt": 1774689963401
}

scripts/daily_checklist.md

# 每日系统巡查清单

## 基本信息
- **检查时间:** 每天 10:00 AM
- **检查人:** dragongirl_yan (Andrew 的 AI 助手)
- **服务器:** PaperMC Minecraft Server

## 检查项目

### 1. 服务状态检查
- [ ] `python3 manage_server.py status`
- [ ] 确认服务运行正常
- [ ] 记录 PID 和运行时间

### 2. 日志检查
- [ ] `python3 manage_server.py logs -n 50`
- [ ] 检查错误和警告
- [ ] 识别异常模式

### 3. 插件状态
- [ ] `python3 plugin_manager.py list`
- [ ] 确认所有插件加载正常
- [ ] 检查插件版本

### 4. 资源监控
- [ ] 检查内存使用情况
- [ ] 检查磁盘空间
- [ ] 检查 CPU 负载

### 5. 备份验证
- [ ] 检查最新备份文件
- [ ] 验证备份完整性
- [ ] 清理过期备份

### 6. 网络连接
- [ ] 检查服务器端口 (25565)
- [ ] 检查 RCON 端口 (25575)
- [ ] 检查 BlueMap 端口 (8100)

## 日志存档格式

```
## 2026-MM-DD 系统巡查报告

### 检查时间
10:00 AM

### 服务状态
- 状态: [正常/异常]
- PID: [进程ID]
- 运行时间: [时长]

### 日志摘要
- 错误数量: [数字]
- 警告数量: [数字]
- 关键发现: [描述]

### 插件状态
- 总插件数: [数字]
- 异常插件: [列表]

### 资源使用
- 内存: [使用量/总量]
- 磁盘: [使用量/总量]
- CPU: [负载]

### 网络状态
- 主端口: [状态]
- RCON: [状态]
- BlueMap: [状态]

### 建议操作
1. [建议1]
2. [建议2]

### 下次检查
明天 10:00 AM
```

## 紧急情况处理
- **服务宕机:** 立即重启并通知 Andrew
- **严重错误:** 截图并 Telegram @Andrew
- **安全威胁:** 立即隔离并报告

## 存档位置
- 每日报告: `/home/yan/projects/P_3.10.12/paperMC_RGFV_1.21.8/docs/daily-reports/`
- 文件名: `report-YYYY-MM-DD.md`

docs/architecture.md

# Architecture

PaperMC AI Operations - System Architecture

## Overview

This skill provides a controlled interface for AI agents to manage PaperMC Minecraft servers safely.

## Design Principles

1. **Safety First**: All operations go through approved scripts
2. **Backup-First**: Mandatory backups before risky operations
3. **Audit Trail**: All actions logged and traceable
4. **No Direct Commands**: System commands mediated through Python layer

## Components

### Control Layer (Python Scripts)

| Script | Purpose |
|--------|---------|
| `manage_server.py` | Service lifecycle, logs, backups |
| `plugin_manager.py` | Plugin operations |
| `update_paper.py` | PaperMC jar updates |

### System Layer

- systemd service (paper-mc.service)
- Journald logging
- File system operations

### Data Layer

- World data (world/, world_nether/, world_the_end/)
- Plugin data (plugins/)
- Backups (backup/, plugin_backup/, jar_backup/)

## Workflow Examples

### Backup Workflow
```
Agent → manage_server.py backup → backup.sh → tar.gz archive
```

### Plugin Update
```
Agent → plugin_manager.py backup → plugin_manager.py install-url → restart
```

### PaperMC Update
```
Agent → update_paper.py backup-jar → update_paper.py update-from-url → restart
```

## Security

- No secrets in repository
- Configuration via environment variables
- Backup retention policies
- Controlled access to system resources

Sponsored

Ads related to PaperMC AI Operations and adjacent AI workflows.