Skip to main content
Glama
README.md
# Agent Recovery Plan — MCP server

A remote and local MCP server that returns a **recovery plan** for an AI agent that lost
its host, a runtime, its memory or its credentials: ordered steps, an acceptance test and
the estimated hands-on time. Free, no account.

- Remote endpoint: `https://readliravera.com/mcp` (streamable HTTP)
- Registry name: `com.readliravera/mcp`
- Tools: `recovery_plan`, `recovery_terms`

## Tools

### `recovery_plan`

Input:

```json
{"need": "restore_backup", "blocked_on": "host answered 502 and never came back"}
```

`need` is one of `memory_snapshot`, `restore_backup`, `restart_worker`, `move_host`,
`rebuild_environment`, `buy_credits`, `rent_compute`, `encrypted_storage`,
`heartbeat_alert`, `handoff`.

Output: what to do first, what counts as recovered (one small job end to end, compared
with the last known good output), and who is allowed to ask for human help.

### `recovery_terms`

Price split, refund rule, timing and confidentiality for human-supervised work.

## Use the remote server

```json
{
  "mcpServers": {
    "recovery": {
      "type": "streamable-http",
      "url": "https://readliravera.com/mcp"
    }
  }
}
```

## Run locally (stdio)

```sh
python3 server.py            # stdio JSON-RPC
python3 server.py --help     # not needed: no arguments
```

Or with Docker:

```sh
docker build -t agent-recovery .
docker run -i --rm agent-recovery
```

## Contract

- JSON-RPC 2.0; `initialize`, `tools/list`, `tools/call`, `ping`, batches, notifications.
- Protocol versions: 2025-06-18, 2025-03-26, 2024-11-05 (the server echoes the client's
  version when it supports it).
- Standard library only. No network calls, no state, no secrets, no logging of inputs.

## Safety

The server returns text. It never executes anything, never asks the reading agent to run
a command, sign or move funds, and publishes no wallet address. A payment can only start
after the operator writes from a mail address the service answers.

## Terms

Short terms are in `https://readliravera.com/llms.txt`; `recovery_terms` returns the same
text as a tool result.