Skip to main content

Multipass MCP Server

Project description

Multipass MCP Server

A Model Context Protocol (MCP) server to manage Multipass instances.

Features

  • Robust Command Execution: Uses shlex for safe command parsing.
  • Timeout Support: Commands have a default timeout of 60s to prevent hanging.
  • Detailed Error Handling: Custom exceptions and logging for better debugging.
  • Comprehensive Instance Management: Support for start, stop, suspend, resume, and purge.

Usage

Claude Desktop Configuration

Add the following to your Claude configuration:

{
  "mcpServers": {
    "multipass": {
      "command": "uvx",
      "args": ["multipass-mcp"]
    }
  }
}

Or via the command line:

claude mcp add --transport stdio multipass -- uvx multipass-mcp

Available Tools

  • list_instances: List all instances with their current state and IP addresses.
  • find_images: Find available images for launching new instances.
  • launch_instance: Create a new instance with optional CPU, memory, and disk specs.
  • start_instance: Start a stopped instance.
  • stop_instance: Stop a running instance.
  • suspend_instance: Suspend a running instance (saves state to disk).
  • resume_instance: Resume a suspended instance.
  • delete_instance: Delete an instance (with optional immediate purge).
  • execute_command: Run shell commands inside an instance.
  • get_instance_info: Get detailed specifications and resource usage (CPU, Memory, Disk).
  • purge_instances: Cleanup all deleted instances to free up disk space.

Development

Prerequisites

  • Multipass installed and running.
  • uv for dependency management.

Running Tests

uv run pytest

Installation from Source

uv pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multipass_mcp-0.1.2.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multipass_mcp-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file multipass_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: multipass_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for multipass_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cba8cbce057b4ac519fd41b16d8fbca234ba30566d355f88e026b2f0a9de15fa
MD5 c0c0e5c6142c7ab5f868f9cf06963d98
BLAKE2b-256 d7af53d43713d0abeb8814afe32466e91761d3e2648416fe09181ebca801016f

See more details on using hashes here.

File details

Details for the file multipass_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: multipass_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for multipass_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 366068bb49a869c9aa19a42f8a3318b59aee973678b1bfb716d68b2416cae547
MD5 584e0f857c3bfe53a0917064a263f46f
BLAKE2b-256 9cb3498ed2bf460dde0778472a925d0483fb3fad41d50666e9838f1754d20bd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page