Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.53 KB

File metadata and controls

41 lines (26 loc) · 1.53 KB

Tekton Toolset

The tekton toolset adds Tekton-specific helpers on top of the generic Kubernetes resource tools.

Enable it with:

kubernetes-mcp-server --toolsets core,config,tekton

PipelineRun operations

  • tekton_pipeline_start starts a Pipeline by creating a PipelineRun.
  • tekton_pipelinerun_lifecycle restarts a PipelineRun from its existing spec or cancels it by setting spec.status to Cancelled.
  • tekton_pipelinerun_logs collects logs from TaskRuns owned by a PipelineRun.

TaskRun operations

  • tekton_task_start starts a Task by creating a TaskRun.
  • tekton_taskrun_restart creates a new TaskRun from an existing TaskRun spec.
  • tekton_taskrun_logs resolves a TaskRun pod and returns step/sidecar logs.

Pipeline-as-Code Repository and operator TektonConfig resources are ordinary Kubernetes resources; use resources_list and resources_get for those.

List Pipeline-as-Code repositories in a namespace with resources_list:

{"apiVersion":"pipelinesascode.tekton.dev/v1alpha1","kind":"Repository","namespace":"my-namespace"}

Get the usual cluster TektonConfig with resources_get:

{"apiVersion":"operator.tekton.dev/v1alpha1","kind":"TektonConfig","name":"config"}

These tools are read-only except the start and lifecycle operations.

Troubleshooting prompt

Use the pipeline-troubleshoot prompt with namespace and name to gather PipelineRun status, related TaskRuns, logs, events, Pipeline-as-Code repositories, and TektonConfig context into one diagnostic prompt.