跳到正文
cccskills
免费在 GitHub 公开

oneclickvirt

OneClickVirt operations skill for managing containers, virtual machines, provider nodes, health checks, and metrics through MCP.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.5 KB
  • SKILL_ZH.md4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

OneClickVirt Skill

Overview

This skill helps an AI assistant operate a OneClickVirt deployment through the built-in MCP server. It is useful for routine instance management, provider inspection, platform health checks, and guided troubleshooting.

What this skill can do:

  • List, create, start, stop, restart, inspect, and delete instances.
  • List providers and run provider health checks.
  • Read system status, health, configuration, and monitoring resources.
  • Use prompt templates for common container, VM, status, and troubleshooting workflows.

Prerequisites

  • A working oneclickvirt binary in PATH, or an absolute binary path in the MCP client config.
  • A running OneClickVirt API endpoint.
  • An administrator API token from the Web UI under Profile -> API Tokens.
  • HTTPS for remote OneClickVirt deployments.

Installation

Use a local MCP client configuration:

{
  "mcpServers": {
    "oneclickvirt": {
      "command": "oneclickvirt",
      "args": ["mcp"],
      "env": {
        "ONE_CLICK_VIRT_API_URL": "https://your-domain.com",
        "ONE_CLICK_VIRT_API_TOKEN": "YOUR_API_TOKEN"
      }
    }
  }
}

Manual install from a release archive:

mkdir -p ~/.claude/skills/oneclickvirt
tar -xzf oneclickvirt-skill-v0.3.0.tar.gz -C ~/.claude/skills/oneclickvirt

Development install from a clone:

mkdir -p ~/.claude/skills/oneclickvirt
cp -R skills/. ~/.claude/skills/oneclickvirt/

Usage

Available MCP tools:

  • list_instances — List all virtual machine and container instances in OneClickVirt
  • create_instance — Create a new virtual machine or container instance
  • start_instance — Start a stopped instance
  • stop_instance — Stop a running instance
  • restart_instance — Restart an instance
  • delete_instance — Delete an instance (DANGER: irreversible)
  • get_instance_detail — Get detailed information about a specific instance
  • list_providers — List all virtualization provider nodes
  • health_check — Run a health check on a provider node
  • get_instance_logs — Get recent logs from an instance
  • get_system_status — Get overall system status including instance counts and resource usage
  • get_metrics — Get monitoring metrics for the system, a provider, or an instance

Available resources:

  • oneclickvirt://instances/list — Current list of all instances
  • oneclickvirt://providers/list — Current list of all provider nodes
  • oneclickvirt://system/status — Overall system health and metrics
  • oneclickvirt://health/status — Public OneClickVirt API health status
  • oneclickvirt://config/system — Administrator-visible system configuration

Available prompt templates:

  • create_debian_container — Template for creating a Debian Linux container
  • create_ubuntu_vm — Template for creating an Ubuntu virtual machine
  • troubleshoot_instance — Template for troubleshooting an instance that won't start
  • quick_status_check — Template for checking instance, provider, and platform health

Examples

    • "List running instances and summarize anything frozen or stopped."
    • "Create a Debian 12 container on provider 1 with 2 CPU, 1 GB memory, and 20 GB disk."
    • "Run a quick status check for the platform."
    • "Check provider 3 health and summarize capacity concerns."
    • "Troubleshoot instance 42 and suggest the safest next action."

Troubleshooting

  • command not found: oneclickvirt: use an absolute binary path in the MCP config.
  • 401 Unauthorized: verify ONE_CLICK_VIRT_API_TOKEN is an active administrator token.
  • Connection refused: verify ONE_CLICK_VIRT_API_URL and that /api/v1/health is reachable.
  • Tools do not appear: restart the MCP client and inspect its MCP server logs.

Security

  • Prefer environment variables over command-line token arguments.
  • Use a dedicated token with the minimum required permissions.
  • Review destructive requests such as delete_instance before confirming.
  • Use HTTPS for remote API endpoints.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题