mcp-jenkins
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| jenkins-url | Yes | The URL of your Jenkins server | |
| jenkins-password | Yes | The password for Jenkins authentication | |
| jenkins-username | Yes | The username for Jenkins authentication |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_running_buildsB | Get all running builds from Jenkins Returns: A list of all running builds |
| get_buildA | Get specific build info from Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build Returns: The build info |
| get_build_scriptsA | Get the scripts used in a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build Returns: A list of scripts used in the build |
| get_build_console_outputA | Get the console output of a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build pattern: Optional regex pattern to filter lines (only matching lines are returned) offset: Number of lines to skip from the beginning after filtering, default 0 limit: Maximum number of lines to return after filtering and offset Returns: The console output of the build |
| get_build_test_reportA | Get the test report of a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build Returns: The test report of the build |
| get_build_parametersA | Get the parameters of a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build Returns: A dictionary of build parameter names and their values |
| stop_buildC | Stop a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build to stop |
| get_all_build_artifactsA | List the artifacts of a specific build in Jenkins Args: fullname: The fullname of the job number: The number of the build, if None, get the last build Returns: A list of artifact metadata dicts with fileName, relativePath, and displayPath |
| get_build_artifactA | Download an artifact from a specific build in Jenkins Binary files are returned as base64-encoded content; text files are returned as plain text. Args: fullname: The fullname of the job relative_path: The relative path of the artifact (e.g. playwright-report/index.html) number: The number of the build, if None, get the last build Returns: A dict with 'content' (str) and 'encoding' ('utf-8' or 'base64') |
| get_build_artifact_urlA | Get the direct URL of an artifact from a specific build in Jenkins Args: fullname: The fullname of the job relative_path: The relative path of the artifact (e.g. playwright-report/index.html) number: The number of the build, if None, get the last build Returns: The direct Jenkins URL of the artifact |
| get_all_itemsA | Get all items from Jenkins Returns: A list of items |
| get_itemC | Get specific item from Jenkins Args: fullname: The fullname of the item Returns: The item |
| get_item_configA | Get specific item config from Jenkins Args: fullname: The fullname of the item Returns: The config of the item |
| set_item_configC | Set specific item config in Jenkins Args: fullname: The fullname of the item config_xml: The config XML of the item |
| query_itemsC | Query items from Jenkins Args: class_pattern: The pattern of the _class fullname_pattern: The pattern of the fullname color_pattern: The pattern of the color folder_depth: The maximum depth of folders to traverse. If None, traverses all levels. Returns: A list of items |
| build_itemA | Build an item in Jenkins Args: fullname: The fullname of the item data: The parameters to trigger the build with. Required if build_type is 'buildWithParameters'. build_type: If your item is configured with parameters, you must use 'buildWithParameters' as build_type. Returns: The queue item number of the item. |
| get_item_parametersA | Get the parameter definitions of a Jenkins job Args: fullname: The fullname of the item Returns: A list of parameter definitions, each containing name, type, defaultValue, and description |
| get_all_nodesA | Get all nodes from Jenkins Returns: A list of all nodes |
| get_nodeA | Get a specific node from Jenkins Contains executor about the node. Args: name: The name of the node Returns: The node |
| get_node_configA | Get node config from Jenkins Args: name: The name of the node Returns: The config of the node |
| set_node_configC | Set specific node config in Jenkins Args: name: The name of the node config_xml: The config XML of the node |
| get_all_pluginsA | Get all installed plugins from Jenkins Args: depth: The depth of the information to retrieve. Default is 2 (includes dependencies). Returns: A list of all installed plugins |
| get_pluginA | Get a specific plugin from Jenkins Contains detailed information about the plugin, including dependencies when depth >= 2. Args: short_name: The short name of the plugin depth: The depth of the information to retrieve. Default is 2 (includes dependencies). Returns: The plugin details, or None if not found |
| get_plugins_with_problemsA | 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. Returns: A list of plugins with problems |
| get_plugins_with_backupB | Get plugins that can be downgraded Returns plugins that have a backupVersion and can be rolled back. Args: depth: The depth of the information to retrieve. Default is 0. Returns: A list of plugins that can be downgraded |
| get_plugins_with_updatesC | Get plugins that have available updates Args: depth: The depth of the information to retrieve. Default is 0. Returns: A list of plugins with available updates |
| get_plugin_dependency_graphA | 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. Args: short_name: The short name of the plugin to analyze Returns: A dictionary with 'nodes' and 'edges' for Graphviz rendering |
| get_all_queue_itemsC | Get all items in Jenkins queue Returns: A list of all items in the Jenkins queue |
| get_queue_itemA | Get a specific item in Jenkins queue by id Args: id: The id of the queue item Returns: The queue item |
| cancel_queue_itemB | Cancel a specific item in Jenkins queue by id Args: id: The id of the queue item |
| get_all_viewsA | Get all top-level views from Jenkins. Returns: A list of views with their name and URL. |
| get_viewA | 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. Args: view_path: View path using "/" to separate levels. Examples: "All", "frontend", "frontend/nightly". Spaces and special characters in view names are handled automatically. depth: Depth of detail to retrieve for each job. Default is 0. Returns: A dict with the view's name, jobs list, and/or nested views. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lanbaoshen/mcp-jenkins'
If you have feedback or need assistance with the MCP directory API, please join our Discord server