mcp-jenkins

v3.6.0
mcp-jenkins Checked 21 hours ago Published 1 month ago

The Model Context Protocol (MCP) is an open-source implementation that bridges Jenkins with AI language models following Anthropic's MCP specification.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_running_builds Get Running Builds

Get all running builds from Jenkins

get_build Get Build

Get specific build info from Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, get the last build

get_build_scripts Get Build Scripts

Get the scripts used in a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, get the last build

get_build_console_output Get Build Console Output

Get the console output of a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
limitMaximum number of lines to return after filtering and offset
numberThe number of the build, if None, get the last build
offsetintegerNumber of lines to skip from the beginning after filtering, default 0
patternOptional regex pattern to filter lines (only matching lines are returned)

get_build_test_report Get Build Test Report

Get the test report of a specific build in Jenkins The report lists every test case, passing ones included, so it can be very large; use get_build_test_failures to see what failed.

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, get the last build

get_build_test_failures Get Build Test Failures

Get the failing tests of a specific build in Jenkins, with their error details For a matrix build, the failures of all configurations are returned, each with the URL of its configuration build.

ParameterTypeDescription
fullname *stringThe fullname of the job
limitMaximum number of failures to return, None for all of them
max_stack_trace_lengthintegerStack traces longer than this are cut to this many characters
numberThe number of the build, if None, get the last build

get_build_parameters Get Build Parameters

Get the parameters of a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, get the last build

stop_build Stop Build

Stop a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
number *integerThe number of the build to stop

get_pending_inputs Get Pending Inputs

Get the pending input steps of a specific build in Jenkins A pipeline showing "Paused for Input" is waiting on an input step. Call this before submit_input to discover the input id and the parameter definitions the pipeline is waiting for. Only the given build is inspected. With number=None that is the job's last build, so a paused build that is no longer the most recent one is not found that way — locate it with get_running_builds and pass its number explicitly.

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, check the last build

submit_input Submit Input

Respond to a pipeline input step of a build that is paused for input in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
number *integerThe number of the paused build, use get_pending_inputs to confirm its pending input (and get_running_builds to locate a paused build that is not the job's last one)
actionstring'proceed' to continue the pipeline, 'abort' to reject the input and abort the build
input_idThe id of the pending input, if None, resolved automatically when exactly one is pending
parametersA mapping of parameter name to value, e.g. {'APPROVE': True, 'TARGET': 'prod'}

get_all_build_artifacts Get All Build Artifacts

List the artifacts of a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
numberThe number of the build, if None, get the last build

get_build_artifact Get Build Artifact

Download an artifact from a specific build in Jenkins Binary files are returned as base64-encoded content; text files are returned as plain text.

ParameterTypeDescription
fullname *stringThe fullname of the job
relative_path *stringThe relative path of the artifact (e.g. playwright-report/index.html)
numberThe number of the build, if None, get the last build

get_build_artifact_url Get Build Artifact Url

Get the direct URL of an artifact from a specific build in Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the job
relative_path *stringThe relative path of the artifact (e.g. playwright-report/index.html)
numberThe number of the build, if None, get the last build

get_all_items Get All Items

Get all items from Jenkins

get_item Get Item

Get specific item from Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the item

get_item_config Get Item Config

Get specific item config from Jenkins

ParameterTypeDescription
fullname *stringThe fullname of the item

set_item_config Set Item Config

Set specific item config in Jenkins

ParameterTypeDescription
config_xml *stringThe config XML of the item
fullname *stringThe fullname of the item

query_items Query Items

Query items from Jenkins

ParameterTypeDescription
class_patternThe pattern of the _class
color_patternThe pattern of the color
folder_depthThe maximum depth of folders to traverse. If None, traverses all levels.
fullname_patternThe pattern of the fullname

build_item Build Item

Build an item in Jenkins

ParameterTypeDescription
build_type *stringIf your item is configured with parameters, you must use 'buildWithParameters' as build_type.
fullname *stringThe fullname of the item
dataThe parameters to trigger the build with. Required if build_type is 'buildWithParameters'.

get_item_parameters Get Item Parameters

Get the parameter definitions of a Jenkins job

ParameterTypeDescription
fullname *stringThe fullname of the item

get_all_nodes Get All Nodes

Get all nodes from Jenkins

get_node Get Node

Get a specific node from Jenkins Contains executor about the node.

ParameterTypeDescription
name *stringThe name of the node

get_node_config Get Node Config

Get node config from Jenkins

ParameterTypeDescription
name *stringThe name of the node

set_node_config Set Node Config

Set specific node config in Jenkins

ParameterTypeDescription
config_xml *stringThe config XML of the node
name *stringThe name of the node

get_all_plugins Get All Plugins

Get all installed plugins from Jenkins

ParameterTypeDescription
depthintegerThe depth of the information to retrieve. Default is 2 (includes dependencies).

get_plugin Get Plugin

Get a specific plugin from Jenkins Contains detailed information about the plugin, including dependencies when depth >= 2.

ParameterTypeDescription
short_name *stringThe short name of the plugin
depthintegerThe depth of the information to retrieve. Default is 2 (includes dependencies).

get_plugins_with_problems Get Plugins With Problems

Get 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.

get_plugins_with_backup Get Plugins With Backup

Get plugins that can be downgraded Returns plugins that have a backupVersion and can be rolled back.

ParameterTypeDescription
depthintegerThe depth of the information to retrieve. Default is 0.

get_plugins_with_updates Get Plugins With Updates

Get plugins that have available updates

ParameterTypeDescription
depthintegerThe depth of the information to retrieve. Default is 0.

get_plugin_dependency_graph Get Plugin Dependency Graph

Get 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.

ParameterTypeDescription
short_name *stringThe short name of the plugin to analyze

get_all_queue_items Get All Queue Items

Get all items in Jenkins queue

get_queue_item Get Queue Item

Get a specific item in Jenkins queue by id

ParameterTypeDescription
id *integerThe id of the queue item

cancel_queue_item Cancel Queue Item

Cancel a specific item in Jenkins queue by id

ParameterTypeDescription
id *integerThe id of the queue item

get_all_views Get All Views

Get all top-level views from Jenkins.

get_view Get View

Get 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.

ParameterTypeDescription
view_path *stringView path using "/" to separate levels. Examples: "All", "frontend", "frontend/nightly". Spaces and special characters in view names are handled automatically.
depthintegerDepth of detail to retrieve for each job. Default is 0.

run_groovy_script Run Groovy Script

Execute an arbitrary Groovy script on Jenkins. This tool provides access to Jenkins internal features that are not available via REST API.

ParameterTypeDescription
script *stringThe Groovy script code to execute.