TR

tibuntu/renovate-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 2 forks 质量 78 趋势 38MIT

An MCP server for designing Renovate configurations interactively

概览

An MCP server for designing Renovate configurations interactively. Point it at a local repo and let an LLM help you read, validate, preview, and save renovate.json. Or add this entry manually to your client's mcpServers config: Restart your client and try the prompt: "List the namespaces available under renovate://presets." A response listing config, docker, npm, … confirms the server is reachable. Long-form install options are under Install below. - — locate the active renovate.json*, expand every extends preset offline, and trace which preset set each field. - — describe what you want ("automerge patches, group dev deps") and get ranked built-in (and your own local-repo) presets, plus a draft config skeleton when nothing fits. - before running Renovate — regex and JSONata, with Renovate's managerFilePatterns glob/regex file selection, file/line hits and extracted dep info.

README

以下为原文 README 节选,完整内容请查看原文。

renovate-mcp

An MCP server for designing Renovate configurations interactively. Point it at a local repo and let an LLM help you read, validate, preview, and save renovate.json.

Quick start

Needs Node.js ≥ 24.11 on Linux or macOS. With Claude Code:

npm install -g renovate-mcp
claude mcp add renovate -s user -- renovate-mcp
claude mcp list   # renovate should show as connected

Then try the prompt: “List the namespaces available under renovate://presets.” A response listing config, docker, npm, … confirms the server is reachable. No tokens are needed for the offline tools. Other clients, tokens and upgrades are under Install below.

What you can do

  • Read and explain configs — locate the active renovate.json*, expand every extends preset offline, and trace which preset set each field.
  • Discover presets from intent — describe what you want (“automerge patches, group dev deps”) and get ranked built-in (and your own local-repo) presets, plus a draft config skeleton when nothing fits.
  • Preview custom managers before running Renovate — regex and JSONata, with Renovate’s managerFilePatterns glob/regex file selection, file/line hits and extracted dep info.
  • Validate and lint — schema validation plus a semantic lint pass for Renovate-specific footguns (unwrapped regexes, unknown manager names, deprecated keys).
  • Dry-run against a local checkout or a remote GitHub/GitLab — see exactly which PRs Renovate would open.
  • Save back atomically — round-trip writes preserve comments and key order in existing JSON-with-comments files.

Tools & resources

Eighteen tools, seven resources, and four workflow prompts. Each tool name below links to its full reference in docs/tools.md.

Tool Purpose
check_setup Report Renovate CLI + validator availability, versions, install hints, and a platformContext block for env diagnosis. Also runs at startup. Pass an optional repoPath to add a repoContext block diagnosing the repo’s git origin, config endpoint/platform, endpoint reachability, and token coverage.
get_version Report the renovate-mcp server version and whether it’s a released or local/dev build.
read_config Locate and parse a repo’s Renovate config in Renovate’s own discovery order.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "renovate": { "command": "/Users/you/.nvm/versions/node/v24.14.1/bin/node", "args": ["/Users/you/.nvm/versions/node/v24.14.1/lib/node_modules/renovate-mcp/dist/index.js"] } } }