Skip to main content

AMDF - Agnostic Multi-cloud Delivery Framework

AMDF CLI MCP Kubernetes

Transform any Kubernetes CRD into type-safe schemas and developer-friendly blueprints using KCL

Quick Start{ .md-button .md-button--primary } Examples{ .md-button }


Why AMDF?

The Problem: CRD Complexity at Scale

Modern Kubernetes environments present significant challenges:

  • CRD Proliferation: Production clusters typically run dozens of operators (Crossplane, Istio, ACK). Each CRD specification contains hundreds of fields with complex nesting and relationships.

  • Configuration Overhead: YAML-based configuration is verbose and lacks type safety, leading to copy-paste patterns and maintenance burden.

  • Steep Learning Curve: Teams need deep Kubernetes expertise to effectively use infrastructure resources, creating bottlenecks.

  • Delayed Feedback: Configuration errors surface at deployment time rather than during development, slowing iteration cycles.

  • Pattern Fragmentation: Without standardization, teams develop inconsistent approaches, making knowledge transfer difficult.


The AMDF Solution

AMDF automatically transforms complex CRDs into simple, validated interfaces:

graph LR
    A[Complex CRD] --> B[AMDF] --> C[Type-Safe Schema] --> D[Simple Blueprint]
    style A fill:#f5f5f5
    style D fill:#e8f5e9

Key Benefits

Before AMDF After AMDF
Verbose YAML configurations Concise, type-safe definitions
Runtime validation errors Compile-time type checking
Manual templates per team Centralized, versioned modules
Ad-hoc policy enforcement Automated compliance checks
Platform team dependency Self-service infrastructure

How Teams Use AMDF

🚀 For Platform Engineers

Challenge: Managing numerous CRDs while supporting development teams requires significant effort.

AMDF Value:

  • Generate once, use everywhere: Create reusable blueprints from any CRD in seconds
  • Reduce cognitive load: Developers use simple interfaces instead of complex specs
  • Package & distribute: Share modules via OCI registries (public/private)
  • Version control: Track changes and roll back when needed

Outcome: Platform team scales efficiently, enabling developer productivity.

🛡️ For DevOps & SREs

Challenge: Maintaining configuration consistency and preventing deployment failures across environments.

AMDF Value:

  • Shift-left validation: Catch errors at compile-time, not in production
  • Policy templates: Auto-generate validation rules from CRD schemas
  • Compliance automation: Enforce organizational security and resource standards
  • Consistent patterns: Eliminate configuration drift

Outcome: Improved reliability and faster deployment cycles.

💻 For Application Developers

Challenge: Provisioning infrastructure requires deep Kubernetes expertise.

AMDF Value:

  • Simple interfaces: Use blueprints with only essential fields exposed
  • Type safety: IDE autocomplete and validation as you type
  • Clear examples: Auto-generated main.k files show exactly how to use resources
  • Self-service: Provision infrastructure independently

Outcome: Focus on application development, not infrastructure complexity.


Core Capabilities

🔍 Universal Discovery

  • List all CRDs in your cluster with filtering
  • Discover native Kubernetes resources (Pod, Service, Deployment, etc.)
  • Support for any operator: Crossplane, Istio, ACK, KRO, custom CRDs

🏗️ Smart Generation

AMDF creates a complete toolkit for each resource:

  1. Complete Schema (library/models/)
    • Full-fidelity, type-safe representation
    • All fields with documentation
    • For advanced use cases
  2. Simple Blueprint (library/blueprints/)
    • Curated interface with essential fields
    • Sensible defaults
    • For day-to-day usage
  3. Policy Template (library/policies/)
    • Auto-generated validation rules
    • Customizable compliance checks
    • Leverages KCL's native validation (we make it easier)
  4. Usage Example (library/main.k)
    • Working code you can run immediately
    • Shows best practices
    • Includes policy application

🛡️ Validation Made Easy

While KCL provides powerful validation capabilities, AMDF makes them accessible:

  • Auto-scaffolded policies: We generate policy templates from CRD schemas
  • Common checks included: Security, resources, naming conventions
  • Easy customization: Uncomment what you need, add your own rules
  • Compile-time feedback: Fast validation during development
# AMDF generates this for you
schema DeploymentPolicyMixin:
    check:
        _replicas >= 2, "Minimum 2 replicas for HA"
        all container in _template.spec.containers {
            "latest" not in container.image
        }, "No 'latest' tags allowed"

