DevKit MCP
by MattBunch
README.md
# DevKit MCP
DevKit resolves Linux workstation selections into deterministic plans. The website, stateless MCP endpoint and local CLI consume the same TypeScript catalogue.
```mermaid
flowchart LR
Core[Versioned DevKit catalogue and resolver] --> Web[Astro configurator]
Core --> MCP[Cloudflare MCP Worker]
Core --> CLI[Local DevKit CLI]
CLI --> Approval[Local transaction approval]
Approval --> Native[Distribution package manager]
```
## Develop and try a plan
Use Node 24 and the repository's pnpm version. Install with `pnpm install --frozen-lockfile`. Run `pnpm test`, `pnpm mcp:build`, and `pnpm devkit:build`. Start `pnpm mcp:dev --ip 127.0.0.1 --port 8789` and run `pnpm mcp:smoke` from a second terminal. With the website checkout, use `pnpm dev` and open `/mcp` and `/dev-setup`.
```sh
pnpm devkit doctor --json
pnpm devkit plan --profile minimal
pnpm devkit diff --profile minimal
pnpm devkit apply --profile minimal
pnpm devkit verify --profile minimal
pnpm devkit upgrade --profile minimal
```
Use `--manifest devkit-environment.json` in place of `--profile` to review a downloaded selection. The CLI checks the release, digest and detected platform. Each asset must come from a reviewed release. Verify `SHA256SUMS` against the release provenance before running `sha256sum -c SHA256SUMS`. Inspect `bootstrap.sh` and run it with the verified SHA-256 digest of `devkit.mjs`. Bootstrap uses Bash, coreutils, and, if Node 24 is missing, curl, tar and xz. It prints the local launcher location and leaves shell startup files alone.
After deployment, configure the client with `codex mcp add mattbunch --url https://mcp.mattbunch.dev/devkit-mcp` or `claude mcp add --transport http mattbunch https://mcp.mattbunch.dev/devkit-mcp`. Ask the agent to discover the profiles, review the local inventory, and use `setup_dev_environment` to generate a dry-run. Run and approve apply in your own terminal. The official MCP Inspector can independently run discovery and calls.
## Compatibility and package sources
Initial mappings target Fedora 44/45, Ubuntu 24.04/26.04 and Debian 13 on x86_64 and ARM64, plus eligible Ubuntu and Debian WSL2 variants. Eligibility means the resolver has a candidate mapping. It is not a test result. Confirm inventory, repository availability, packages and executables on the target. Arch x86_64 is planning-only because partial upgrades are unsupported. Unknown platforms and WSL1 block apply. Systemd presence is informational. The CLI leaves service enablement and Windows changes to the user.
The configurator also lists planning-only distributions such as NixOS, Gentoo and Alpine. Those targets use the same DevKit package checklist and manifest format, with official distribution guidance and no automated install operations. Other Linux provides a generic checklist. Regenerate exported manifests in the matching configurator when the catalogue version changes. See /mcp/ for setup instructions for Cursor, Google Antigravity, OpenCode and other Streamable HTTP clients.
Full and Agentic include manual setup entries for Node/pnpm and several vendor tools. The separate bootstrap can supply a private Node 24 runtime. Package manager operations are restricted to native repositories already configured on the machine. Trust in their signing keys and package scripts remains the operator's responsibility. Platform-by-platform installation and agent interoperability evidence must be attached to the release.
### Validation of the local release candidate
| Target | Observed |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Fedora 44, Ubuntu 24.04 LTS and Debian 13 on x86_64 | Minimal installed and verified in disposable Podman containers. A second apply made no package changes. The fixture shell config was preserved. |
| Bootstrap on Ubuntu 24.04 x86_64 with Node 24 already available | Release checksums verified. Updating a prior CLI made one backup, the next run made none, and the launcher worked. Downloading Node on a machine without it remains a separate qualification case. |
| Local MCP | Wrangler smoke tests covered both protocol revisions, all seven tools, resource and prompt reads, and input size and origin rejection. Inspector validated discovery. Codex CLI 0.174.0 called profile discovery and produced a Fedora Minimal plan from a synthetic inventory. |
| Other platforms and clients | Fedora 45, Ubuntu 26.04, ARM64, WSL2, Arch execution, broader Full installation and real Claude Code interoperability remain unverified. Config scripts are reviewed references only. |
Hosted CPU qualification and production smoke tests belong to the approved release procedure.
## Extend a release
- Add a catalogue item with a unique stable ID, category, description, dependencies, executable, and validated native mapping or official manual source. Check actual package availability and executable naming per architecture and distro release.
- Compose a profile from existing IDs in the catalogue. An exclusion that breaks a required dependency blocks it and its dependants.
- Add a configuration entry with a reviewed immutable upstream revision, prerequisites, expected changes and known limits. Existing configuration modules are advisory. Their installer sources require a reuse and safety review before automation.
- For a new distro, add exact release identifiers, inventory probe, version semantics, and a bounded package-manager adapter. Qualify it in an isolated image before enabling apply.
- Increment the manifest version for changes in public definitions. `schemaVersion` covers the portable document structure. The digest covers catalogue, profile, module and platform data in the released source. The request schemas expose public IDs and optional normalized version strings. Resources expose the same published data by URI.
## Security and recovery
The Worker rejects unexpected origins, credentials in authorization headers, oversized messages and invalid typed arguments. It hosts public data and makes no outgoing calls. Client payloads may be processed by the client's provider and by Cloudflare during delivery. Do not send shell history, tokens, home directories or raw inventory output. The CLI treats remote responses as advisory and rebuilds the plan using its bundled release.
Preview and apply are separate. Apply requires an interactive terminal, both local approvals, and native package manager confirmation where required. Existing dotfiles are preserved by the automated flow. Config modules are pinned manual workflows. Review each module's backup and uninstall instructions before applying it. Backups may contain private values.
Apply records attempted package transactions in the private local report. If interrupted, inspect the package manager's state, let any active transaction finish, and run plan again. If a stale `~/.devkit/apply.lock` remains, remove it only after confirming no DevKit apply is active. Fix a broken or interrupted native transaction with the distro's documented procedure before rerunning. The CLI does not promise package removal, rollback of maintainer scripts, or reversal of package manager transactions. Remove DevKit's launcher, bundle and private bootstrap runtime only after confirming no process needs them. Keep the report if needed for recovery.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues