fragletc
Run code fragments in 90+ language containers. Ships with built-in MCP server.
fragletc runs code fragments in isolated containers across 90+ languages. It ships as a single binary with built-in MCP server support for AI tool integration.
Prerequisites
Docker is required. fragletc uses Docker to run code in isolated containers.
| Platform | Install Docker |
|---|---|
| macOS | Docker Desktop for Mac |
| Linux | Docker Engine |
| Windows | Docker Desktop for Windows (WSL 2 backend) |
Verify Docker is working:
docker run --rm hello-worldQuick Install
curl -fsSL https://raw.githubusercontent.com/ofthemachine/fraglet/main/install.sh | shThis downloads the latest release for your platform, verifies the checksum, and installs to ~/.local/bin.
To install to a different location:
FRAGLETC_INSTALL_DIR=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/ofthemachine/fraglet/main/install.sh | shVerify
fragletc --help
fragletc --vein=python -c 'print("hello from fraglet")'MCP Server Setup
fragletc includes a built-in MCP (Model Context Protocol) server. Run it with:
fragletc mcpThis starts the server over stdio, compatible with any MCP client.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"fraglet": {
"command": "fragletc",
"args": ["mcp"]
}
}
}Restart Claude Desktop after saving.
Cursor
One-click install:
Manual setup — add to .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"fraglet": {
"command": "fragletc",
"args": ["mcp"]
}
}
}MCP Tools
The MCP server exposes two tools:
| Tool | Description |
|---|---|
run |
Execute code snippets in any supported language container |
language_help |
Get the authoring guide for a language (syntax, libraries, patterns) |
Manual Install
Download the binary for your platform from GitHub Releases, then:
chmod +x fragletc-*
mv fragletc-* /usr/local/bin/fragletcBuild from Source
Requires Go 1.24+:
git clone https://github.com/ofthemachine/fraglet.git
cd fraglet
make installOr directly:
go install github.com/ofthemachine/fraglet/cli@latestTroubleshooting
command not found: fragletc
The install directory is not in your PATH. Add it:
export PATH="$HOME/.local/bin:$PATH"Add this line to your ~/.zshrc, ~/.bashrc, or equivalent.
Docker connection errors
Ensure Docker is running:
docker infoOn Linux, your user may need to be in the docker group:
sudo usermod -aG docker $USER
# Then log out and back inContainer image pull failures
If you're behind a firewall or proxy, Docker may not be able to pull images. Pre-pull a vein to test:
fragletc refresh pythonMCP server not connecting
- Verify the binary path is absolute or in PATH
- Check the JSON syntax in your MCP config file
- Restart your MCP client (Claude Desktop / Cursor) after config changes
- Test the server manually:
echo '{}' | fragletc mcpshould produce JSON-RPC output