mcp
Start the Relizy MCP server for AI coding agents, and set up the agents of a project with its rules and its MCP server.
What the server gives to your agents: AI Agents (MCP).
Usage
relizy mcp [serve] [--cwd <dir>] # Start the MCP server on stdio
relizy mcp init [options] # Configure the AI agents of the project
relizy mcp update # Update the rules already written, when they changedrelizy mcp
Starts the MCP server on stdio (serve is the default subcommand). Your AI agent runs it, you do not: stdout only carries the protocol, without banner nor log.
--cwd
Root of the project, the current directory by default:
relizy mcp --cwd apps/webrelizy mcp init
Configures the AI agents of the project for Relizy:
- the rules (how to commit and release with Relizy):
.claude/rules/relizy.mdfor Claude Code, and arelizysection ofAGENTS.md, read by Codex, Cursor, Copilot and others; - the MCP server: a
relizyentry in.mcp.json(Claude Code),.cursor/mcp.json(Cursor) and.vscode/mcp.json(GitHub Copilot); - the
preparescript of the rootpackage.json:relizy mcp update, appended to an existing script, so the rules are kept up to date at each install.
relizy mcp initIt configures the agents detected in the project (.claude/, CLAUDE.md, .mcp.json, .cursor/, .vscode/mcp.json, .github/copilot-instructions.md, AGENTS.md, .codex/, .windsurf/, GEMINI.md...), or Claude Code and AGENTS.md when none is detected.
The MCP entries start the installed Relizy through the package manager of the project (pnpm exec relizy mcp, yarn run relizy mcp, bun x --no-install relizy mcp, npx --no-install relizy mcp) when Relizy is a dependency of the project, else npx -y relizy@<version> mcp. Codex and Windsurf only read AGENTS.md: add the command printed by relizy mcp init to their MCP config.
It only writes what it owns: a file it did not generate, rules edited by hand and MCP entries written by hand are left untouched. The rules are only rewritten when their content changes: the prepare script updates them at each install (see Keeping the Agents Up to Date), or run relizy mcp init again after an upgrade.
--targets
Comma-separated agents to configure: claude, agents-md, cursor, vscode.
relizy mcp init --targets claude,cursor--no-rules
Only register the MCP server.
--no-mcp
Only write the rules.
--no-prepare
Leave the package.json as is, without relizy mcp update in its prepare script. Also implied by --no-rules.
--remove
Remove what relizy mcp init added, relizy mcp update of the prepare script included. The rules and servers of other tools (such as maz-ui) and the other commands of the prepare script are kept.
relizy mcp init --removeDry Run
The global --dry-run lists the changes without writing them:
relizy mcp init --dry-runrelizy mcp update
Rewrites the rules of Relizy that are already in the project (.claude/rules/relizy.md, the Relizy section of AGENTS.md) when their content changed with a new Relizy. Made for the prepare script (added by relizy mcp init and relizy init), so it prints nothing when everything is up to date, else one line per updated file.
{
"scripts": {
"prepare": "relizy mcp update"
}
}With an existing prepare script, append the command: "prepare": "husky && relizy mcp update".
What it does not do, unlike relizy mcp init:
- It never creates a file: a rule you deleted, or an
AGENTS.mdwithout the Relizy section, stays as is. - It never touches the MCP config of the agents.
- It never rewrites rules edited by hand.
- It does not fail on a project without rules.
- It does nothing in CI, where the
preparescript also runs at each install: nobody would commit the rewritten files there.
The global --dry-run lists the files it would update without writing them:
relizy mcp update --dry-run