frsync-mud
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@frsync-mudShow me the contents of /w/arion/rooms/forest01.c"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FRsync
A file transfer and immort editor system for Final Realms: Legacy.
FRsync lets builders move files between their own computer and the MUD over the
normal creator login — no FTP required. It works because FR's creator shell
exposes exec (run LPC) and the write_file / read_bytes efuns; FRsync logs
in as you and pushes/pulls files straight over that connection. The MUD's own
permission system (valid_write) decides what you may touch — exactly as it
does in-game — so this works for any builder, for their /w/<name>/ home and
any /d/<zone>/ they're granted.
It comes in two parts:
frsync.py— a zero-dependency command-line tool (interactive shell + scriptablepush/pull/status/mirror/watch).frsync_mcp.py— an MCP server that exposes the MUD to Claude Code (or any MCP client) as tools, so an AI agent can read a room, fix a bug, write it back, reload, and test.
Requirements
Python 3.8+ (the CLI uses only the standard library).
A creator/builder account on Final Realms: Legacy.
For the MCP server only:
pip install mcp keyring(keyringprovides cross-platform secure credential storage).
The default server is fr.hyssing.net:4010; override with --host / --port
(CLI) or FRHOST / FRPORT (MCP).
Related MCP server: MCP ShellKeeper
Get started
git clone <repo-url> frsync
cd frsyncNothing to build — frsync.py runs as-is. Everything below is driven through
the Makefile; run make help to see every target.
Part 1 — The command-line tool
Interactive shell
make startYou'll be prompted for your creator name and password, then dropped into an
interactive shell that behaves just like telnet — every normal MUD and
creator command goes straight to the server (look, ed myroom.c,
update myroom.c, ls /w/you, …). On top of that you get local /commands
for moving files:
Command | Does |
| send local file(s) → the remote folder |
| fetch remote file(s) → this computer |
| show your current local + remote folders |
| change the local folder (downloads land here) |
| change the remote folder (transfers use this) |
| print / list the local folder |
| full command list / leave |
/upload and /download take multiple files and glob patterns —
space-separated names, or wildcards like *.c, cloud*.c, *.*. Uploads glob
against your local folder; downloads glob against the remote folder. For example
/upload *.c or /download room*.c a.c b.c.
A multi-file transfer runs through the files one at a time, advancing a single overall progress bar (total bytes across the whole batch, and which file is moving) — so you watch it climb as you go:
[████████████░░░░░░░░░░] 55% (2/3) workroom2.c 5.0K/9.0KIf a file would overwrite an existing destination, it asks right then:
workroom.c already exists — overwrite? [y]es [n]o [a]ll-yes [s]kip-all [q]uity / n — this file
a — yes to all remaining
s — no to all remaining (skip every existing file)
q — quit the transfer now
(The scriptable push/pull already compare and confirm separately.)
Downloaded files land in ./downloads by default (created automatically,
relative to where you launched), so they don't clutter your working folder.
Change it any time with /lcd <dir>, or start elsewhere with
make start DIR=./myarea.
Scriptable commands
For automation and one-shot transfers, call the subcommands directly. Each takes
a local path and a server path; either can be a single file or a
directory (directories sync recursively). Every push/pull is verified
(size + checksum) on both ends.
Command | Direction | What it does |
| compare | Show what differs between local and MUD. Changes nothing. |
| local → MUD | Upload, verified. Asks before writing. |
| MUD → local | Download, verified. |
| local → MUD (live) | Auto-upload files as you save/drop them into a folder. |
| MUD → local (bulk) | Download whole subtrees for a local working copy. Resumable. |
# compare a local area against the MUD, change nothing
python3 frsync.py status ./drifting_forest /w/<creator>/drifting_forest
# upload an area (or a single file); --dry-run to preview, --delete to prune
python3 frsync.py push ./drifting_forest /w/<creator>/drifting_forest
# download an area
python3 frsync.py pull /w/<creator>/drifting_forest ./backup
# bulk-download whole server subtrees into ./MUD (resumable — re-run to continue)
python3 frsync.py mirror ./MUD /std /d /w/<creator>
# "synced folder": auto-push a local dir as files change
python3 frsync.py watch ./myarea /w/<creator>/myareaTypical workflow:
python3 frsync.py pull /w/<creator>/myarea ./myarea # get the current version
# …edit files locally in your editor…
python3 frsync.py status ./myarea /w/<creator>/myarea # check what changed
python3 frsync.py push ./myarea /w/<creator>/myarea # ship it (verified)…or just leave watch running and every save uploads automatically.
Flags:
Flag | Meaning |
| Creator name (skip the prompt). |
| Only these file types (directory syncs). |
| Show what would happen; change nothing. |
| Don't ask for confirmation (for scripts). |
| push only: remove server files missing locally (off by default). |
| mirror only: include old |
| mirror only: re-list the tree instead of using the cached manifest. |
Run python3 frsync.py --help for the complete list.
The same operations are wrapped as Make targets:
make mirror-code CHAR=yourname # mirror the standard mudlib roots
make status DIR=./myarea REMOTE=/w/you/myarea
make watch DIR=./myarea REMOTE=/w/you/myareaInstall on your PATH (optional)
make install # installs `frsync` to /usr/local/bin (set PREFIX= to change)
frsync --help
make uninstallfrsync.py is a single standard-library file with no dependencies — you can
also just copy or paste it anywhere and run it.
Part 2 — The MCP server for Claude Code
This exposes the MUD to an AI agent as tools: mud_ls, mud_read,
mud_write, mud_download, mud_upload, mud_command, mud_exec,
mud_whoami. (There is deliberately no delete tool — the server never
removes server files.)
1. Install the dependencies
make mcp-deps # pip install mcp
pip install keyring # for secure credential storage2. Register the server with Claude Code
make mcp-registerThis registers the server without any credentials in the config:
claude mcp add frsync-mud -- python3 /path/to/frsync_mcp.py3. Store your credentials securely (one time)
make mcp-loginYou'll be prompted for your creator name and password (hidden — no echo). They're saved to your operating system's secure secret store, never to any config file. Then restart the frsync-mud MCP server for it to take effect.
That's it — the agent now has the mud_* tools available.
Credentials & security
Credentials are stored in your OS secret store via the cross-platform
keyring package:
OS | Where it's stored |
macOS | login Keychain |
Windows | Credential Locker |
Linux | Secret Service (libsecret / GNOME Keyring / KWallet) |
Manage them with:
make mcp-login # enter / update credentials
make mcp-status # show whether credentials are configured (no secrets shown)
make mcp-reset # forget the stored credentials(or call python3 frsync_mcp.py --login | --status | --reset directly.)
Resolution order at connect time:
FRCHAR + FRPASS environment variables (an escape hatch for CI) →
the OS secret store → otherwise the tools fail with a message telling you to
run --login. No password is ever written to a config file in plaintext,
and the interactive CLI tools read the password with no echo, so it never
passes through the agent or model context.
The command-line tool (
frsync.py) prompts for credentials on each run (or reads$FRPASS/--charif you set them); only the long-running MCP server uses the secret store.
Troubleshooting
Only one session per creator at a time. A creator can only be connected once. If you're already logged in elsewhere (e.g. the MCP server holds the session, or you're in the game normally), FRsync detects it and uses FR's built-in takeover: the interactive shell asks " is already logged in elsewhere. Throw out that session and take over here? [Y/n]", and the MCP server reclaims the session automatically. Note this means the two can play tug-of-war — use one at a time.
Restart the MCP server after
make mcp-login/mcp-reset. A running server keeps the old credentials until it's respawned."No frsync credentials configured." Run
make mcp-login, then restart the server.Editing
frsync.pydoesn't change MCP behavior? The MCP server loads the engine once at startup — restart it after editing.Syntax-check the tools any time with
make check.
How it works (in brief)
FRsync speaks the creator shell's exec channel rather than a file-transfer
protocol. Reads use read_bytes (chunked, since it's capped per call); writes
use write_file and are verified after the fact with a length + CRC check.
Everything you can do is bounded by your in-game permissions — FRsync grants no
access you don't already have as a builder.
A few things worth knowing:
Nothing on the server is deleted unless you explicitly pass
push --delete.Every
push/pullis verified by comparing size + checksum on both ends.mirroris resumable — stop any time and re-run; it skips what's already downloaded (the file list is cached in a.frmanifest_*.tsv).Read-protected dirs (player accounts,
/secure, server scripts) are skipped cleanly and listed in.frsync_skipped.txt.It auto-reconnects if the MUD drops the link, and streams file contents in safe chunks (the driver drops very long input lines).
Built by Malric and Silbago for Final Realms: Legacy. For questions, contact the Final Realms admin.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Espen-PublAI/frsync'
If you have feedback or need assistance with the MCP directory API, please join our Discord server