Jenkins · Capability

Jenkins Remote Access API — Jobs

Jenkins Remote Access API — Jobs. 4 operations. Lead operation: Get information about a job (JSON). Self-contained Naftiko capability covering one Jenkins business surface.

Run with Naftiko JenkinsJobs

What You Can Do

GET
Getjob — Get information about a job (JSON)
/v1/job/{jobname}/api/json
POST
Triggerbuild — Trigger a build for a parameterless job
/v1/job/{jobname}/build
POST
Triggerbuildwithparameters — Trigger a build with parameters
/v1/job/{jobname}/buildwithparameters
GET
Getbuild — Get information about a specific build
/v1/job/{jobname}/{buildnumber}/api/json

MCP Tools

get-information-about-job-json

Get information about a job (JSON)

read-only idempotent
trigger-build-parameterless-job

Trigger a build for a parameterless job

trigger-build-parameters

Trigger a build with parameters

get-information-about-specific-build

Get information about a specific build

read-only idempotent

Capability Spec

jenkins-jobs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Jenkins Remote Access API — Jobs
  description: 'Jenkins Remote Access API — Jobs. 4 operations. Lead operation: Get information about a job (JSON). Self-contained
    Naftiko capability covering one Jenkins business surface.'
  tags:
  - Jenkins
  - Jobs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JENKINS_API_KEY: JENKINS_API_KEY
capability:
  consumes:
  - type: http
    namespace: jenkins-jobs
    baseUri: https://{jenkinsHost}
    description: Jenkins Remote Access API — Jobs business capability. Self-contained, no shared references.
    resources:
    - name: job-jobName-api-json
      path: /job/{jobName}/api/json
      operations:
      - name: getjob
        method: GET
        description: Get information about a job (JSON)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: job-jobName-build
      path: /job/{jobName}/build
      operations:
      - name: triggerbuild
        method: POST
        description: Trigger a build for a parameterless job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: token
          in: query
          type: string
          description: Authentication token for remote build trigger.
    - name: job-jobName-buildWithParameters
      path: /job/{jobName}/buildWithParameters
      operations:
      - name: triggerbuildwithparameters
        method: POST
        description: Trigger a build with parameters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: job-jobName-buildNumber-api-json
      path: /job/{jobName}/{buildNumber}/api/json
      operations:
      - name: getbuild
        method: GET
        description: Get information about a specific build
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: buildNumber
          in: path
          type: string
          required: true
    authentication:
      type: basic
      username: '{{env.JENKINS_USER}}'
      password: '{{env.JENKINS_PASS}}'
  exposes:
  - type: rest
    namespace: jenkins-jobs-rest
    port: 8080
    description: REST adapter for Jenkins Remote Access API — Jobs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/job/{jobname}/api/json
      name: job-jobname-api-json
      description: REST surface for job-jobName-api-json.
      operations:
      - method: GET
        name: getjob
        description: Get information about a job (JSON)
        call: jenkins-jobs.getjob
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/job/{jobname}/build
      name: job-jobname-build
      description: REST surface for job-jobName-build.
      operations:
      - method: POST
        name: triggerbuild
        description: Trigger a build for a parameterless job
        call: jenkins-jobs.triggerbuild
        with:
          token: rest.token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/job/{jobname}/buildwithparameters
      name: job-jobname-buildwithparameters
      description: REST surface for job-jobName-buildWithParameters.
      operations:
      - method: POST
        name: triggerbuildwithparameters
        description: Trigger a build with parameters
        call: jenkins-jobs.triggerbuildwithparameters
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/job/{jobname}/{buildnumber}/api/json
      name: job-jobname-buildnumber-api-json
      description: REST surface for job-jobName-buildNumber-api-json.
      operations:
      - method: GET
        name: getbuild
        description: Get information about a specific build
        call: jenkins-jobs.getbuild
        with:
          buildNumber: rest.buildNumber
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: jenkins-jobs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Jenkins Remote Access API — Jobs. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-information-about-job-json
      description: Get information about a job (JSON)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: jenkins-jobs.getjob
      outputParameters:
      - type: object
        mapping: $.
    - name: trigger-build-parameterless-job
      description: Trigger a build for a parameterless job
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: jenkins-jobs.triggerbuild
      with:
        token: tools.token
      outputParameters:
      - type: object
        mapping: $.
    - name: trigger-build-parameters
      description: Trigger a build with parameters
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: jenkins-jobs.triggerbuildwithparameters
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-information-about-specific-build
      description: Get information about a specific build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: jenkins-jobs.getbuild
      with:
        buildNumber: tools.buildNumber
      outputParameters:
      - type: object
        mapping: $.