AI-powered MCP server for Chef to Ansible migration and Ansible upgrade planning
Project description
SousChef: Chef-to-Ansible Migration & Ansible Upgrade Planning
Transform Chef automation to Ansible and plan Ansible version upgrades. Works with any AI assistant via MCP (Model Context Protocol)—Claude, GPT-4, GitHub Copilot, Red Hat AI, local models, and more.
Quick Facts: MIT License | Python 3.10+ | 43 MCP Tools | 91% Test Coverage
Warning I did not hand craft 100k lines of code in two days while doing my actual day job (which, for the record, isn’t this). A lot of this is AI generated. Architected, hand edited, and personally sworn at yes, but the heavy hand of AI is all over this repo.
I’ve pushed it to include a lot of tests, and I run it through its paces before pushing, but some things may break, or may have always been broken. If you find something, raise it and I’ll fix it.
A fair bit of this relies on mocked Chef/AWX/AAP APIs because shockingly I don’t have a fleet of enterprise grade installs with enterprise grade data sitting around to test against. Buyer beware (doubly so, since you didn’t actually buy anything).
What It Does
Chef-to-Ansible Migration — Convert cookbooks, recipes, custom resources, data bags, and Habitat plans to Ansible playbooks, roles, and containers. Supports infrastructure, applications, and day-2 operations.
Ansible Upgrade Planning — Assess compatibility, plan version upgrades, validate collections, identify breaking changes, and generate testing strategies.
Installation & Setup
# Install from PyPI
pip install mcp-souschef
# Configure your MCP client (Claude Desktop example)
cp config/claude-desktop.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Restart your AI assistant and start using
# Ask: "What Chef migration tools are available?"
Other MCP clients: See config/CONFIGURATION.md for VS Code Copilot, custom setups, and Docker deployment.
Key Features
- 43 MCP tools for Chef migration and Ansible upgrades
- Web UI with interactive migration planner and visualisation
- CLI for automation and CI/CD integration
- Production-ready with 91% test coverage and comprehensive validation
- Model-agnostic — works with any AI assistant supporting MCP
Common Use Cases
Chef Migration:
- Convert cookbooks to Ansible playbooks and roles
- Migrate Chef Habitat apps to Docker containers
- Transform data bags to Ansible Vault
- Generate AWX/AAP job templates and workflows
- Convert InSpec tests to Ansible validation tasks
Ansible Upgrades:
- Assess Python and Ansible version compatibility
- Plan upgrades with breaking change analysis
- Validate collection compatibility
- Generate testing strategies
- Track end-of-life dates
Both Infrastructure & Applications:
- Infrastructure provisioning and configuration
- Application deployment automation
- Day-2 operations (backups, scaling, updates)
- CI/CD pipeline migration
- Multi-cloud automation
Command-Line Examples
# Chef migration
souschef-cli recipe /path/to/recipe.rb
souschef-cli template /path/to/template.erb
souschef-cli convert package nginx --action install
# Ansible upgrades
souschef ansible assess --environment-path /path/to/ansible
souschef ansible plan --current 2.9 --target 2.17
souschef ansible validate-collections --requirements-file requirements.yml
# Web UI
souschef ui # Launch interactive dashboard
Documentation
Start Here
- Quick Start Guide — Get running in 5 minutes
- Production Safety — Validate migrations before deploying ⚠️
- User Guide — All 43 tools explained with examples
- Migration Guide — Step-by-step migration process
- Ansible Upgrades — Version upgrade planning workflows
Reference
- API Documentation — Complete technical reference
- Architecture Guide — Code structure and design decisions
- Contributing Guide — Development standards and workflow
- Security Policy — Vulnerability reporting and security features
- Changelog — Complete release history
Recent Updates
v6.0.0 — v2 core foundation with enhanced migration capabilities
v5.1.4 — Modular architecture, 91% test coverage, full type safety, production-ready
v5.0.0 — Complete Ansible upgrade planning with version matrices and EOL tracking
Contributing
# Development setup
git clone https://github.com/kpeacocke/souschef.git && cd souschef
poetry install
poetry run pytest # Run tests
poetry run ruff check . # Lint
poetry run mypy souschef # Type check
Standards: Zero warnings policy, type hints required, 90%+ test coverage, Australian English spelling.
See CONTRIBUTING.md for complete guidelines.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Security: See SECURITY.md
License
MIT License — see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_souschef-6.0.2.tar.gz.
File metadata
- Download URL: mcp_souschef-6.0.2.tar.gz
- Upload date:
- Size: 387.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af242343a98625c8339ced0193bc807c3fded90b000f9b6a8ebd0cae1326dd39
|
|
| MD5 |
7eb09788b4e9e92af8fa8125cf0079a1
|
|
| BLAKE2b-256 |
274ed6c75cbb8d4acc48c396f6f19d6402dc32de472712a0cd10ada26fe26e4f
|
Provenance
The following attestation bundles were made for mcp_souschef-6.0.2.tar.gz:
Publisher:
release.yml on kpeacocke/souschef
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_souschef-6.0.2.tar.gz -
Subject digest:
af242343a98625c8339ced0193bc807c3fded90b000f9b6a8ebd0cae1326dd39 - Sigstore transparency entry: 959711222
- Sigstore integration time:
-
Permalink:
kpeacocke/souschef@29e8bb207b20c959651be2fe5b75b25fdba5e7fd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kpeacocke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@29e8bb207b20c959651be2fe5b75b25fdba5e7fd -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file mcp_souschef-6.0.2-py3-none-any.whl.
File metadata
- Download URL: mcp_souschef-6.0.2-py3-none-any.whl
- Upload date:
- Size: 428.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79cede67568dbcafb202cc2f0845cd0c72030d214f2a4a2bc4fe9b3956ea8b2f
|
|
| MD5 |
4ba3d1bb6556b2c10c559ceb9ecceafd
|
|
| BLAKE2b-256 |
e837d4cb80e111e68b28360ffe8948e6e131260bab584c069e5689737245432e
|
Provenance
The following attestation bundles were made for mcp_souschef-6.0.2-py3-none-any.whl:
Publisher:
release.yml on kpeacocke/souschef
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_souschef-6.0.2-py3-none-any.whl -
Subject digest:
79cede67568dbcafb202cc2f0845cd0c72030d214f2a4a2bc4fe9b3956ea8b2f - Sigstore transparency entry: 959711270
- Sigstore integration time:
-
Permalink:
kpeacocke/souschef@29e8bb207b20c959651be2fe5b75b25fdba5e7fd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kpeacocke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@29e8bb207b20c959651be2fe5b75b25fdba5e7fd -
Trigger Event:
workflow_run
-
Statement type: