1. Conduid
  2. Cloud
  3. Copacetic MCP
MCP server · Cloud

Copacetic MCP

an mcp server for patching container images

Unclaimed NOASSERTION last commit a year ago containermcp-serverclouddockersecurity-tools
56Fair

Scored 2 days ago · breakdown

About Copacetic MCP

Copacetic MCP is an MCP server published by duffney in the Cloud category: an mcp server for patching container images.

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

Install

From source
git clone https://github.com/duffney/copacetic-mcp

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 Copacetic MCP

Powered by Claude · Grounded in docs

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

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v0.1.6copacetic-mcp v0.1.6 · 11 Sep 2025Container Patching with Copacetic MCP Server v0.1.6 This release includes cross-platform binaries for the Copacetic MCP server and client. Changelog Bug fixes 8cdfde49dc20a2771501a3eba0df4673f0f850d7: fix: image reference parsing…
v0.1.5copacetic-mcp v0.1.5 · 8 Sep 2025Container Patching with Copacetic MCP Server v0.1.5 This release includes cross-platform binaries for the Copacetic MCP server and client. Changelog Features 06f8a873cac81bba5f3eedc95b7413dd14256b67: feat: Docker image (@duffney) Bug fixes…
v0.1.4copacetic-mcp v0.1.4 · 4 Sep 2025Container Patching with Copacetic MCP Server v0.1.4 This release includes cross-platform binaries for the Copacetic MCP server and client. Changelog Features eee199e2798c163b43fc78b0d1ebdc387698cfbd: feat: scan container tool (@duffney)…
v0.1.3copacetic-mcp v0.1.3 · 3 Sep 2025Container Patching with Copacetic MCP Server v0.1.3 This release includes cross-platform binaries for the Copacetic MCP server and client. Changelog Bug fixes be55a533073d9908639754cb92662fb15f3e446c: fix: Use Specific Digests for…
v0.1.2copacetic-mcp v0.1.2 · 2 Sep 2025Container Patching with Copacetic MCP Server v0.1.2 This release includes cross-platform binaries for the Copacetic MCP server and client. Changelog Bug fixes 0364dcf959a1256a653be91fa4db886d0853c64b: fix: update archive formats and…

README

copacetic-mcp

A Model Context Protocol (MCP) server for automated container patching using Copacetic.

MCP Tools

This server provides the following Model Context Protocol (MCP) tools:

  • workflow-guide: Get patching strategy guide on which Copacetic tools to use for different container patching scenarios
  • scan-container: Scan container images for vulnerabilities using Trivy - creates vulnerability reports required for report-based patching
  • patch-vulnerabilities: Patch container image vulnerabilities using a pre-generated vulnerability report from 'scan-container' tool (RECOMMENDED approach for vulnerability-based patching)
  • patch-platforms: Patch specific container image platforms with Copa - patches only the specified platforms WITHOUT vulnerability scanning
  • patch-comprehensive: Comprehensively patch all container image platforms with Copa - patches all available platforms WITHOUT vulnerability scanning

Installation

Pre-built Binaries

Download the latest release for your platform from the releases page.

Linux (AMD64)

curl -L https://github.com/duffney/copacetic-mcp/releases/latest/download/copacetic-mcp_linux_amd64.tar.gz | tar xz
./copacetic-mcp-server

Linux (ARM64)

curl -L https://github.com/duffney/copacetic-mcp/releases/latest/download/copacetic-mcp_linux_arm64.tar.gz | tar xz
./copacetic-mcp-server

macOS (AMD64)

curl -L https://github.com/duffney/copacetic-mcp/releases/latest/download/copacetic-mcp_darwin_amd64.tar.gz | tar xz
./copacetic-mcp-server

macOS (ARM64/Apple Silicon)

curl -L https://github.com/duffney/copacetic-mcp/releases/latest/download/copacetic-mcp_darwin_arm64.tar.gz | tar xz
./copacetic-mcp-server

Build from Source

git clone https://github.com/duffney/copacetic-mcp.git
cd copacetic-mcp
make build

Configuration

VSCode Setup

