revly-mcp-server
v0.4.0MCP server exposing Revly's local AI Agent Gateway to MCP-compatible AI tools (Claude Code, Codex, Gemini CLI, etc.) - runs locally and only ever talks to your…
MCP server that connects AI coding tools (Claude Code, Codex, Gemini CLI, etc.) directly to Revly's local AI Agent Gateway - so an AI assistant can register a project, create snapshots, cut checkpoints and releases, manage branches, push/pull shared-folder contributions, read and change app-wide settings, run the project, and create a backup, without leaving your editor. This runs entirely on your own machine. It only ever talks to your own Revly desktop app at http://127.0.0.1:4317 - none of your project's code or history passes through any external server.
Summary extracted from the README.
@jencube/revly-mcp-server
MCP server that connects AI coding tools (Claude Code, Codex, Gemini CLI, etc.) directly to Revly's local AI Agent Gateway - so an AI assistant can register a project, create snapshots, cut checkpoints and releases, manage branches, push/pull shared-folder contributions, read and change app-wide settings, run the project, and create a backup, without leaving your editor.
This runs entirely on your own machine. It only ever talks to your own Revly desktop app at
http://127.0.0.1:4317 - none of your project's code or history passes through any external server.
Install
With Claude Code:
claude mcp add --transport stdio revly -- npx -y @jencube/revly-mcp-server
Or add it manually to any MCP-compatible client's config:
{
"mcpServers": {
"revly": {
"command": "npx",
"args": ["-y", "@jencube/revly-mcp-server"]
}
}
}
Usage
- Set up - just ask your AI assistant to set up Revly here. It should ask you whether to
watch the current folder (or which folder to use instead), then call
revly_projectwith that choice - this only remembers it, nothing is created yet. - Connect - the assistant calls
revly_connectwith no token. This asks the Revly desktop app to create the project (if it isn't tracked yet) and opens a pending connection request, giving the assistant a short pairing code to relay to you. - Approve - open the Revly desktop app -> the project -> AI Sessions, find the pending
request matching that pairing code, choose which permissions to grant, and copy the token it
reveals (starts with
rvl_, only shown once). You always choose the permissions yourself - the agent can't grant itself any. - Finish connecting - paste the token into your AI chat. It calls
revly_connectagain with that token, and reports back exactly which permissions it was granted. - Work normally - from here the AI can use any of the tools below, gated by whatever permissions you granted in step 3. It can never grant itself more permissions, and it can never trigger a file/code deployment or a database schema deploy - both always require a human working directly in the desktop app.
The connection can be to a project's root, or to one of its branch dashboards (a branch checked out into its own folder) - sandboxed to just that branch's own working copy either way. Deployment Center, Database, Backups, and full contribution management (everything except pushing a branch) always require the connection to be the project's root, whichever one it is.
Prefer to set things up yourself instead? Skip revly_project/revly_connect's pairing flow and
open the Revly desktop app -> the project -> AI Sessions -> Connect Agent directly to
create a token up front, then give it to your assistant to use with revly_connect.
Call revly_workflow_guide at any time for guidance on when to checkpoint, how to version a
release, and deployment best practices.
The revly skill (optional, recommended)
skills/revly/SKILL.md teaches a Claude Code-style agent the upkeep habits around these tools:
rename auto-captured snapshots in the background after each piece of work, keep its own
throwaway test/debug files out of Revly's history (and so out of production) through .gitignore,
create a release-candidate checkpoint at real milestones, and tell you how to deploy (production and, if
needed, database) yourself. It never deploys and never creates releases. Install it by copying the
folder into .claude/skills/revly/ (per project) or ~/.claude/skills/revly/ (all projects); for
other agents, paste its contents into their instructions file.
Requirements
- Node.js >= 18
- The Revly desktop app running on the same machine
Tools
Connection
| Tool | Description |
|---|---|
revly_project |
Choose which folder to watch (no token required, nothing created yet). |
revly_connect |
With no token, trigger a connection request (pairing code); with a token, connect. Root or a branch dashboard. |
revly_whoami |
Show the current connection and granted permissions. |
Status & history
| Tool | Description |
|---|---|
revly_status |
Current branch and pending-change count. |
revly_changes |
Files changed since the last snapshot. |
revly_list_snapshots / revly_create_snapshot |
List or create snapshots. |
revly_list_checkpoints / revly_create_checkpoint |
List or create checkpoints. |
revly_next_release_version |
Read-only: the project's Release versioning format and the suggested next version(s). |
revly_create_release |
Turn a resolved checkpoint into a draft release (named by the project's versioning format unless you pass a version). |
Branches
| Tool | Description |
|---|---|
revly_list_branches / revly_branch |
List or create branches. |
revly_switch_branch |
Check out a different branch (auto-snapshots first). |
revly_merge |
Merge one branch into another; aborts cleanly on a real conflict. |
revly_merge_status |
Check whether a merge conflict is currently unresolved. |
revly_delete_branch |
Force-delete a local branch ref. |
Config files
| Tool | Description |
|---|---|
revly_config_status |
Read-only: is a config file set, does its .example exist and match, is the real file git-ignored. Never returns contents. |
Shared-folder contributions (a GitHub-style PR workflow with no server - see revly_workflow_guide)
| Tool | Description |
|---|---|
revly_list_contributions |
List available-to-pull and already-pulled-but-unresolved contributions. Root only. |
revly_push_contribution |
Push a branch to the shared folder; runs a secret scan first. Root or a branch dashboard. |
revly_preview_contribution |
Preview a contribution's changed files before pulling. Root only. |
revly_pull_contribution |
Pull a contribution into a local branch. Root only. |
revly_merge_contribution / revly_reject_contribution |
Merge or reject a pulled contribution. Root only. |
Settings (app-wide, not project-scoped)
| Tool | Description |
|---|---|
revly_get_settings |
Read display name, editor path, snapshot naming, and read-only Cloud & Team status. |
revly_set_display_name |
Change the checkpoint/contribution author name. |
revly_set_editor_path |
Change or clear the "Open in Editor" external editor. |
revly_set_snapshot_naming |
Change the auto-snapshot message template/date format. |
revly_set_name_limit |
Change the max length of snapshot descriptions and checkpoint titles (default 72). |
Database schema (read-only - a schema deploy itself always requires a human)
| Tool | Description |
|---|---|
revly_data_watch_status / revly_start_data_watch / revly_stop_data_watch |
See, start and stop watching tables of the connected database for data changes (INSERT/UPDATE/DELETE). Root only. |
revly_list_data_changes / revly_report_data_changes |
Read captured changes (with row values), or report SQL you ran against an unwatched table. Deploying, discarding and restoring them is human-only. Root only. |
revly_check_schema |
Force an immediate check of the connected local database for structure changes. Root only. |
revly_preview_schema_deploy |
Preview the SQL a schema deploy would run against a target database. Root only. |
Other actions
| Tool | Description |
|---|---|
revly_run |
Run the project - opens its preview URL, or a terminal with its run command. |
revly_create_backup |
Back up the project's full git history to its configured destination now, as an encrypted .revbak that never includes a database. Fails until the developer sets up backup protection in the Revly app; agents cannot make collaborator backups, touch backup keys or phrases, redeem Collaborator Codes, restore, run restore scripts or write config values. Root only. |
revly_workflow_guide |
Guidance on checkpoints, versioning, and deployment. |
"Root only" tools refuse with a clear error if the connection is to a branch dashboard instead of the project's root.
License
MIT © Jencube Limited