mcp-jenkins
v3.6.0The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
limit | Maximum number of lines to return after filtering and offset | |
number | The number of the build, if None, get the last build | |
offset | integer | Number of lines to skip from the beginning after filtering, default 0 |
pattern | Optional 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.
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The 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.
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
limit | Maximum number of failures to return, None for all of them | |
max_stack_trace_length | integer | Stack traces longer than this are cut to this many characters |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The number of the build, if None, get the last build |
stop_build Stop Build
Stop a specific build in Jenkins
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number * | integer | The 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) |
action | string | 'proceed' to continue the pipeline, 'abort' to reject the input and abort the build |
input_id | The id of the pending input, if None, resolved automatically when exactly one is pending | |
parameters | A 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
number | The 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.
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
relative_path * | string | The relative path of the artifact (e.g. playwright-report/index.html) |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the job |
relative_path * | string | The relative path of the artifact (e.g. playwright-report/index.html) |
number | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the item |
get_item_config Get Item Config
Get specific item config from Jenkins
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The fullname of the item |
set_item_config Set Item Config
Set specific item config in Jenkins
| Parameter | Type | Description |
|---|---|---|
config_xml * | string | The config XML of the item |
fullname * | string | The fullname of the item |
query_items Query Items
Query items from Jenkins
| Parameter | Type | Description |
|---|---|---|
class_pattern | The pattern of the _class | |
color_pattern | The pattern of the color | |
folder_depth | The maximum depth of folders to traverse. If None, traverses all levels. | |
fullname_pattern | The pattern of the fullname |
build_item Build Item
Build an item in Jenkins
| Parameter | Type | Description |
|---|---|---|
build_type * | string | If your item is configured with parameters, you must use 'buildWithParameters' as build_type. |
fullname * | string | The fullname of the item |
data | The 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
| Parameter | Type | Description |
|---|---|---|
fullname * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the node |
get_node_config Get Node Config
Get node config from Jenkins
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the node |
set_node_config Set Node Config
Set specific node config in Jenkins
| Parameter | Type | Description |
|---|---|---|
config_xml * | string | The config XML of the node |
name * | string | The name of the node |
get_all_plugins Get All Plugins
Get all installed plugins from Jenkins
| Parameter | Type | Description |
|---|---|---|
depth | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
short_name * | string | The short name of the plugin |
depth | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
depth | integer | The depth of the information to retrieve. Default is 0. |
get_plugins_with_updates Get Plugins With Updates
Get plugins that have available updates
| Parameter | Type | Description |
|---|---|---|
depth | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
short_name * | string | The 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
| Parameter | Type | Description |
|---|---|---|
id * | integer | The id of the queue item |
cancel_queue_item Cancel Queue Item
Cancel a specific item in Jenkins queue by id
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
view_path * | string | View path using "/" to separate levels. Examples: "All", "frontend", "frontend/nightly". Spaces and special characters in view names are handled automatically. |
depth | integer | Depth 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.
| Parameter | Type | Description |
|---|---|---|
script * | string | The Groovy script code to execute. |