To use copacetic-mcp with VSCode and MCP-compatible tools, add the following configuration to your VSCode settings.json:

{
  "mcp.servers": {
    "copacetic-mcp": {
      "command": "/path/to/copacetic-mcp-server",
      "args": [],
      "env": {}
    }
  }
}

Replace /path/to/copacetic-mcp-server with the actual path to your copacetic-mcp server binary.

Docker option (run server from a container)

"copacetic-mcp-docker": {
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "--mount",
    "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock",
    "--mount",
    "type=bind,source=${env:HOME}/.docker/config.json,target=/root/.docker/config.json",
    "ghcr.io/duffney/copacetic-mcp:latest"
  ],
  "env": {
    "DOCKER_HOST": "unix:///var/run/docker.sock"
  }
}

Notes:

  • Mounting the Docker socket gives the container access to the host Docker daemon; this is required for Copacetic image operations but has security implications—only run trusted images.
  • Mounting ${HOME}/.docker/config.json allows the container to use your registry credentials for pulling/pushing images.
  • Replace ghcr.io/duffney/copacetic-mcp:latest with a local image tag if you build locally (e.g., copacetic-mcp:latest).

Alternative: Using with Claude Desktop

You can also configure copacetic-mcp for use with Claude Desktop by adding it to your MCP configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "copacetic-mcp": {
      "command": "/path/to/copacetic-mcp-server",
      "args": []
    }
  }
}

Development

Prerequisites

  • Go 1.20 or later
  • Copacetic CLI installed
  • Trivy installed
  • Docker with virtualization emulation support (required for container operations)

Copacetic CLI Requirements

Copacetic requires the following to be installed and available:

  • Docker: Container runtime for image operations
  • Buildkit: Advanced build features (included with recent Docker versions)
  • Container Registry Access: For pulling and pushing patched images

Docker Virtualization Emulation

For multi-platform container patching, Docker must support virtualization emulation:

  • Linux: Ensure QEMU user-mode emulation is available for cross-platform support
  • macOS: Docker Desktop includes virtualization emulation by default
  • Windows: Docker Desktop with WSL2 backend recommended for best compatibility

To verify Docker virtualization support:

# Check available platforms
docker buildx ls

# Verify QEMU emulation (Linux)
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

Building

# Build both server and client
make build

# Build only the server
make build-server

# Build only the client
make build-client

# Cross-compile for all platforms
make cross-compile

Testing

# Run all tests
make test

# Format code
make fmt

# Run vet
make vet

Release Process

This project uses GoReleaser for automated releases.

Creating a Release

  1. Create and push a tag:

    git tag -a v1.0.0 -m "Release v1.0.0"
    git push origin v1.0.0
    
  2. GitHub Actions will automatically:

    • Run tests
    • Build cross-platform binaries
    • Create release archives
    • Generate checksums
    • Create a GitHub release
    • Upload artifacts

Supported Platforms

The automated release process builds for:

  • Linux: AMD64, ARM64
  • macOS: AMD64, ARM64 (Apple Silicon)
  • Windows: AMD64

Manual Release (for testing)

# Create a snapshot release (no tags required)
make release-snapshot

# Or use GoReleaser directly
goreleaser release --snapshot --clean

Project Structure

copacetic-mcp/
├── main.go                     # Main MCP server entry point
├── cmd/client/main.go         # Test client
├── internal/
│   ├── mcp/                   # MCP server handlers and setup
│   ├── copa/                  # Copacetic command execution
│   ├── trivy/                 # Trivy vulnerability scanning
│   ├── types/                 # Shared type definitions
│   └── util/                  # Utility functions (multiplatform, etc.)
├── .goreleaser.yml            # GoReleaser configuration
├── .github/workflows/         # GitHub Actions workflows
│   ├── build.yml             # Build and test on every push/PR
│   └── release.yml           # Automated releases on tags
└── Makefile                   # Development tasks

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Run make test fmt vet
  6. Submit a pull request

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Copacetic MCP

How do I install Copacetic MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Copacetic MCP safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Copacetic MCP still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.