# YAP — Yet Another Packager

Compiles Linux packages across .deb, .rpm, .apk, and Arch formats using a shared PKGBUILD definition. Executes all tasks in disposable OCI containers via Docker or Podman.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 21
- Author: M0Rf30
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/M0Rf30/yap
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/yap-yet-another-packager

## What it does

This MCP server links your coding agent to the YAP packaging tool, transforming an Arch-style `PKGBUILD` recipe into packages for Debian, Fedora, Alpine, and Arch distros. Distribution overrides use a double-underscore syntax such as `depends__ubuntu` to specify unique package names cleanly.

All builds execute inside isolated OCI containers, preventing build-time dependencies from altering your host environment. The system handles foreign CPU cross-compilation, produces SBOM sidecars in CycloneDX 1.5 or SPDX 2.3 formats, and signs packages without calling a local `gpg` binary.

Because every operation relies on container isolation, a functioning Docker or Podman daemon is required on your workstation.

## Requirements
- Needs: Docker
- Environment variables: `YAP_VERBOSE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env YAP_VERBOSE=<YAP_VERBOSE> --transport stdio yap-yet-another-packager -- docker run -i --rm -e YAP_VERBOSE ghcr.io/m0rf30/yap-mcp:2.8.0
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add yap-yet-another-packager --env YAP_VERBOSE=<YAP_VERBOSE> -- docker run -i --rm -e YAP_VERBOSE ghcr.io/m0rf30/yap-mcp:2.8.0
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "yap-yet-another-packager": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "YAP_VERBOSE",
                "ghcr.io/m0rf30/yap-mcp:2.8.0"
            ],
            "env": {
                "YAP_VERBOSE": "<YAP_VERBOSE>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "yap-yet-another-packager": {
            "type": "stdio",
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "YAP_VERBOSE",
                "ghcr.io/m0rf30/yap-mcp:2.8.0"
            ],
            "env": {
                "YAP_VERBOSE": "<YAP_VERBOSE>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e YAP_VERBOSE=<YAP_VERBOSE> yap-yet-another-packager docker run -i --rm -e YAP_VERBOSE ghcr.io/m0rf30/yap-mcp:2.8.0
```
Replace <…> with your own values

## When to use it
- produce `.deb`, `.rpm`, `.apk`, and Arch packages from one PKGBUILD
- isolate compilation workloads inside Docker or Podman containers
- generate CycloneDX 1.5 and SPDX 2.3 SBOM sidecars alongside binaries
- cross-compile Linux packages for different target CPU architectures

## Example prompts
- Build DEB and RPM packages defined in `yap.json`
- Run a build for Ubuntu Jammy using container isolation
- Generate CycloneDX SBOM sidecars for the current `PKGBUILD`

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23643
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12109

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
