eggsact
Deterministic MCP and in-process utility tools for coding agents. 86 tools across 23 categories: math, text, JSON, regex, path, shell, config, patch, dependency, analysis, network, encoding, temporal, and more. Includes a natural language math evaluator that parses expressions like "thirty plus five" or "30m + 100ft".
Installation
The latest published release is currently distributed through crates.io. The
binary installers are prepared for the first binary-bearing release, but their
latest URLs are not live yet. Install from Cargo:
After the first binary-bearing release is published, the documented fast path will be the verified release installer. See Installation for the target matrix and validation contract.
Or from source:
Minimum Rust version: 1.89.0.
Quick Start
CLI
# Natural language
# Standard math
# Unit conversions
# MCP server mode (stdio JSON-RPC)
MCP client setup
Render a read-only, absolute-path registration instruction for a client-owned stdio process:
Update an installed binary with eggsact update. It verifies the crates.io
stable version, GitHub asset checksum, and candidate --version before
replacement. Existing MCP sessions continue until their owning client
reconnects. Eggsact does not install a daemon or edit client configuration.
Library
use ;
// Natural language
let = run.unwrap;
assert_eq!;
// Direct math
let = evaluate.unwrap;
assert_eq!;
In-Process Agent API
use ;
let registry = default;
let ctx = agent_default;
let response = registry.call_json_with_execution_context.unwrap;
assert!;
Supported Platforms
| Tier | Platform | Status |
|---|---|---|
| 1 | Ubuntu latest (x86_64) | Full CI gate |
| 2 | Windows latest (x86_64) | Compile check |
| 2 | macOS latest (ARM64) | Compile check |
Documentation
| Topic | Link |
|---|---|
| CLI usage | docs/cli.md |
| Installation, updates, and client setup | docs/installation.md |
| Library API | docs/library-api.md |
| MCP tool reference (86 tools) | docs/mcp-tools.md |
| Math features, functions, constants, units | docs/math-features.md |
| Architecture overview | architecture/overview.md |
| Calculator core | architecture/calculator.md |
| MCP server internals | architecture/mcp-server.md |
| Agent API deep dive | architecture/agent-api.md |
| Preflight wrappers | architecture/preflight.md |
| Machine codes | architecture/machine-codes.md |
| Profiles and audiences | architecture/registry-profiles.md |
| Text processing library | architecture/text-library.md |
| Budget and concurrency | architecture/budget-concurrency.md |
| Compatibility policy | docs/compatibility-policy.md |
| Verification doctrine | docs/verification.md |
| Testing patterns | architecture/testing.md |
| Contributing | docs/contributing.md |
| Fuzzing | docs/fuzzing.md |
| Release process | docs/release.md |
Key Gotchas
^is XOR, not exponentiation. Use**for power. Matches Python.gmeans gram in unit expressions. Usegravityfor standard gravity.serde_jsonusespreserve_order— key order is intentional in serialized JSON.- Network, encoding, datetime, and cron utilities are deterministic and use no system/network state; temporal conversions accept fixed offsets only. IPv6 CIDR counts are exact decimal powers of two, mapped-IPv6 metadata is limited to
::ffff:0:0/96, and cron DOM/DOW matching follows Vixie/Cronie star syntax (either field starting with*, including*/nsteps, requires both fields to match; otherwise either may match; explicit full ranges are not star syntax).
Relationship to Python eggcalc
eggsact is a Rust reimplementation of the Python eggcalc project. The two projects are functionally equivalent for core math, unit conversion, and text processing operations. See docs/parity.md for known differences.
License
MIT -- see LICENSE for details.