Skip to main content

Model Context Protocol server for AlbumentationsX augmentation previews, validation, and segmentation review.

Project description

AlbumentationsX MCP

Model Context Protocol server for AlbumentationsX: transform discovery, pipeline validation, deterministic previews, feedback loops, and reproducible exports for computer vision.

CI PyPI Python MCP Registry skills.sh

Purpose

AlbumentationsX MCP is a thin, typed MCP layer around existing AlbumentationsX primitives. It helps MCP hosts:

  • discover transforms and schemas from albu-spec;
  • recommend and validate augmentation pipelines;
  • render local batch previews, compare preview runs, and review variants in compatible MCP Apps hosts (guide);
  • record concrete feedback such as too_noisy:high or exposure_too_weak:medium;
  • export accepted pipelines and review reports.

The server does not execute arbitrary Python, fetch remote images, overwrite datasets, or train models. Local preview access is bounded by --allowed-root, and generated artifacts are written under --artifact-root.

Quick Start

Run the published server:

uvx --from albumentationsx-mcp albumentationsx-mcp

For local development:

uv sync --all-extras --dev
uv run albumentationsx-mcp

For preview work, scope filesystem access explicitly:

uvx --from albumentationsx-mcp albumentationsx-mcp \
  --allowed-root /absolute/path/to/images \
  --artifact-root /absolute/path/to/albu-artifacts

Claude Desktop users can install the matching .mcpb from GitHub Releases. Copyable host snippets and the native Codex plugin bundle are in docs/INSTALL.md; the guided trial is docs/FIRST_10_MINUTES.md. npx skills add dKosarevsky/albu-mcp installs agent guidance, not the MCP server. Portable server command: uvx --from albumentationsx-mcp albumentationsx-mcp.

Operator CLI

Full command details are in docs/USAGE.md. The shortest real-use operator path is:

albu-mcp host setup-probe --host Codex --live --format json
albu-mcp host next-action --include-session --format markdown --output docs/HOST_TRUST_DASHBOARD.md
albu-mcp preview first-pack --dataset-path /absolute/path/to/images --allowed-root /absolute/path/to --artifact-root /absolute/path/to/albu-artifacts --format json
albu-mcp evidence collect --host Codex --date YYYY-MM-DD --reviewer "Release operator" --format json
albu-mcp intake bundle --output-dir docs/intake-bundle --format markdown
albu-mcp beta loop-pack --output-dir docs/beta-loop --format markdown
albu-mcp rc go-check --format json

Inside MCP hosts, use plan_augmentation_policy, plan_augmentation_policy_candidates, or plan_policy_iteration before rendering and reviewing contact sheets. Generated fixtures and packets are not P0 evidence.

Host Workflow

After connecting an MCP host:

  1. When the host exposes resource reads, read albumentationsx://examples/client-smoke; otherwise call run_host_smoke_check directly.
  2. If the resource was read, call run_host_smoke_check next.
  3. Continue only when preview_ready is true.
  4. For one real image or a folder, call build_review_packet to get a bounded first-preview handoff.
  5. Replace or reuse the paths in preview_request_template.request.
  6. Call validate_preview_request before rendering user-provided paths.
  7. Call render_preview_batch on a small local image set.
  8. Inspect the contact sheet, then use plan_preview_review to choose adjustment, audit, or export.

If preview setup fails, read albumentationsx://diagnostics/guide and call diagnose_environment. Troubleshooting details and remediation_actions are documented in docs/USAGE.md and docs/INSTALL.md.

Capabilities

  • Transform search and schema inspection.
  • Recipe and pipeline recommendation for classification, detection, segmentation, OCR, and balanced workflows.
  • Pipeline validation and explanation before rendering.
  • Preview request validation for missing files, outside-root paths, masks, and annotation counts.
  • Read-only dataset quality inspection before rendering previews.
  • Read-only image/directory onboarding and review packets that build bbox/mask-aware first-preview templates.
  • Deterministic single-image and batch previews with contact sheets.
  • Preview comparison with quality_summary and suggested feedback tags.
  • Concrete preview feedback, interactive tuning sessions, ranking, dataset scoring, and visual reports.
  • Agent workflow resources, prompts, smoke checks, diagnostics, and release-safe contract snapshots.

The public MCP surface is kept stable through reviewed contract snapshots. Compatibility rules are in docs/COMPATIBILITY.md.

The guide is published in the official Albumentations MCP docs from AlbumentationsX#289; source.

Documentation

Verification

Core gate: uv run pytest, uv run ruff check ., uv run ruff format --check ., uv run ty check, uv run python scripts/check_release_readiness.py, and uv build. Release-specific gates are in docs/RELEASE.md; tracked guards include scripts/check_host_acceptance_report.py, scripts/check_contract_snapshots.py, and scripts/check_directory_presence.py.

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

albumentationsx_mcp-1.18.0.tar.gz (991.8 kB view details)

Uploaded Source

Built Distribution

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

albumentationsx_mcp-1.18.0-py3-none-any.whl (335.7 kB view details)

Uploaded Python 3

File details

Details for the file albumentationsx_mcp-1.18.0.tar.gz.

File metadata

  • Download URL: albumentationsx_mcp-1.18.0.tar.gz
  • Upload date:
  • Size: 991.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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 albumentationsx_mcp-1.18.0.tar.gz
Algorithm Hash digest
SHA256 8ffbb662bc87c288c554fbad5ba049b0947a5b1996e324d37436db66d22dde96
MD5 6b85b851ce2d46712a4a41b610dadf90
BLAKE2b-256 28af25774cca385b39ede7c2825172787db26afad2a872b1a6f57f93e808e141

See more details on using hashes here.

File details

Details for the file albumentationsx_mcp-1.18.0-py3-none-any.whl.

File metadata

  • Download URL: albumentationsx_mcp-1.18.0-py3-none-any.whl
  • Upload date:
  • Size: 335.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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 albumentationsx_mcp-1.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 683fa3e4e244638712c304df9db3ff9e71fc0d7bd11fa9af83536633af5dfd7a
MD5 df07f403a945086d892ab6e795054d60
BLAKE2b-256 fecbbbe00e721d524ef037ac1b5137ff7528fc6505d8ee236a8b6ec66289f376

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