list_jobs
Retrieve all Jenkins jobs to monitor project status and manage build pipelines through the Jenkins MCP server.
Instructions
List all Jenkins jobs
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- jenkins_mcp/server.py:170-174 (handler)The handler function for the 'list_jobs' MCP tool. It is decorated with @mcp.tool() for registration and executes the logic to list all Jenkins jobs by calling client.get_jobs().
@mcp.tool() def list_jobs(ctx: Context) -> List[str]: """List all Jenkins jobs""" client = ctx.request_context.lifespan_context.client return client.get_jobs()