🤖 AI-Native Experience

  • MCP Server: Standardized interface for AI development tools
  • Guided Mode: Interactive wizard with contextual assistance

📦 Distribution & Reusability

  • Package modules in OCI registries
  • Share across teams and organizations
  • Version control and dependency management
  • GitOps-ready workflows

Architecture

AMDF follows a clean, modular design:

Complete Architecture

AMDF Architecture

The diagram above shows the complete end-to-end flow:

  • Platform Team uses AMDF CLI or MCP Server to generate KCL schemas from CRDs

  • Core Logic Library produces type-safe schemas, blueprints, and policies

  • Foundational Packages enable distribution via OCI Registry, Git, or YAML

  • Product Teams/Devs consume packages locally via imports or through GitOps workflows (Argo + KCL Plugin)

  • Multi-cloud Providers (AWS, GCP, Azure) receive validated configurations via Kubernetes

Core Engine Detail

graph TB
    subgraph "User Interfaces"
        CLI[CLI Commands]
        MCP[MCP Server]
        GUI[Guided Mode]
    end

    subgraph "Core Engine"
        DISC[CRD Discovery]
        GEN[Schema Generator]
        BP[Blueprint Creator]
        POL[Policy Scaffolder]
    end

    subgraph "Output"
        SCHEMA[Type-Safe Schemas]
        BLUE[Simple Blueprints]
        POLICY[Policy Templates]
        EXAMPLE[Usage Examples]
    end

    CLI --> DISC
    MCP --> DISC
    GUI --> DISC
    DISC --> GEN
    GEN --> BP
    GEN --> POL
    GEN --> SCHEMA
    BP --> BLUE
    POL --> POLICY
    GEN --> EXAMPLE

Getting Started

Installation

pip install amdf

Basic Workflow

# Discover what's available
amdf list-crds --filter aws
amdf list-k8s --filter deployment

# Generate schemas from CRDs
amdf generate instances.ec2.aws.upbound.io

# Generate schemas from native Kubernetes objects
amdf generate-k8s Pod
amdf generate-k8s Service

# Use the blueprints
import library.blueprints.Instance
import library.blueprints.Service

# Crossplane resource
server = Instance.InstanceBlueprint {
    _metadataName = "web-server"
    _instanceType = "t3.medium"
}

# Native Kubernetes resource
service = Service.ServiceBlueprint {
    _metadataName = "nginx"
    _namespace = "demo"
    _labels = {app = "nginx"}
    _ports = [{name = "http", port = 80, protocol = "TCP", targetPort = 80}]
    _selector = {app = "nginx"}
    _type = "ClusterIP"
}

Interactive Mode

# Step-by-step guided generation
amdf guided

Ecosystem Integration

AMDF orchestrates a best-in-class stack to deliver infrastructure as code:

  • KCL (Configuration Engine) Provides the modeling language, validation logic, and schema generation capabilities.

  • CNCF Ecosystem (Target Resource Model) Compatible with any Kubernetes CRD, like Crossplane, ACK, KRO, Config Connector, and custom operators.

  • Kubernetes (Control Plane) Serves as the universal API and reconciliation engine that AMDF extends.

  • Model Context Protocol (MCP) (Agentic Interface) Exposes AMDF as a standardized server, allowing AI clients to directly interact with, query, and generate infrastructure.

Metadata

Release files for amdf 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amdf 1.6.0
File Size Uploaded
amdf-1.6.0.tar.gz 39.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amdf 1.6.0
File Interpreter ABI Platform
amdf-1.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.7 kB

Release files / amdf-1.6.0.tar.gz

Download URL amdf-1.6.0.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
52bbbf3f9cffcdd1721ae95457563e879c60d72c1f244941824cc953bf8e8e50
BLAKE2b-256 checksum
How to use checksums
8c4ae1d339b895b6555c85c05bdb79294eac7ae82574f70f704301bb3897906b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release files / amdf-1.6.0-py3-none-any.whl

Download URL amdf-1.6.0-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f9e4df61427c97d85afa7a3fe5c16486fb62986af7cc91393a145cbb287b089
BLAKE2b-256 checksum
How to use checksums
44f099d239fb37fb27edd93e8ec737bf0ef54a5484dfd512338454f32759d2a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release history Release notifications | RSS feed

1.7.0

2 release files

1.6.1

2 release files

This release

1.6.0 This release

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page