MCP tools and prompts
relgap mcp serves these tools and prompts over stdio. This page comes from the server's own tools/list and prompts/list answers. See relgap mcp for the flags.
Server instructions
The server sends this text to the client when it connects:
relgap answers questions about upgrading the tools a project pins: what breaks between two versions, which pins are behind, which have known vulnerabilities, and where repositories disagree. Every result is the JSON envelope of relgap --format json. When the envelope has page.next_cursor, call the same tool with only that cursor to get the rest. Directory arguments must be inside the server's roots; relative ones start at the first root.Tools
audit
Vulnerability audit. Read-only.
Lists the known vulnerabilities of every tool version pinned in the repositories under the given directories, with fix targets, and the pins OSV couldn't check with the reason.
Input schema:
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "The next_cursor of an earlier result of this tool. Other arguments are then ignored.",
"type": "string"
},
"roots": {
"description": "Directories to scan for repositories, inside the server's roots. Default: the first root.",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
},
"tools": {
"description": "Audit only these tools, such as terraform or npm:lodash.",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
},
"vuln_severity": {
"description": "The lowest rating to list: low, medium, high or critical. Findings of unknown severity stay. Default: every finding.",
"type": "string"
}
},
"type": "object"
}breaking_changes
Breaking changes. Read-only.
Lists only the breaking changes and deprecations between two versions of a tool, each with its source URL.
Input schema:
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "The next_cursor of an earlier result of this tool. Other arguments are then ignored.",
"type": "string"
},
"from": {
"description": "Required unless cursor is set. The version you have. The range starts after it.",
"type": "string"
},
"min_confidence": {
"description": "Hide entries below this confidence, 0 to 1. Default: policy.min_confidence of the config (0.5).",
"type": [
"null",
"number"
]
},
"to": {
"description": "The version you upgrade to. Default: the latest stable version on the line.",
"type": "string"
},
"tool": {
"description": "Required unless cursor is set. Tool name or alias, such as terraform, tf or argocd.",
"type": "string"
}
},
"type": "object"
}digest
Release-notes digest. Read-only.
Merges the release notes of every version of a tool after from, up to to, into entries grouped by kind (breaking, deprecation, security, feature, fix, other), each with its source URL.
Input schema:
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "The next_cursor of an earlier result of this tool. Other arguments are then ignored.",
"type": "string"
},
"from": {
"description": "Required unless cursor is set. The version you have. The range starts after it.",
"type": "string"
},
"include_prereleases": {
"description": "Include prereleases. On when from or to is a prerelease.",
"type": "boolean"
},
"line": {
"description": "Release line the range stays on: none, major or minor. Default: the tool's registry entry, else none.",
"type": "string"
},
"min_confidence": {
"description": "Hide entries below this confidence, 0 to 1. Default: policy.min_confidence of the config (0.5).",
"type": [
"null",
"number"
]
},
"only": {
"description": "List only these kinds: breaking, deprecation, security, feature, fix or other. Counts still cover every kind.",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
},
"to": {
"description": "The version you upgrade to. Default: the latest stable version on the line.",
"type": "string"
},
"tool": {
"description": "Required unless cursor is set. Tool name or alias, such as terraform, tf or argocd.",
"type": "string"
}
},
"type": "object"
}drift
Version drift. Read-only.
Shows which repositories under the given directories pin different versions of the same tool, from local files only unless latest is true.
Input schema:
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "The next_cursor of an earlier result of this tool. Other arguments are then ignored.",
"type": "string"
},
"ignore_constraints": {
"description": "Compare exact pins only. Constraint pins are listed but don't count.",
"type": "boolean"
},
"latest": {
"description": "Add the newest stable version of each tool. Needs GitHub or the HTTP cache.",
"type": "boolean"
},
"roots": {
"description": "Required unless cursor is set. Directories to scan for repositories, inside the server's roots.",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
},
"tools": {
"description": "Report only these tools, each with a column even when it agrees.",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
}
},
"type": "object"
}outdated
Outdated pins. Read-only.
Compares every tool version pinned in a project directory with the latest release, with breaking-change counts, EOL state and known vulnerabilities.
Input schema:
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "The next_cursor of an earlier result of this tool. Other arguments are then ignored.",
"type": "string"
},
"path": {
"description": "Project directory inside the server's roots. Default: the first root.",
"type": "string"
}
},
"type": "object"
}resolve
Resolve a tool. Read-only.
Shows how a tool name resolves to a GitHub repository, version rules and changelog sources, with the registry layer behind each field.
Input schema:
{
"additionalProperties": false,
"properties": {
"tool": {
"description": "Tool name or alias (terraform, tf), a NAME_VERSION variable, github:owner/repo, aqua:package, tfprovider:namespace/name, tfmodule:namespace/name/provider, chart:repo/name, chart:url/name, npm:package or pypi:package.",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
}Prompts
upgrade_review
Upgrade review.
Reviews the breaking changes and deprecations between two versions of a tool and lists the required actions, citing the entry ID of every claim.
| Argument | Required | Description |
|---|---|---|
tool | yes | Tool name or alias, such as terraform, tf or argocd. |
from | yes | The version you have. |
to | no | The version you upgrade to. Default: the latest stable version on the line. |