oshaani MCP Marketplace
Sign in

← Documentation

Jenkins MCP CI/CD

Inspect jobs, trigger builds and read console logs on your Jenkins server.

1 credits / tool call

Quick start

  1. Add a Jenkins connection with the settings below, then click Test configuration.
  2. Create an API key for your agent.
  3. Paste the key below, click Test endpoint, and copy the configuration for your platform.
Endpointhttps://market.oshaani.com/jenkins (your default connection) or https://market.oshaani.com/jenkins/<connection-id>
TransportStreamable HTTP (stateless, JSON responses). MCP protocol versions 2024-11-05 to 2025-11-25 and 2026-07-28.
AuthenticationAuthorization: Bearer <API key>, using a key from the API keys page.

Agent configuration

The default URL uses your organisation's default Jenkins connection; a URL with an ID pins one connection.
Get a key
The key is filled into the snippets below. It stays in this page and is only sent with the test request.
Runs initialize and tools/list against the endpoint, exactly like an agent. No credits are charged.

Any MCP client that supports remote (Streamable HTTP) servers with custom headers.

{
  "name": "jenkins",
  "transport": "streamable-http",
  "url": "https://market.oshaani.com/jenkins",
  "headers": {
    "Authorization": "Bearer YOUR_API_KEY"
  }
}

Connection settings

Entered once per connection on market.oshaani.com. Secrets are encrypted and never shown again or sent to agents.

SettingTypeDescription
Jenkins URL
url required
string (uri) Base URL, e.g. https://jenkins.example.com
min length 1, max length 2083
Username
username required
string
API token
api_token required secret
string Create one under your Jenkins user > Security > API Token
Verify TLS certificate
verify_tls
boolean
default true

Tools (6)

list_jobs read-only

List jobs on the Jenkins server or inside a folder

ArgumentTypeDescription
folder string Folder path, e.g. 'team/api'

get_job read-only

Get a job's status, recent builds, health and build parameters

ArgumentTypeDescription
job required string Job name; use '/' for jobs inside folders, e.g. 'team/api/build'

get_build read-only

Get the result, duration and causes of a specific build

ArgumentTypeDescription
job required string Job name; use '/' for jobs inside folders, e.g. 'team/api/build'
build string
default "lastBuild"
Build number, or lastBuild / lastSuccessfulBuild / lastFailedBuild / lastCompletedBuild

get_build_log read-only

Read the console log of a build (returns the tail when the log is long)

ArgumentTypeDescription
job required string Job name; use '/' for jobs inside folders, e.g. 'team/api/build'
build string
default "lastBuild"
Build number, or lastBuild / lastSuccessfulBuild / lastFailedBuild / lastCompletedBuild
max_chars integer
default 20000
Maximum characters to return
min 500, max 200000

trigger_build

Trigger a build, optionally with parameters. Returns the queue item URL.

ArgumentTypeDescription
job required string Job name; use '/' for jobs inside folders, e.g. 'team/api/build'
parameters object Build parameters for parameterized jobs

get_queue read-only

List items waiting in the Jenkins build queue

No arguments.

Billing & errors

Each successful tool call costs 1 oshaani.com credit. initialize, tools/list, failed calls and timeouts are free.

JSON-RPC codeMeaning
-32054 (HTTP 401)Missing, unknown or revoked API key
-32053 (HTTP 404)No Jenkins connection configured for your organisation, or the connection ID is wrong
-32055 (HTTP 403)Connection disabled or origin not allowed
-32052 (HTTP 429)Rate limit reached; retry after a minute
-32050Not enough oshaani.com credits for the call
-32051Billing temporarily unavailable; the call was not run

Errors from Jenkins itself (bad IDs, permissions) come back as tool results with isError: true so the agent can read and correct them. See the Jenkins API documentation.