MagiCore (mgc) is a multi-language package orchestrator with web (npm/yarn) beta testing ready — written in Rust for speed and security.
Core strength: Web package management (npm replacement) with supply-chain security, signed lockfiles, and trust policies. Multi-language orchestration: Experimental support for AI (Python), Cloud (Terraform), CI/CD, Game engines, IoT, and Mobile — reaching parity in V1.1+.
🚧 Beta Release:
v1.0.0is beta-ready for web projects (npm/pnpm replacement). Multi-language cores (ai/app/lib) remain experimental. See CHANGELOG.md for details and Known Limitations for V1.1 roadmap toward full core parity.
| Feature | Description |
|---|---|
| 🌐 9 Ecosystems | Web, AI, Cloud, CI/CD, Game, IoT, App, Lib, Hardware — one CLI |
| ⚡ Zero-Buffer Streaming | Chunks stream directly from network → disk, no full-payload RAM spike |
| 🔒 Supply-Chain Security | 24-hour new-release quarantine + SRI integrity + SBOM generation |
| 🛡️ Trust Policy Gate | Lifecycle script approval system (mgc trust approve/deny/prune) — NEW! |
| 📋 SBOM Generation | CycloneDX & SPDX formats for compliance and vulnerability tracking (NEW!) |
| 🔐 Signed Lockfiles | Ed25519 cryptographic signatures for tamper detection (NEW!) |
| 📦 CAS Reflink Store | Content-addressed store with OS reflinks/hardlinks for zero-copy installs |
| 🔀 Monorepo Catalogs | PNPM-compatible catalog: protocol for centralized version management |
| 🔁 Cross-PM Migration | Import npm/pnpm/yarn/bun lockfiles into signed mgc.lock — mgc import |
| 🤖 Native MCP Server | mgc mcp — built-in JSON-RPC 2.0 stdio server for AI IDEs (Cursor, Claude Code) |
| 🩺 Smart Doctor | mgc doctor --fix auto-diagnoses and repairs environment issues |
| 🗄️ Embedded Registry | mgc-registry-server — host your own private package registry |
| 🌍 Cross-Platform | macOS (Apple Silicon + Intel), Linux x64/ARM64, Windows x64/ARM64 |
brew install mingd-153/tap/magicorescoop bucket add magicore https://github.com/mingd-153/scoop-magicore
scoop install magicoreDownload the latest release from GitHub Releases →
| Platform | File |
|---|---|
| macOS Apple Silicon | magicore-macOS-ARM64.tar.gz |
| macOS Intel | magicore-macOS-X64.tar.gz |
| Linux x64 | magicore-Linux-X64.tar.gz |
| Linux ARM64 | magicore-Linux-ARM64.tar.gz |
| Windows x64 | magicore-Windows-X64.zip |
# macOS/Linux
tar xzf magicore-*.tar.gz
sudo mv mgc /usr/local/bin/
mgc --versiongit clone https://github.com/mingd-153/MagiCore.git
cd MagiCore
cargo build --release --bin mgc
# Binary at: target/release/mgcRequires: Rust 1.85+
# Create a new web project
mgc create-web react@latest my-app --ts
# Install dependencies (auto-detects ecosystem)
mgc install
# Add a package
mgc add zod
mgc add -D jest @types/jest # Testing with Jest
# Run development server
mgc dev
# Security audit
mgc audit
# Trust policy management (NEW in V1.0.0!)
mgc trust approve lodash # Allow lifecycle scripts
mgc trust deny cowsay # Block lifecycle scripts
mgc trust list # Show all policies
# Generate SBOM (NEW in V1.0.0!)
mgc sbom --format cyclonedx-json --output sbom.json
# Check environment healthPreliminary benchmarks (macOS M2, 20-package Next.js + React + TypeScript project):
| Metric | mgc | pnpm | Notes |
|---|---|---|---|
| Cold Install | 2.6s | 120s | Single dev workload, 5 runs |
| Warm Install | 2.0s | 1.7s | pnpm 1.2x faster (hardlink) |
| Disk Usage | 462MB | 360MB | +28% CAS overhead |
Key Findings:
- ✅ Cold install competitive on test workload (2.6s vs 120s pnpm)
- ✅ Sub-3-second installs: Consistent on tested manifest
⚠️ Warm cache: pnpm slight edge (1.2x) due to hardlink efficiency- ✅ Consistency: Lower variance in this dataset (25% CV vs pnpm 60%)
Beta Caveats:
⚠️ macOS-only data (Linux/Windows validation pending)⚠️ Single 20-package manifest (enterprise scale TBD)⚠️ vitest excluded (P0 crash), replaced with jest- Full methodology:
benchmark/BENCHMARK_METHODOLOGY.md - Raw data:
benchmark/results/
Beta disclaimer: Performance validated on dev workload only. Cross-platform and large-scale benchmarks deferred to V1.1 with CI automation. Current claims limited to tested configuration.
mgc doctor
### Security & Trust (NEW!)
```bash
# Configure quarantine (24h default)
echo '[security]
min_release_age = 86400 # 24 hours
web = 172800 # 48 hours for web packages' > mg.toml
# Initialize keyring for signed lockfiles
mgc trust init
# Sign lockfile
mgc trust sign mgc.lock
# Verify lockfile (automatic on install)
mgc trust verify mgc.lock
# Install all packages across the entire monorepo
mgc install --recursive
# Run build in all workspaces
mgc build --recursive
# Filter specific packages
mgc build --recursive --filter "packages/*"MagiCore ships a native Model Context Protocol server — no Python runtime needed.
Add to your AI IDE config:
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"magicore": {
"command": "mgc",
"args": ["mcp"]
}
}
}Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"magicore": {
"command": "mgc",
"args": ["mcp"]
}
}
}MCP tools exposed: mgc_install, mgc_add, mgc_audit, mgc_workspace_info
MagiCore/
├── cli/ # mgc binary — CLI commands and dispatch engine
├── core/crates/ # 21 foundational Rust crates (store, resolver, fetcher…)
├── adapters/ # 9 ecosystem adapters (web, ai, cloud, cicd, game, iot, app, lib, hardware)
├── deploy/ # Docker Compose + Nginx TLS reverse proxy configs
├── packaging/ # Homebrew formula + Scoop manifest
├── assets/ # Logo and brand assets
└── .github/workflows/ # CI (test) + Release (6-target binary builds) pipelines
| Core | Languages / Tools |
|---|---|
web |
Node.js, TypeScript, React, Vue, Next.js, FastAPI, Django, Spring Boot… |
ai |
Python AI frameworks, LLM serving, MCP server scaffolding |
cloud |
Terraform, Pulumi, AWS CDK, Cloudflare Workers |
cicd |
GitHub Actions, GitLab CI, ArgoCD, Docker Compose |
game |
Godot, Unity, Unreal, Bevy (Rust) |
iot |
PlatformIO, Zephyr RTOS, ESP32 toolchains |
app |
Flutter, Swift Package Manager, Kotlin/Gradle, React Native |
lib |
Universal polyglot libraries (Rust crates, Python packages, npm packages) |
hardware |
Benchmark tooling, hardware-aware resource allocation |
USAGE: mgc [OPTIONS] <COMMAND>
COMMON COMMANDS:
install, i Install dependencies (auto-detect ecosystem)
add Add a package to the project
remove, rm Remove a package
update, up Update packages to latest compatible version
search Search the registry
audit Supply-chain security audit
info Show package metadata
outdated List packages with available updates
doctor Environment diagnostic + AI-guided remediation
mcp Start native MCP server for AI coding agents
sbom Generate Software Bill of Materials (CycloneDX/SPDX) — NEW in V1.0.0!
WORKSPACE COMMANDS:
init Create new project scaffold
run Execute a lifecycle script
build Build the project
dev Start local development server
workspace Manage monorepo workspaces
MORE:
mgc --help Full command reference
mgc <cmd> --help Per-command help
V1.0.0 Security Status: ✅ Approved for CLI usage (see SECURITY_AUDIT_V1.0.0.md)
- ✅ Cryptographically signed lockfiles (Ed25519) for tamper detection
- ✅ SRI (Subresource Integrity) checksums for all packages
- ✅ 24-hour release quarantine — newly published packages are flagged
- ✅ SBOM generation — CycloneDX & SPDX for supply chain visibility
- ✅
mgc auditscans for known CVEs via the advisory database - ✅ Lifecycle scripts are opt-in only (trust gate)
Recommendation:
- ✅ Safe for CLI usage: install, add, remove, SBOM, lockfile operations
⚠️ Registry server: Wait for V1.0.1 before production deployment
Known Issues (V1.0.1 hotfix — within 1 week):
- 3 transitive dependency CVEs (quick-xml, rkyv, rsa) — affects registry server only
- 7 unmaintained crates being replaced
See full report: SECURITY_AUDIT_V1.0.0.md
Vulnerability Reporting: See SECURITY.md for responsible disclosure.
Temporarily Disabled Features (stubbed for rapid V1.0.0 release):
- ❌ Workspace lockfile merging (monorepo root lockfiles)
- ❌ Pruned install optimization (lockfile-based incremental installs)
- ❌
mgc whycommand (dependency explanation) - ❌ Lockfile version compatibility checks
These features will be restored in V1.0.1 hotfix (Week 7) — estimated 1 week from V1.0.0 release.
Workarounds:
- Workspace projects: Each package maintains its own lockfile (no root merge)
- Install optimization: Full resolution on every install (slower but correct)
- Dependency explanation: Manual inspection of
mgc.lock
✅ Restored since: cross-PM lockfile import (
mgc import), lockfile 3-way merge, unified TOML v2 lockfile writer, and a full black-box E2E suite (tests/e2e).
See docs/specs/magiCoreChangeLog.md for migration details.
We welcome contributions! See CONTRIBUTING.md for:
- Development environment setup
- Branching strategy & PR workflow
- Code style guidelines
- How to add a new ecosystem adapter
MIT © MagiCore Contributors — see LICENSE