1. Conduid
  2. Developer Tools
  3. Bwh
MCP server · Developer Tools

Bwh

Go SDK, CLI, and MCP server for managing BandwagonHost/bwg/搬瓦工 (KiwiVM) VPS, with command-line and programmatic access to most features.

Unclaimed Apache-2.0 last commit 7 months ago bandwagonhostmcp-serverclidevtoolsbwhbwg
61Good

Scored 11 hours ago · breakdown

About Bwh

Bwh is an MCP server published by strahe in the Developer Tools category: go SDK, CLI, and MCP server for managing BandwagonHost/bwg/搬瓦工 (KiwiVM) VPS, with command-line and programmatic access to most features. It has been installed 0 times through Conduid.

The repository has 7 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx bwh

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Bwh

Powered by Claude · Grounded in docs

I know everything about Bwh. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.2.0v0.2.0 · 27 Jun 2026What's Changed Bump github.com/buger/jsonparser from 1.1.1 to 1.1.2 in the go_modules group across 1 directory by @dependabot[bot] in https://github.com/strahe/bwh/pull/13 feat: add read-only KiwiVM API support by @strahe in…
v0.1.5v0.1.5 · 30 Jan 2026What's Changed feat: enhance usage command with dynamic period and x-axis labels by @strahe in https://github.com/strahe/bwh/pull/12 Full Changelog**: https://github.com/strahe/bwh/compare/v0.1.4...v0.1.5
v0.1.4v0.1.4 · 12 Sep 2025What's Changed feat: Enhance usage display with bandwidth information by @strahe in https://github.com/strahe/bwh/pull/10 Add auto-update check and notification system by @strahe in https://github.com/strahe/bwh/pull/11 Full Changelog**:…
v0.1.3v0.1.3 · 8 Sep 2025What's Changed feat: Add shell completion support by @strahe in https://github.com/strahe/bwh/pull/7 Add auto-generated release notes and improve workflow by @strahe in https://github.com/strahe/bwh/pull/9 Full Changelog**:…
v0.1.2v0.1.2 · 21 Aug 2025

README

bwh

CI Go Report Card Release

English | 中文

Overview

Go SDK, CLI, and MCP server for managing BandwagonHost (KiwiVM) VPS, with command-line and programmatic access to most features.

Installation

Prerequisites: Go 1.24+; KiwiVM VEID and API key.

# CLI or MCP
go install github.com/strahe/bwh/cmd/bwh@latest

# Go SDK
go get github.com/strahe/bwh

Quick Start

# Configure your VPS
bwh node add production --api-key <API_KEY> --veid <VEID>

# Basic operations
bwh info                              # View server details
bwh start/stop/restart                # Power management
bwh usage --period 7d                 # Check usage statistics
bwh snapshot create "backup-name"     # Create snapshots
bwh iso images                        # List available ISO images
bwh iso mount ubuntu-20.04.iso        # Mount ISO for rescue/install
bwh ipv6 add                          # Assign new IPv6 /64 subnet
bwh ipv6 list                         # List IPv6 subnets
bwh pi info                           # Show private IPv4 info (alias of `private-ip info`)
bwh connect                           # SSH connection

# Keep BWH CLI up to date
bwh update                            # Check and install updates
bwh update --check                    # Only check for updates

# Explore more commands: bwh --help

Multi-Instance Support

# Add multiple VPS instances
bwh node add prod --api-key <KEY> --veid <VEID>
bwh node add dev --api-key <KEY> --veid <VEID>

# Target specific instance or set default
bwh --instance prod info
bwh node set-default prod

# View all options: bwh node --help

Go SDK

import (
    "context"
    "log"
    "github.com/strahe/bwh/pkg/client"
)

// Initialize client
c := client.NewClient("your-api-key", "your-veid")
ctx := context.Background()

// Get server information
info, err := c.GetServiceInfo(ctx)
if err != nil {
    log.Fatal(err)
}

// Power management
err = c.Start(ctx)                    // Start VPS
err = c.Stop(ctx)                     // Stop VPS
err = c.Restart(ctx)                  // Restart VPS

// Monitoring
usage, err := c.GetRawUsageStats(ctx) // Usage statistics
live, err := c.GetLiveServiceInfo(ctx) // Real-time status

// Backup management
snapshot, err := c.CreateSnapshot(ctx, "backup-name")
backups, err := c.ListBackups(ctx)

Available Methods

Server Management: GetServiceInfo, GetLiveServiceInfo, Start, Stop, Restart, Kill, SetHostname, ReinstallOS, ResetRootPassword, MountISO, UnmountISO

Monitoring: GetRawUsageStats, GetBasicServiceInfo, audit log access

Backup & Recovery: CreateSnapshot, RestoreSnapshot, DeleteSnapshot, backup management

Migration: GetMigrateLocations, StartMigration (use StartMigrationWithTimeout for custom timeouts)

Network: SSH key management, IP/reverse DNS configuration, IPv6 subnet management, private IPv4 management

Complete API reference: View pkg/client documentation or run go doc github.com/strahe/bwh/pkg/client for all available methods.

MCP Server Integration

BWH includes a built-in MCP (Model Context Protocol) server that enables secure AI integration with your VPS management workflows.

Start MCP Server

bwh mcp serve

Configuration

The BWH MCP server integrates seamlessly with various AI tools and editors. Add the appropriate configuration to your MCP client:

Claude Desktop

Add to your claude_desktop_config.json file:

{
  "mcpServers": {
    "bwh": {
      "command": "bwh",
      "args": ["mcp", "serve"]
    }
  }
}

Claude Code

claude mcp add bwh -- bwh mcp serve

Cursor

Add to your Cursor MCP configuration:

{
  "mcpServers": {
    "bwh": {
      "command": "bwh",
      "args": ["mcp", "serve"]
    }
  }
}

Continue (VS Code Extension)

Add to your Continue configuration:

{
  "mcpServers": {
    "bwh": {
      "transport": {
        "type": "stdio",
        "command": "bwh",
        "args": ["mcp", "serve"]
      }
    }
  }
}

Configuration Notes

  • Custom Config: Use --config /path/to/config.yaml to specify a config file
  • Multiple Instances: The server automatically uses your default instance from configuration
  • Integration: Add to existing MCP config files without replacing other servers

Available MCP Tools (Read-only)

  • instance_list: List all configured instances with metadata (no parameters)
  • vps_info_get: Get VPS information (instance?, compact?, live?)
  • vps_usage_get: Get usage statistics (instance?, period?, days?, group_by?)
  • snapshot_list: List snapshots (instance?, sticky_only?, name_contains?, sort_by?, order?, limit?)
  • backup_list: List backups (instance?, os_contains?, since?, until?, sort_by?, order?, limit?)
  • vps_audit_get: Get audit logs (instance?, since?, until?, limit?, ip_contains?, type?)
  • iso_list: List available and mounted ISO images (instance?)

All MCP tools are safe, read-only operations that won't modify your VPS configuration or data.

Shell Completion

bwh completion bash > /usr/local/share/bash-completion/completions/bwh  # bash (Linux)
bwh completion bash > /opt/homebrew/etc/bash_completion.d/bwh           # bash (macOS)
bwh completion zsh > /usr/local/share/zsh/site-functions/_bwh           # zsh (system)
bwh completion fish > ~/.config/fish/completions/bwh.fish              # fish (user)

Available Commands

node            Manage BWH VPS nodes configuration
info            Display comprehensive VPS information
rate-limit      Check API rate limit status
connect         SSH into VPS (passwordless, using local SSH keys)
ssh             Manage SSH keys
start/stop      Start/stop the VPS
restart         Restart the VPS
kill            Forcefully stop a stuck VPS (WARNING: potential data loss)
hostname        Set hostname for the VPS
set-ptr         Set PTR (rDNS) record for IP address
iso             Manage ISO images for VPS boot
reinstall       Reinstall VPS operating system (WARNING: destroys all data)
usage           Display detailed VPS usage statistics
audit           Display audit log entries
reset-password  Reset the root password
snapshot        Manage VPS snapshots
backup          Manage VPS backups
migrate         Migrate VPS to another location (supports --wait/--timeout)
ipv6            Manage IPv6 subnets (add, delete, list)
private-ip (pi) Manage Private IPv4 addresses (info, available, assign, delete)
mcp             Run MCP server for read-only BWH management
update          Check for updates and update BWH CLI to the latest version
completion      Generate shell completion script

Use bwh <command> --help to view detailed options and usage examples for each command.

Build

make build  # or: go build -o bwh ./cmd/bwh

Run tests: make test

License

MIT. See LICENSE.

README mirrored from the source repository 11 hours ago. The original is authoritative.

Questions

About Bwh

How do I install Bwh?

Run npx bwh, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Bwh safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Bwh still maintained?

Yes — the latest release is v0.2.0 (27 Jun 2026), and the last commit was 7 months ago. The repository has 7 stars and 0 open issues.