Claude Code + Kestra 2.0: set up DevOps workflows via MCP

Learn to run Kestra in Docker, create a GitHub repository workflow, and connect Claude Code through MCP. The demo uses localhost port 8080.

Player not loading? Watch on YouTube

This tutorial connects Claude Code to Kestra workflows through MCP. The speaker proposes that DevOps teams define infrastructure workflows and let a coding assistant invoke them, keeping execution history and organizational rules in the orchestration platform. Kestra collaborated on the video.

The setup uses Kestra 2.0 in a Docker container on localhost port 8080. The speaker describes Kestra as open source and also mentions deployment on Kubernetes, a virtual machine, or a VPS. This self-hosted setup uses a Gemini API key for Kestra's AI copilot; the demonstrated AI features depend on external services.

The copilot generates a workflow that takes a repository name as input and retrieves a GitHub authentication token from the namespace KV store. The first execution fails because the token is missing. After adding it with a seven-day expiry, the speaker reruns the workflow and shows a successful repository creation.

An MCP trigger exposes the workflow through Kestra's default MCP server. The speaker adds the connection to Claude Code, requests another repository, and approves the initially blocked tool call. Kestra's execution history then shows the agent-triggered run. Branch protection and CI/CD configuration are suggested extensions; the demonstrated workflow creates a basic repository.