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.3.tar.gz (63.7 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.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multipass_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 63.7 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.3.tar.gz
Algorithm Hash digest
SHA256 8ed94a86aeee297164c490945cd9f65091d4497b668de91e5f4b73c1c1c76b23
MD5 c67b749ccbd2eeac5c75f71bedfe7a03
BLAKE2b-256 7cdd8bcb52d3a2ceba957ab3eb0547eb3056765a7dc7677f966d6bb529873e46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multipass_mcp-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f90b6ff1d9eb2823e913a5a80f33a35c3f0cc7b38679ccef895563d647077c03
MD5 1158eebf52f0c4f7595dee8567f7d992
BLAKE2b-256 29943c1f6e40bcd62ce33cf2fc274fa1eb961b1c08346d823d65a186e6ce69e8

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