build_item
Build an item in Jenkins
Chase a red build to its console output, test report and artifacts, then stop it or run it again — without a Jenkins tab.
LABSCO SUMMARY
From the running build to its console output, test report and artifacts, the chase stays in one session — and get_build_console_output takes a pattern with offset and limit, so you can ask for the stack trace instead of the whole log. The plugin tools cover the other half of owning a Jenkins: what is broken, what has an update waiting, and what still has a backupVersion to roll back to.
A Jenkins client in 33 tools covering builds, jobs and folders, agents, plugins, the queue, views, and a Groovy escape hatch for the parts Jenkins does not expose over REST.
A reachable Jenkins instance and an account on it, plus uv on your PATH, which resolves the Python runtime through UV_PYTHON. run_groovy_script executes arbitrary Groovy on that instance.
Add the configuration to your client
USE CASES
Read the build's result, pull the console output filtered by a pattern instead of the whole log, and check the test report for which cases actually failed.
List what the build produced, then either download the file — binaries base64-encoded, text as plain text — or hand over the direct URL and let them fetch it themselves.
Read the job's parameter definitions, check what the last run was given, and trigger it again with the values corrected rather than copied blind.
See what is waiting and what is running, cancel the queued items that should not be there, and stop the build that is holding the executor.
List what is installed, separate the plugins already reporting problems from the ones with updates waiting, and read one plugin's dependency graph before you move its version.
Compare what is queued against the nodes available and their executors, so a slow pipeline is attributed to capacity or ruled out before anyone tunes the job.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
build_itemBuild an item in Jenkins
cancel_queue_itemCancel a specific item in Jenkins queue by id
get_all_build_artifactsList the artifacts of a specific build in Jenkins
get_all_itemsGet all items from Jenkins
Returns: A list of items
get_all_nodesGet all nodes from Jenkins
Returns: A list of all nodes
get_all_pluginsGet all installed plugins from Jenkins
get_all_queue_itemsGet all items in Jenkins queue
Returns: A list of all items in the Jenkins queue
get_all_viewsGet all top-level views from Jenkins.
Returns: A list of views with their name and URL.
get_buildGet specific build info from Jenkins
get_build_artifactDownload an artifact from a specific build in Jenkins
Binary files are returned as base64-encoded content; text files are returned as plain text.
get_build_artifact_urlGet the direct URL of an artifact from a specific build in Jenkins
get_build_console_outputGet the console output of a specific build in Jenkins
get_build_parametersGet the parameters of a specific build in Jenkins
get_build_scriptsGet the scripts used in a specific build in Jenkins
get_build_test_reportGet the test report of a specific build in Jenkins
get_itemGet specific item from Jenkins
get_item_configGet specific item config from Jenkins
get_item_parametersGet the parameter definitions of a Jenkins job
get_nodeGet a specific node from Jenkins
Contains executor about the node.
get_node_configGet node config from Jenkins
get_pluginGet a specific plugin from Jenkins
Contains detailed information about the plugin, including dependencies when depth >= 2.
get_plugin_dependency_graphGet dependency graph for a specific plugin in Graphviz format
Recursively analyzes dependencies down to leaf nodes. Returns nodes and edges that can be used to generate a dependency graph.
get_plugins_with_backupGet plugins that can be downgraded
Returns plugins that have a backupVersion and can be rolled back.
get_plugins_with_problemsGet all plugins with problems from Jenkins
These are plugins that have issues such as missing dependencies, incompatible versions, core version mismatch, or other configuration problems.
Returns: A list of plugins with problems
get_plugins_with_updatesGet plugins that have available updates
get_queue_itemGet a specific item in Jenkins queue by id
get_running_buildsGet all running builds from Jenkins
Returns: A list of all running builds
get_viewGet a Jenkins view by path, returning its jobs and/or nested sub-views.
Views can be nested up to multiple levels deep. Use "/" to separate levels in the path. If the view contains sub-views instead of jobs, the response will include their names so you can drill down further.
query_itemsQuery items from Jenkins
run_groovy_scriptExecute an arbitrary Groovy script on Jenkins.
This tool provides access to Jenkins internal features that are not available via REST API.
set_item_configSet specific item config in Jenkins
set_node_configSet specific node config in Jenkins
stop_buildStop a specific build in Jenkins
BEFORE YOU INSTALL
33 tools when we connected.
CONTEXT COST
Rated by the size of the 33 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
This one is configured rather than run — your client needs the configuration block, not a command.
{
"mcpServers": {
"mcp-jenkins": {
"command": "uvx",
"args": [
"mcp-jenkins",
"--jenkins-url=<YOUR_JENKINS_URL>",
"--jenkins-username=<YOUR_JENKINS_USERNAME>",
"--jenkins-password=<YOUR_JENKINS_PASSWORD>"
]
}
}
}<YOUR_JENKINS_URL> is the address of your Jenkins, <YOUR_JENKINS_USERNAME> your Jenkins user, and <YOUR_JENKINS_PASSWORD> that user's password or API token. Add --read-only to the args to run it in read-only mode.