Model Context Protocol (MCP) Server: io.github.tj-smith47/cfgd
The MCP server for io.github.tj-smith47/cfgd provides model context around cfgd, a declarative, GitOps-style machine configuration management project. It centers on composing reusable configuration building blocks, including cross-platform modules and profiles, to manage machine state.
🛠️ Key Features
Declarative configuration management
GitOps-style machine configuration
Composable profiles
Shareable, cross-platform modules
🚀 Use Cases
Declaring machine packages
Managing dotfiles
Setting system settings
Handling secrets
⚡ Developer Benefits
Uses composable profiles
Supports shareable, cross-platform modules
Aligns with configuration-management, gitops, modules, profiles, rust, cfg, and tooling
⚠️ Limitations
Available catalog data includes only a description and readme excerpt; no explicit MCP tooling capabilities are provided here.
Declare your entire machine (packages, dotfiles, system settings, secrets) with composable profiles and shareable, cross-platform modules.
cfgd installing a Neovim setup on a bare Ubuntu container in one command
A bare ubuntu:24.04 container with no Neovim, no Homebrew and no config. One cfgd init later, nvim opens a fully configured LazyVim. Recorded with VHS.
Most dotfile managers track files. cfgd manages your entire machine. You declare packages, files, secrets, and system settings in version-controlled YAML. cfgd diffs what you want against what you have, builds a plan, and reconciles continuously. If something drifts, it is detected and corrected.
How It Works
Profiles declare your machine's desired state: packages, files, system settings. They compose via inheritance: share a common base across machines, then specialize per context. See docs/profiles.md.
code
base
╱ ╲
work personal
╱ ╲
laptop devcontainer
Modules are shareable, self-contained config packages. Install someone else's dev environment or publish your own. Cross-platform package resolution picks the right manager automatically. See docs/modules.md.
Reconciliation continuously ensures machines match their declared state. Drift is detected, reported, and optionally auto-corrected. Failed actions don't abort; they're logged and skipped. See docs/reconciliation.md, or watch two machines converge through the daemon.
cfgd catching a sabotaged file with cfgd status, explaining it with cfgd diff, and healing it with cfgd apply
Quick Start
sh
# Install via Homebrew
brew install tj-smith47/tap/cfgd
# Or via install script
curl -fsSL https://github.com/tj-smith47/cfgd/releases/latest/download/install.sh | sh
# Or via cargo
cargo install cfgd
# Bring your config to a new machine in seconds
cfgd init --from git@github.com:you/machine-config.git
# Or start fresh
cfgd init
# Or let AI scan your system and generate config for youexport ANTHROPIC_API_KEY=sk-...
cfgd generate
# Set up shell completions (add to your shell's rc file)source <(cfgd completion bash) # .bashrcsource <(cfgd completion zsh) # .zshrc
cfgd completion fish | source# config.fish
Why cfgd exists
I recently switched jobs, and spent the last week of my old job backing up scripts and dotfiles, parsing out company-specific info, and composing a tarball to transfer. At the new job, I spent another few days getting my new machine reconfigured. Over time I kept discovering things I'd forgotten, and things (System Settings, for one) I wished the backup had covered. It all felt manual and incomplete: I should be able to clone a repo and have my entire workstation (packages, scripts, dotfiles, system settings) feel familiar again. Better still, to keep parts of that feeling in sync between my home and work laptops.
The other inspiration was devcontainers. At my previous company I had set up custom scripts to inject dotfiles into the devcontainer so a user could replicate their dev environment once they shell in. At minimum, I wanted my full Neovim setup available in any ephemeral container without modifying the devcontainer config in every team's repository to accommodate it. I needed something that could bootstrap my config into any environment from the outside, regardless of whose repo I was working in. Plus, I had some coworkers in need of education about the superiority of vim-motions, and wanted a quick way to share my exact setup, down to the alias.
cfgd borrows from the best ideas across practices:
Kubernetes: declarative reconciliation loop, KRM resource model
Terraform: plan/apply workflow, state tracking, drift detection
Puppet: continuous enforcement via daemon, module ecosystem
Nix: reproducible machine state from a single source of truth
Puppet is the closest philosophical match: declarative state, continuous enforcement, module ecosystem. If that model clicked for you but standing up a JVM server and writing a Ruby-era DSL to manage your dotfiles in 2026 doesn't, cfgd is what that idea looks like rebuilt from scratch for developer workstations.
cfgd is a good fit when you want: one-liners for cross-platform machine bootstrapping, shareable dev environment modules, continuous reconciliation between machines or subscribed sources, or team config distribution with policy enforcement.
# Example: set up your dev tools on a GitHub Actions runner-uses:tj-smith47/cfgd/ecosystem/github-actions/setup@masterwith:source:git@github.com:you/machine-config.gitmodule:dev-tools# Example: plan config changes on every PR, comment the diff, gate the merge-uses:tj-smith47/cfgd/ecosystem/github-actions/plan@masterwith:config-dir:.fail-on-error:true
Modules can also be exported as DevContainer Features for injection into devcontainers:
sh
cfgd module export my-tool --as devcontainer
Building from source:
sh
git clone https://github.com/tj-smith47/cfgd.git && cd cfgd
cargo build --release
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.