Skip to main content
Connect your self-hosted Jenkins server to enable CloudThinker agents to monitor builds, analyze test results, review pipeline logs, and manage job operations. Jenkins authenticates with a username and API token over the Jenkins MCP Server Plugin.

Prerequisites

  • A self-hosted Jenkins instance running version 2.x or later (cloud-hosted Jenkins is not supported).
  • The Jenkins MCP Server Plugin installed on your server; the default MCP port is 9090.
  • Admin access to Jenkins to configure the root URL and create credentials.
Cloud-hosted Jenkins services are not supported. This connection requires the Jenkins MCP Server Plugin.

Setup

1

Configure the root URL

The MCP Server Plugin requires Jenkins to have a root URL configured to return correct job links. Run the following in the Jenkins Script Console:
2

Verify the MCP endpoint

Confirm the plugin is running before connecting:
3

Add the connection in CloudThinker

Navigate to Connections → Jenkins and enter:
  • URL: http://<host-ip>:9090
  • Username: admin
  • API Token: your Jenkins admin password or API token
Click Connect. CloudThinker verifies the credentials and shows a Connected status.

Connection details


Required permissions

Grant the Jenkins user the following permissions:
  • Overall: Read
  • Job: Read, Discover
  • View: Read
Create a dedicated Jenkins user for CloudThinker with only these permissions. Keep write operations (trigger builds, replay pipelines) approval-gated.

Agent capabilities

Once connected, agents can monitor and investigate your Jenkins pipelines.

Verify the connection

Example prompts


Troubleshooting

Verify Jenkins is running and that port 9090 is reachable from CloudThinker. Use the host IP address (not localhost) in the URL field.
The root URL has not been configured or the Script Console command failed. Re-run the Script Console command in Setup and reconnect.
The username or API token is incorrect, or the user lacks the required permissions. Verify the credentials and that the Jenkins user has Overall Read, Job Read, and View Read access.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Dedicated user — create a dedicated Jenkins user for CloudThinker scoped to only the jobs and views it needs.
  • Network isolation — restrict Jenkins port 9090 to CloudThinker’s IP range or use a VPN; avoid exposing the Jenkins UI to the public internet.

MCP Connections

Connect custom tools via Model Context Protocol

Kubernetes Connection

Connect Kubernetes clusters