Published September 19, 2026
| Version v0.104.5
Software
Open
Microbiosis/mora-lang: v0.104.5
Authors/Creators
Description
Mora v0.104.5
一个轻量级脚本语言,内建 AI 调用、HTTP server、MCP server、长期记忆、Agent 编排。
核心特性
- AI 调用是语法原语:
p"..."/with/stream/tool/catch e: AiError - HTTP / MCP server 是语法块:
serve as http/serve as mcp - 可观测是语法块:
observe trace/span块 + OTEL - 单二进制多协议:
mora根据脚本顶层serve块自动选择协议 - Route 是语言概念:
route fast: "gpt-4o-mini"+fast(p"...") - 强类型系统: 类型推断、泛型、trait、enum、struct
快速开始
# 写一个 Mora 脚本
cat > hello.mora << 'EOF'
observe trace
route fast: "gpt-4o-mini"
serve as http on port 3000 do
GET "/chat" -> fn(req)
return fast(p"hello: {req.query.name}")
end
end
EOF
# 运行
mora hello.mora
# 另一终端: curl http://localhost:3000/chat?name=World
文档
SHA-256 Checksums
2c40573e8164609781e472733ddc0014cf8d8a5673590db08c8a09a9dfc30076 ./mora-x86_64-pc-windows-msvc/mora-x86_64-pc-windows-msvc.zip
59869db34853933b239f1e2219cf7d431da006aa919635478511fabbfc8849d2 ./mora-docker/mora-docker-amd64.tar.gz
79237b243c16dd2d42044c588816fd8136d8517ad7798c549bc1c45c00315b9a ./mora-aarch64-apple-darwin/mora-aarch64-apple-darwin.tar.gz
2b62f5ffed013e111174f143cdbe923f50c6973ccfc73762ca2f34d8e3f3a965 ./mora-x86_64-apple-darwin/mora-x86_64-apple-darwin.tar.gz
cac0c961ff3732a58a0a160610d331bc2de78e7ffe88fabec9d08802d7881110 ./mora-x86_64-unknown-linux-gnu/mora-x86_64-unknown-linux-gnu.tar.gz
425ab74a84b87e9e104984803ac63d6b26ef5bcede4c639e683d3af2930c506e ./mora-x86_64-unknown-linux-musl/mora-x86_64-unknown-linux-musl.tar.gz
Full Changelog: https://github.com/Microbiosis/mora-lang/compare/v0.25...v0.104.5
Files
Microbiosis/mora-lang-v0.104.5.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/Microbiosis/mora-lang/tree/v0.104.5 (URL)
Software
- Repository URL
- https://github.com/Microbiosis/mora-lang