jenkins_list_queue
List visible items in the Jenkins build queue with ID, URL, blocking reason, and buildable status.
Instructions
List visible Jenkins queue items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | No | items[id,url,why,blocked,buildable,stuck] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/jenkins_mcp_server/tools.py:165-170 (handler)The tool handler for jenkins_list_queue. Calls _get_json('queue', ...) to fetch queue items from the Jenkins API.
@mcp.tool() def jenkins_list_queue( tree: str = "items[id,url,why,blocked,buildable,stuck]", ) -> dict[str, Any]: """List visible Jenkins queue items.""" return _run(lambda: _get_json("queue", params={"tree": tree})) - src/jenkins_mcp_server/tools.py:55-55 (registration)The function register_tools(mcp: FastMCP) registers all tools including jenkins_list_queue as an @mcp.tool() decorator within the function body.
def register_tools(mcp: FastMCP) -> None: - The _get_json helper used by jenkins_list_queue to make the actual HTTP GET request to the Jenkins API.
def _get_json(path: str, params: dict[str, Any] | None = None) -> Any: with _client() as client: return client.get_json(path, params=params) - Tool is listed in READ_ONLY_TOOLS list, which is used for permission/grouping configuration.
"jenkins_list_queue", "jenkins_get_queue_item", "jenkins_list_views", "jenkins_get_view", "jenkins_list_nodes", "jenkins_get_node", "jenkins_list_plugins", ]