← developer tools

magmascript

a Python-inspired mini language for magmacrunch infrastructure

Playground

Write and run .mgs scripts in-browser with Pyodide. 14 examples, syntax highlighting, console output.

📖

Language Reference

Syntax cheat sheet: variables, functions, classes, control flow, built-in functions, and string methods.

features

Variables & F-Strings Dynamic typing, f"interpolation {expressions}"
Functions & Closures fn, arrow functions, default params, closures
Lists & Dicts Slicing [1:3], [::-1], comprehensions
Classes Methods, constructors, self, inheritance-ready
Error Handling try/haunter, throw fire toad, spooked warnings
Import System intent "module.mgs", named imports, aliases
Asthenosphere Memory tier: fixed-width ints, arena, floorplans, faults
Domain Bridge 12 built-in clients: mcp, pi, mac, mc1, gh, media, scores
Host Objects Read and write fields, properties, and methods on Python objects
Plugin Domains Outside packages publish domains of their own
CLI & REPL Run scripts, interactive REPL with tab completion

about

A Python-inspired mini scripting language by magmacrunch media. Write .mgs scripts that combine general-purpose programming with infrastructure automation via the domain bridge. Tree-walk interpreter, no compilation step, runs in your terminal or browser.

install

pip:

pip install magmascript

homebrew:

brew install magmacrunch-media/tap/magmascript

v3.2.1

quick start

magmascript run script.mgs
magmascript repl

MIT · Copyright 2026 magmacrunch media