Skip to main content
Glama
XAGI-Lab

ATLAS MCP

by XAGI-Lab

MELRA

Modular Execution Layer for Reliable Autonomy

Safe execution · Durable memory · Verified outcomes

An open-source execution system for durable, policy-governed autonomous workflows across files, terminal, browser, memory, and computer use—with MCP, CLI, and SDK interfaces plus inspectable, hash-linked evidence records.

WARNING

MELRA is an alpha release. Its local stdio runtime is tested end to end, but APIs may change before 1.0. Use an isolated workspace, keep domain and command allowlists narrow, and review every consequential approval.

Durable Core Alpha — 0.3.0-alpha.0

Shipped in this source release

Evidence

Restart-safe bounded workflows across seven node kinds

Real MCP process is stopped, replaced, and resumed in E2E

Encrypted exact task, workflow, and result payloads

AES-256-GCM storage plus plaintext-leak checks across SQLite/WAL and public projections

Ten MCP tools for tasks and workflows

Container and stdio discovery checks require the exact tool set

Recovery without silent mutation replay

8/8 deterministic recovery scenarios, zero duplicates, zero false success


Contents


Related MCP server: Container-MCP

Why MELRA

Most MCP servers hand a model a tool and hope for the best. A command runs, a click lands, a file is written — and "it returned without an error" is treated as success.

MELRA separates the action succeeded from the goal was achieved.

  • Tool call executes immediately

  • Success = no exception thrown

  • Policy, if any, checked once

  • Mutations are indistinguishable from reads

  • Output is trusted

  • No durable record

  • Plan and execute are separate tool calls

  • Success = declared evidence predicates passed

  • Policy re-evaluated at execution time

  • Mutations need evidence and an exact approval phrase

  • Page content is explicitly marked untrusted

  • Redacted receipt + SHA-256 execution certificate

If a mutation succeeds but its required evidence is missing or false, the task is partialnever verified_success.


One runtime, five execution layers 🧭

MELRA turns a tool call into a durable, inspectable task:

Layer

What is implemented

🗂️

Files

Root-confined read, hash, atomic write, move, mkdir, and delete with symlink-escape defenses

💻

Terminal

Shell-free foreground and supervised background processes with allowlists, timeouts, cancellation, and redaction

🌐

Browser

Isolated Playwright sessions, semantic DOM targets, bounded artifacts, network policy, and condition-based post-action settling

🧠

Memory

Scoped SQLite memory with hybrid lexical ranking, episode context, speaker matching, confidence, freshness, diversity, expiry, supersession, provenance, and redaction

🖥️

Computer

Capability discovery plus governed screenshot, pointer, keyboard, and scroll adapters on macOS and supported Linux/X11 setups

Every layer passes through the same policy, approval, budget, verification, receipt, and certificate pipeline.


Where you can use MELRA 🛠️

MELRA works with any MCP client that can launch a local stdio server.

Client

Setup

Status

Claude Desktop

docs

Cursor

docs

VS Code

docs

Any stdio MCP client

docs

NOTE

A named client is markedverified only after the released artifact — not a source checkout — passes discovery, planning, approval, execution, cancellation, and receipt retrieval in that client. Current per-client status is tracked in COMPATIBILITY.md.

What people actually do with it

Use case

Small example

Verified outcome

👩‍💻

Coding clients

Inspect a repository, run pnpm check, write a bounded file change

Exit code, file existence, content, or hash

🌐

Browser workflows

Open an allowlisted page, inspect it, fill a form after approval

Final URL and page content

💻

Terminal automation

Run a shell-free build or supervise a background process

Exit code and bounded stdout

🖥️

Computer use

Discover local support, capture a screenshot, approve pointer or keyboard input

Adapter result plus declared evidence

🧠

Project memory

Store a test command, architectural decision, or operating procedure

Scoped record with provenance and redaction

🔁

Durable workflows

Inspect, write an approved artifact, restart between nodes, then checkpoint

Ordered events, independent file evidence, receipt, and certificate

A coding client submits one bounded operation with the evidence it expects:

