Skip to content

AI Agents (MCP) ​

Give your AI coding agents (Claude Code, Cursor, Copilot, Codex...) the release preview, the commit linting and the docs of the installed Relizy, through its MCP server.

An agent cannot guess what the next release will do: which packages, which versions, why, which changelog. Relizy ships an MCP server that answers these questions from your repository, with the docs and the config reference of the version you installed.

Quick Start ​

bash
npx relizy mcp init

It writes the Relizy rules for your agents and registers the MCP server in their configs (see relizy mcp init). relizy init offers the same step when the project already uses an AI agent.

Install Relizy as a devDependency of the project: the agents then start the installed version in about a second, at the version of your lockfile.

What the Agents Get ​

ToolWhat it answers
preview_releaseWhat the next release bumps: the version of each package and group, and why (its commits, a bumped dependency, a peer range rejecting the new version, another version group)
preview_changelogThe changelog entries the release would write
lint_commitLints a message before committing: problems and fixes, suggested header, bump, packages and changelog entry. Also lints the commits of a branch
get_projectConfig files, version mode or groups, packages, last tag, steps of the release and resolved config (secrets masked)
get_config_optionType, default and description of any option of relizy.config.ts
search_docsSearch in the guides, the config, the CLI and commitlint docs
get_docRead a page of the docs, or some of its sections

It also provides prompts: write-commit, prepare-release, setup-relizy and setup-ci.

Guarantees ​

  • Read-only: the tools never write a file, commit, tag, push nor publish. The rules ask the agents to run relizy release (and the other writing commands) only with your approval, and --dry-run otherwise.
  • No hook: the hooks of your config never run in the MCP server.
  • No network by default: the local tags are used (fetchTags: true runs git fetch --tags), and the changelog previews leave the contributors out (contributors: true may query the GitHub API).
  • Version-matched: the docs, the config reference and the rules come from the installed Relizy. Each release of Relizy ships them up to date.

Manual Configuration ​

relizy mcp init writes these files for you. To configure another agent, register the relizy mcp command:

json
{
  "mcpServers": {
    "relizy": {
      "type": "stdio",
      "command": "pnpm",
      "args": ["exec", "relizy", "mcp"]
    }
  }
}
json
{
  "mcpServers": {
    "relizy": {
      "command": "npx",
      "args": ["--no-install", "relizy", "mcp"]
    }
  }
}
json
{
  "servers": {
    "relizy": {
      "type": "stdio",
      "command": "npx",
      "args": ["--no-install", "relizy", "mcp"]
    }
  }
}
toml
[mcp_servers.relizy]
command = "npx"
args = [
  "-y",
  "relizy",
  "mcp"
]

Without Relizy in the dependencies of the project, use npx -y relizy@<version> mcp: a pinned version starts faster than relizy@latest, which queries the registry at every start.

Keeping the Agents Up to Date ​

The MCP server always serves the installed Relizy: upgrading Relizy upgrades the tools and the docs. The rules written in the project carry the version that generated them: get_project tells the agent when they are older than the installed Relizy, and relizy mcp init updates them. Rules you edited by hand are kept and no longer updated: delete the file (or the AGENTS.md section) to get the new ones.

The Rules ​

These rules are written in .claude/rules/relizy.md and AGENTS.md:

This project releases with relizy: versions, changelogs, git tags, npm publishing and GitHub/GitLab releases, computed from the commits and configured in relizy.config.ts.

Look it up before you guess ​

  • MCP server relizy (when available): preview_release (what the next release bumps and why), preview_changelog, lint_commit, get_project (resolved config, version mode, groups, packages), get_config_option, search_docs, get_doc.
  • Version-matched docs in node_modules/relizy/agent-docs/ (start with README.md).

Never invent a config option nor a CLI flag: check it with get_config_option or the docs.

Commits drive the releases ​

  • Write Conventional Commits: type(scope): subject. The type decides the bump and the changelog section: feat is a minor, fix and perf a patch, ! after the type or a BREAKING CHANGE: footer a major (the types of the config can change this).
  • Lint the message before committing: lint_commit or relizy commitlint --message "<message>". It also shows the changelog entry the commit produces.
  • In a monorepo, a commit belongs to the packages whose files it changes: one package (or one concern) per commit gives precise bumps and changelogs.
  • The body of a commit can end up in the changelog: write it for the users of the package.

Releasing ​

  • Preview, never guess: preview_release and preview_changelog, or relizy release --dry-run.
  • Never run relizy release, bump, publish, changelog, provider-release, social or pr-comment without the explicit approval of the user: they write versions and changelogs, commit, tag, push and publish. Most projects release from their CI.
  • Never edit the versions of the package.json files, the CHANGELOG.md files nor the release tags by hand: relizy computes them from the commits and the tags.

Configuration ​

  • defineConfig from relizy types relizy.config.ts. Several configs can coexist (relizy.<name>.config.ts, selected with --config <name>).
  • Monorepos: monorepo.versionMode is unified, selective (one version, only the changed packages) or independent; monorepo.groups releases several sets of packages, each with its own mode.
  • Set up a new project with relizy init (--yes without questions), and the AI agents with relizy mcp init.

Troubleshooting ​

  • The agent does not see the tools: restart it after relizy mcp init, and check that relizy mcp starts from the root of the project (npx relizy mcp should wait for input without printing anything).
  • "The docs bundle of relizy is missing": reinstall Relizy. In the Relizy repository, run pnpm build.
  • A monorepo whose apps are released from a subfolder: start the server with relizy mcp --cwd <folder>.

Released under the MIT License.