Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt

Use this file to discover all available pages before exploring further.

Jenkins

Connect your Jenkins CI/CD server to enable CloudThinker agents to monitor builds, analyze test results, review pipeline logs, and manage job operations.
This guide requires the Jenkins MCP Server Plugin. Cloud-hosted Jenkins services are not supported.

Supported Platforms

PlatformSupport
Self-hosted Jenkins2.x+ with MCP Server Plugin

Setup

1

Access Jenkins

Ensure Jenkins is running and accessible. The default MCP port is 9090.
2

Configure Root URL

Required for the MCP server to return job results. Configure via Jenkins Script Console:
COOKIE_JAR=/tmp/jenkins_cookies
CRUMB=$(curl -s -c $COOKIE_JAR -u "admin:<password>" \
  'http://<host-ip>:9090/crumbIssuer/api/json' | python3 -c "import json,sys; print(json.load(sys.stdin)['crumb'])")

curl -s -X POST "http://<host-ip>:9090/scriptText" \
  -b $COOKIE_JAR -u "admin:<password>" -H "Jenkins-Crumb: $CRUMB" \
  --data-urlencode "script=
import jenkins.model.JenkinsLocationConfiguration
def loc = JenkinsLocationConfiguration.get()
loc.setUrl('http://<host-ip>:9090/')
loc.save()
println('Root URL set to: ' + loc.getUrl())
"
3

Add Connection in CloudThinker

Navigate to Connections → Jenkins and enter:
  • URL: http://<host-ip>:9090
  • Username: admin
  • API Token: Your admin password

Verify MCP Endpoint

Test before adding to CloudThinker:
curl -s http://<host-ip>:9090/mcp-health/

Required Permissions

  • Overall: Read
  • Job: Read, Discover
  • View: Read

Agent Capabilities

CapabilityDescription
Build MonitoringList jobs, check build status
Log AnalysisRetrieve and search build logs
Test ResultsView test outcomes
Pipeline ReplayRe-run builds with modified scripts
SCM IntegrationView Git changes and commits
Job ManagementTrigger builds, check queue status

Example Prompts

@alex list all Jenkins jobs and their last build status
@alex show test results for recent builds
@alex search build logs for errors
@alex check queue status and identify stuck builds

Troubleshooting

  • Verify Jenkins is running
  • Check port 9090 is accessible
  • Ensure root URL is configured via Script Console
  • Verify admin password is correct

Security Best Practices

  • Dedicated user - Create a dedicated Jenkins user for CloudThinker
  • Token rotation - Rotate API tokens periodically
  • Minimal permissions - Grant only required permissions
  • Network isolation - Use VPN or private endpoints

MCP Connections

Connect custom tools via Model Context Protocol

Kubernetes

Connect Kubernetes clusters