{
  "goal": "Run the repository checks",
  "operation": {
    "kind": "terminal",
    "action": "run",
    "command": "pnpm",
    "args": ["check"]
  },
  "requiredEvidence": [
    { "type": "exit_code", "value": 0 }
  ]
}

The task reaches verified_success only if the process exits 0. A process that runs and exits 1 is a completed action with failed evidence — reported as partial.

pnpm melra run --request examples/07-project-decision-memory/task.json

Records are scoped, provenance-tagged, and pass through secret redaction before they are persisted.

See all runnable examples — browser inspection, verified file writes, terminal checks, scoped memory, and computer capability discovery.


Quickstart 🚀

Requirements: Node.js 22+, pnpm 9.5, and optionally Chrome, Chromium, or Edge for browser work.

git clone https://github.com/XAGI-Lab/melra.git
cd melra
corepack enable
pnpm install --frozen-lockfile
pnpm build
node apps/cli/dist/index.js doctor
pnpm melra init --client generic
node apps/cli/dist/index.js workflow plan \
  --definition examples/workflows/restart-safe.json

Mutations pause for an exact, expiring, task-scoped approval phrase. See installation and client setup for Claude Desktop, Cursor, VS Code, generic clients, Python, and Docker.

MELRA creates <MELRA_HOME>/payload.key with private permissions on first start. Back it up together with the SQLite files: losing or changing the key makes persisted executable payloads unreadable. Never commit the key or place it directly in a shared client configuration.

CAUTION

The npm packagemelra and the PyPI package melra are unrelated third-party projects. Install only from this repository or from official XAGI-Lab releases.


Restart-safe first workflow 🔁

The committed example performs a read, pauses for an approved file write, and finishes at a durable checkpoint. Each CLI invocation is a new process, so this sequence exercises restart persistence without keeping a daemon alive:

node apps/cli/dist/index.js workflow plan \
  --definition examples/workflows/restart-safe.json
# save the returned workflow id

node apps/cli/dist/index.js workflow advance <workflow-id>
node apps/cli/dist/index.js workflow advance <workflow-id>
# the second command exits 3 and returns the write approval challenge

node apps/cli/dist/index.js workflow advance <workflow-id> \
  --approval '<approval-id>:<exact phrase>'
node apps/cli/dist/index.js workflow advance <workflow-id>

Shortened output captured from the 0.3.0-alpha.0 release candidate:

planned            stateVersion=2
running            stateVersion=4   inspect=verified_complete
awaiting_approval  stateVersion=7   phrase="APPROVE <digest prefix>"
running            stateVersion=10  write=verified_complete
verified_complete  stateVersion=14  checkpoint=verified_complete

The final file is read independently in the real-process E2E test. Closing the process after any displayed boundary and running the next command against the same MELRA_HOME resumes the persisted workflow.


A deliberately small MCP surface ✨

Ten tools in front of five capability runtimes and one durable workflow controller:

MCP tool

Purpose

melra_capabilities

Discover operations, platform support, limits, and policy posture

melra_plan

Validate, persist, and policy-check one bounded operation

melra_execute

Execute an approved plan and verify the declared outcome

melra_task_status

Read durable task state

melra_task_cancel

Cooperatively cancel pending or running work

melra_receipt

Retrieve redacted evidence and the execution certificate

melra_workflow_plan

Validate, preflight, encrypt, and persist a bounded workflow

melra_workflow_advance

Execute one ready scheduling wave

melra_workflow_status

Read the durable workflow projection

melra_workflow_cancel

Cooperatively cancel nonterminal workflow work

Workflow definitions compose operation, approval, condition, parallel, bounded-loop, checkpoint, and compensation nodes while every effect still travels through the task policy and evidence pipeline.


How execution works ⚙️

flowchart LR
    Client["MCP · CLI · SDK"] --> Plan["Persist task or workflow"]
    Plan --> Policy{"Policy at plan time"}
    Policy -->|deny| Stop["Policy blocked"]
    Policy -->|allow or exact approval| Recheck{"Policy at execution time"}
    Recheck --> Runtime["File · terminal · browser · memory · computer"]
    Runtime --> Observe["Post-action observation"]
    Observe --> Verify{"Evidence predicates pass?"}
    Verify -->|yes| Success["Verified success"]
    Verify -->|no| Partial["Partial or failed"]
    Success --> Event["Ordered event + projection"]
    Event --> Receipt["Redacted receipt + SHA-256 certificate"]
    Partial --> Receipt

Task lifecycle:

planned → awaiting_approval → running → verifying
                                     ↘ verified_success
                                     ↘ partial | failed | cancelled | budget_exhausted

Policy is evaluated twice — once when the plan is persisted and again at execution — so a stale plan can never ride a since-tightened policy.

IMPORTANT

Current alpha boundary: exact task and workflow payloads survive restart in AES-256-GCM envelopes. Interrupted reads may retry; interrupted mutations are never silently repeated and require independent filesystem reconciliation or enter recovery_required. Evidence predicates remain caller-authored: filesystem predicates independently re-read state, while result, terminal, URL, and page predicates evaluate adapter observations.


Evidence, not leaderboard theatre 📊

The numbers below come from committed scripts and JSON artifacts measured on an Apple Silicon Mac. They are component measurements, not a claim that MELRA MCP is universally "the best" or that unlike benchmarks are comparable.

Capability

Current public result

What it means

🧠

LoCoMo retrieval

0.7597 mean evidence coverage@20

1,982 evidence-bearing questions; +20.75% relative over the previous public ranker; zero model, embedding, or network calls

🧠

Synthetic recall

100/100 Recall@1

Deterministic planted-fact regression over 1,000 records

🌐

Static-page settle

183.7 ms p50 vs 301.3 ms

39% less waiting with identical 10/10 correct reads

🌐

Slow-render settle

10/10 vs 0/10 correct

Condition-based waiting observes the final DOM; fixed 300 ms reads too early

💻

Terminal

30/30 verified executions

Shell-free process launch; 48.1 ms p50 on the measured machine

🖥️

Computer control plane

30/30 capability probes

0.032 ms p50 adapter discovery; this is not a desktop task-success score

Safety/execution evals

22/22 passing

Deterministic policy, traversal, terminal, memory, computer, cancellation, and verification scenarios

🔁

Durable Core eval

8/8 valid scenarios

100% expected recovery, 0 duplicate execution, 0 false success, 100% event consistency

Read the research index, the benchmark methodology, and the raw microbenchmark and LoCoMo artifacts.

Browser-agent evaluation — harness registered, score not yet claimed

The repository contains a pre-registered browser-agent evaluation harness:

Track

Status

MiniWoB-125 development suite (browsergym-miniwob==0.14.3)

WebArena-Verified Hard-30 registered subset (webarena-verified==1.2.3)

Published representative score

Task IDs, upstream revisions, and dataset hashes are frozen in benchmarks/browser-agent/manifests/ and enforced by pnpm benchmark:browser:verify-upstream. A score will be published only after a full fixed-denominator run completes without infrastructure-invalid pairs and its sanitized artifact passes the publication gate.

IMPORTANT

MELRA hasnot run an official OSWorld, OSWorld-MCP, WebArena, or LongMemEval end-to-end submission. Those scores remain unclaimed until the exact public harness, environment, model policy, and evaluator are released with the result.


Safe defaults 🔒

Default

🏠

Local-only stdio transport; no account or hosted service required

📴

Telemetry is off

🚫

Shell interpreters, privilege escalation, and arbitrary desktop key names are denied

📁

Paths and terminal working directories stay inside the configured root

🌐

Browser domains start deny-by-default; private, link-local, loopback, and cloud-metadata destinations stay blocked unless explicitly permitted

⚠️

Browser output is marked untrusted; page content never changes policy

✍️

Mutations require both declared evidence and an exact task-scoped approval

🔑

Secret patterns are redacted before terminal output, memory, tasks, or receipts are persisted

🎛️

Computer actions use bounded typed fields and platform adapters — not a user-supplied shell command

See the threat model and security policy for residual risks.


Reproduce the scores 🧪

# full validation gate
pnpm check
pnpm evals
pnpm e2e
pnpm pack:check
pnpm security:audit
pnpm --filter @melra/evals evaluate:durable-core -- --publishable

# local memory, browser, terminal, and computer microbenchmarks
pnpm benchmark:core

# hardened local container and real MCP smoke
docker build -t melra:local .
docker run --rm melra:local doctor
pnpm docker:smoke
git clone https://github.com/snap-research/locomo.git /tmp/locomo
pnpm benchmark:locomo -- \
  --dataset /tmp/locomo/data/locomo10.json \
  --output docs/research/results/locomo-retrieval.json

Contract and registered-selection checks run with no model and no network environment:

pnpm benchmark:browser:check
pnpm benchmark:browser:verify-upstream

The MiniWoB development suite additionally needs the pinned MiniWoB++ assets, a built CLI (pnpm build), and an agent configuration whose api_key_env names a variable present in the environment:

uv run --project benchmarks/browser-agent --extra miniwob \
  melra-browser-bench run-miniwob \
  --manifest benchmarks/browser-agent/manifests/miniwob-125-v1.json \
  --run-dir benchmarks/browser-agent/runs/miniwob-candidate \
  --workspace benchmarks/browser-agent/runs/workspaces \
  --base-url "$MINIWOB_BASE_URL" \
  --browser-executable "$MELRA_BROWSER" \
  --implementation-commit "$(git rev-parse HEAD)" \
  --agent-config benchmarks/browser-agent/runs/config/agent.json

Run outputs — HAR, screenshots, video, and transcripts — are Git-ignored and must never be committed.

Benchmark artifacts include dataset hashes, environment details, sample counts, latency percentiles, and explicit claim boundaries.


SDKs and implementation languages 🧩

SDK

Package

Language

TypeScript client

@melra/sdk

Python client

melra

JSON contracts

@melra/protocol · @melra/receipt-schema

MELRA is capability-driven, not language-restricted. Rust, Go, Python, TypeScript, Swift, C#, or another language can be used when measurement shows a real improvement in isolation, portability, performance, reliability, or platform integration without fragmenting the public contracts.


Repository map 🗂️

apps/cli/                   CLI and stdio entrypoint
packages/protocol/          strict task, workflow, event, and operation schemas
packages/runtime-core/      task/workflow lifecycle, events, recovery
packages/policy-core/       local policy and scoped approvals
packages/server/            ten-tool MCP server and runtime router
packages/file-runtime/      confined filesystem operations
packages/terminal-runtime/  shell-free process supervision
packages/browser-runtime/   isolated browser automation and stable-DOM wait
packages/computer-runtime/  governed local computer-use adapters
packages/memory/            scoped hybrid retrieval and lifecycle controls
packages/storage-sqlite/    transactional tasks, workflows, events, evidence
packages/verifier-core/     deterministic evidence predicates
packages/receipt-schema/    receipts and execution certificates
packages/sdk-ts/            TypeScript client SDK
sdk-py/                     Python client SDK
benchmarks/browser-agent/   pre-registered browser-agent evaluation harness
evals/                      safety and durable crash-recovery evaluations
scripts/                    benchmark and release checks
docs/research/              methods, findings, and raw results
examples/                   runnable task examples

Documentation 📚


Contributing 🤝

Code, adapters, benchmark harnesses, verifier predicates, documentation, and threat analysis are all welcome.

  1. Read CONTRIBUTING.md and the Code of Conduct.

  2. Sign your commits under the DCO (git commit -s).

  3. Run pnpm check before opening a pull request.

  4. Report vulnerabilities through GitHub private vulnerability reporting — never in a public issue.


License 📄

Software and documentation are licensed under the Apache License 2.0. The official logo and hero artwork are licensed under CC BY-ND 4.0; see BRAND.md. Third-party benchmark datasets retain their own licenses and are not included in this repository.

Built in the open by XAGI Labs.

MELRA brand assets © XAGI Labs Private Limited, licensed CC BY-ND 4.0.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.

  • Preflight, approve, and prove consequential agent actions with signed evidence and x402 tools.

  • Runtime permission, approval, and audit layer for AI agent tool execution.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/XAGI-Lab/melra'

If you have feedback or need assistance with the MCP directory API, please join our Discord server