How to connect Harness to Claude

Connect Claude Web, Desktop and Cowork to Harness MCP. Trigger deployment pipeline for your-service now, rollback last successful deployment in project, and more using natural language, with authentication handled for you.

Harness logoHarness
Api Key

Harness is a Continuous Delivery platform exposing Core CD APIs to manage pipelines, executions, services, environments, and templates. Use it to automate and scale deployments with clear visibility and governance.

150 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Harness account to Claude via Composio Connect, enabling it to trigger deployment pipeline for your-service now, rollback last successful deployment in project, list recent failed pipeline executions across environments, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Harness with

Connecting Harness to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Harness account

Back in Claude, ask it to connect to Harness or give it any Harness-related task.

For example, ask Claude to:

  • "Trigger deployment pipeline for your-service now"
  • "Rollback last successful deployment in project"
  • "List recent failed pipeline executions across environments"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Harness account is ready to use.

What is the Harness Claude Connector, and what's possible with it?

The Harness MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Harness account. It provides structured and secure access to your organizations, projects, pipelines, executions, services, environments, and templates, so your agent can find deployment resources, review pipeline activity, check execution status, inspect service environments, and discover reusable templates on your behalf.

  • Organization and project discovery: Have your agent list accessible organizations and projects, then narrow the results by organization, module, or search terms.
  • Pipeline exploration: Direct your agent to find pipelines in a project by name, search text, or Git branch.
  • Execution monitoring: Let the agent review pipeline executions and filter them by pipeline, status, search text, or ownership.
  • Service and environment visibility: Instruct your agent to find project services by deployment type, tags, storage, GitOps state, or search text, and list environments that match your criteria.
  • Template discovery: Have your agent search account templates by state, type, name, description, or other search text.

Troubleshooting

1. Why does Claude not use the Composio connector for Harness?

The connector can show as connected, but Claude must use it in each Harness conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Harness again.

2. Why does Claude show an MCP server error before Harness connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Harness.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Harness.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Harness authorization link not work?

The Composio connector is one server. Your Harness account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Harness connection.
  • Composio creates a fresh Harness authorization link.
  • Open that link in your browser and finish the Harness sign-in.

4. Why do Harness actions fail after they worked before?

The Harness connection can expire or lose permission.

  • Ask Claude to inspect the Harness connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Harness account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Harness.
  • If the action still fails with a permission error, check that the connected account has that permission in Harness itself.

5. How do I switch to a different Harness account?

Claude can manage the Harness connection for you.

  • Ask Claude to disconnect or delete the current Harness account.
  • Ask Claude to connect Harness again.
  • Open the new Composio authorization link for Harness.
  • Sign in with the other Harness account in the browser.
  • After the account connects, ask Claude to retry the Harness task.

6. Why is my Harness connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Harness connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Harness tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Harness.
TOOLS

Supported Tools

Every Harness action and event your agent gets out of the box.

Add Approval Activity

Approve or reject a Harness pipeline approval instance, optionally recording comments and custom approver inputs.

Add Execution Tags

Add tags to a completed Harness pipeline execution.

Check Environment Allowed Values

Check for allowed-values usage in Harness environments for the connected account.

Check Execution Retry

Check whether a Harness pipeline execution can be retried using its plan execution ID, organization, and project.

Check Rollback Eligibility

Check whether a Harness service instance can be rolled back using its instance key and infrastructure mapping ID.

Check Service Allowed Values

Check for allowed-values usage in Harness services in the connected account.

Convert Pipeline to DAG

Convert an existing Harness sequential pipeline to DAG format by adding depends_on fields to stages.

Create Environment

Create a Production or PreProduction environment in the connected Harness account, with optional organization and project identifiers, display details, tags, and YAML.

Create Environment Group

Create a Harness environment group from its YAML definition in the connected account.

Create Environments Batch

Create up to 1000 Harness environments in one request with partial success support.

Create Infrastructure

Create an infrastructure definition in a Harness environment using its YAML specification.

Create Input Set

Create a Harness pipeline input set from its complete YAML definition in a specified organization, project, and pipeline.

Create Organization

Create a Harness organization in the connected account with optional identifier, name, description, and tags.

Create Overlay Input Set

Create an overlay input set for a Harness pipeline from its complete YAML definition, combining referenced input sets.

Create Pipeline

Create a Harness pipeline from its complete YAML definition in a specified organization and project.

Create Pipeline Trigger

Create a Harness pipeline trigger resource from YAML in an organization and project, optionally specifying the user or service account that executes it.

Create Pipeline Trigger From YAML

Create a Harness pipeline trigger from a complete raw YAML definition in an organization and project.

Create Project

Create a Harness project in the connected account, optionally in a specified organization, with a name, identifier, modules, color, description, and tags.

Create Service

Create a service in the connected Harness account, with optional organization and project identifiers, name, description, tags, and YAML definition.

Create Service Override

Create a Harness V2 service override for an environment, service, infrastructure or cluster in the connected account.

Create Services Batch

Create services through the Harness batch service endpoint in the connected account.

Create Services Partial Batch

Create multiple services in the connected Harness account with partial success support.

Create Template

Create a Harness template in the connected account scope.

Delete environment

Delete a Harness environment by identifier in the connected account.

Delete environment group

Delete a Harness environment group by identifier in the connected account.

Delete environment service override

Delete a Harness environment service override in the connected account.

Delete infrastructure

Delete a Harness infrastructure by identifier within an environment in the connected account.

Delete input set

Delete a Harness pipeline input set by identifier in the specified organization, project, and pipeline of the connected account.

Delete organization

Delete a Harness organization by its identifier in the connected account.

Delete pipeline

Delete a Harness pipeline by identifier in a specified organization and project of the connected account.

Delete Pipeline Trigger

Delete a Harness pipeline trigger by identifier in the specified organization, project, and target pipeline of the connected account.

Delete project

Delete a Harness project by identifier in the connected account.

Delete service

Delete a Harness service by identifier in the connected account.

Delete service override

Delete a Harness service override by its identifier in the connected account.

Delete template version

Delete a particular version of an account-scoped Harness template by template identifier and version label.

Download Execution Input File

Download an uploaded runtime input file from a Harness pipeline execution, selecting its upload step execution and file name.

Download Input File

Download a Harness pipeline input file from its storage file path.

Execute Pipeline

Start a Harness pipeline execution with runtime input YAML in the selected organization and project.

Execute Pipeline Stages

Start an execution of selected Harness pipeline stages in an organization and project, with optional runtime input YAML and expression values.

Execute Pipeline with Input Sets

Start a Harness pipeline execution by merging input set references, with optional stage selection and final runtime input YAML.

Get Artifact and Manifest Trigger History

Get one page of artifact and manifest trigger event history based on build source type.

Get Environment

Get a Harness environment by identifier in the connected account, optionally specifying its organization, project, and deleted state.

Get Environment Group

Get a Harness environment group by identifier in the connected account.

Get Execution

Fetch a Harness pipeline execution's summary and execution graph by plan execution ID.

Get Execution Annotation Content

Fetch the full content of a specific annotation on a Harness pipeline execution using its plan execution ID and annotation context ID.

Get Execution Annotations

Fetch annotations for a specific Harness pipeline execution, including annotation summaries, styles, priorities, context IDs, and timestamps.

Get Execution Graph

Fetch a Harness pipeline execution graph by plan execution ID within an organization and project.

Get Execution Input Set

Retrieve the runtime input set YAML used by a pipeline execution, including its template YAML, input set details, branch, and resolved YAML when available.

Get Execution Metadata

Retrieve metadata for an existing Harness pipeline execution by its plan execution ID, including execution YAML with runtime inputs and templates resolved.

Get Execution Notes

Retrieve notes for an existing Harness pipeline execution by its plan execution ID.

Get Execution Policy Evaluation

Get one page of governance policy evaluations for a Harness pipeline execution, including policy-set results, policy denial messages, and pagination metadata.

Get Execution Retry History

Retrieve retry history for a Harness pipeline execution, including attempt IDs, timestamps, statuses, run sequences, and retried or skipped stages.

Get Execution Subgraph

Fetch the Harness pipeline execution subgraph for a retried step-group node execution ID within a plan execution, organization, and project.

Get Execution URL

Retrieve the Harness UI URL for an existing pipeline execution using its plan execution ID, pipeline identifier, organization, and project.

Get Execution Workflow Graph

Fetch a Harness pipeline execution's workflow graph for visualization by plan execution ID.

Get Helm Command Options

Retrieve available Helm command names for a Harness service specification type, optionally filtered by Helm version, manifest store type, and step type.

Get Infrastructure

Get a Harness infrastructure definition by its identifier and environment in the connected account.

Get Input Set

Fetch a Harness pipeline input set by identifier within an organization, project, and pipeline.

Get Input Sets in Bulk

Retrieve multiple input sets by identifier for a Harness pipeline.

Get Kubernetes Command Options

Retrieve available Kubernetes command options for a Harness service specification type, optionally filtered by deployment step type.

Get Kustomize Command Options

Retrieve the available Kustomize command options for Harness services, such as Build.

Get Organization

Get a Harness organization by identifier in the connected account, including its name, description, tags, timestamps, and Harness-managed status.

Get Overlay Input Set

Fetch a Harness overlay input set by identifier within an organization, project, and pipeline.

Get Pipeline

Fetch a Harness pipeline by identifier within an organization and project.

Get Pipeline Summary

Fetch a Harness pipeline summary by identifier within an organization and project.

Get Pipeline Trigger

Retrieve one Harness pipeline trigger by its identifier, organization, project, and target pipeline.

Get Pipeline Trigger Catalog

Retrieve the available Harness pipeline trigger categories and their supported trigger types for the connected account.

Get Pipeline Trigger Details

Fetch a Harness pipeline trigger's detailed health, polling and webhook registration status, latest execution, YAML definition, and executor identity.

Get Project

Get a Harness project by identifier in the connected account, optionally specifying its organization.

Get Queued Webhook Execution Details

Get processing and execution details for a Harness webhook event while its trigger is queued and has not yet triggered the pipeline.

Get Runtime Input Template

Fetch a Harness pipeline's runtime input template YAML, expressions requiring replacement, and entity input metadata.

Get Service

Get a Harness service by identifier in the connected account, optionally specifying its organization, project, and deleted state.

Get Service Override

Retrieve a Harness service override by its identifier in the connected account, optionally scoped to an organization and project.

Get Service Plugin Info

Retrieve available runtime languages and serverless versions for Harness service plugins.

Get Stable Template

Retrieve the stable version of a Harness template at account scope, including template YAML and Git details.

Get Template Input Schema

Retrieve the input schema for a version of an account-scoped Harness template, including input types, validation rules, field properties, and runtime or fixed-value dependencies.

Get Template Version

Retrieve a particular version of an account-scoped Harness template, including its YAML, version metadata, Git details, and optional input YAML.

Get Trigger Event Correlation

Get one page of Harness trigger history for an event correlation ID, including original payload, headers, processing outcomes, and pagination details.

Get Trigger Event Execution Correlation

Get one page of Harness trigger history correlated by event correlation ID.

Get Trigger Event History

Get one page of event history for a Harness pipeline trigger, including processing outcomes and target execution summaries.

Get Trigger Polled Responses

Get all polled responses for a Harness pipeline trigger, including polled keys, polling document ID, and perpetual polling task state and delegate details.

Get Webhook Execution Details

Get Harness webhook event processing and pipeline execution details by event ID.

Get Webhook Processing Details

Retrieve Harness webhook event processing details by event ID, including whether the event was found, its processing status, associated trigger and pipeline execution, original payload, runtime inputs, and warnings.

Import environment

Import and create a Harness environment from a YAML file in a Git repository.

Import infrastructure

Import and create a Harness infrastructure definition from a YAML file in a Git repository.

Import Pipeline

Import and create a Harness pipeline from a YAML file in a Git repository into a specified organization and project.

Import Service

Import a Harness service YAML from a Git repository in the connected account.

Import Template

Import a Harness template from Git at the connected account scope.

Interrupt Execution

Issue an interrupt on a Harness pipeline execution in a project.

Interrupt Execution Node

Apply an AbortAll or UserMarkedFailure interrupt to a specific running step or stage in a Harness pipeline execution.

List Environment Access

List accessible Harness environments, optionally filtered by organization, project, environment identifiers, environment group, search text, or environment type.

List Environment Groups

List one page of Harness environment groups at account, organization, or project scope.

List Environments

List one page of environments in a Harness project, optionally filtered by identifiers or search text.

List Environment Service Overrides

List one page of service overrides for a Harness environment, optionally filtered by service.

List Execution Identifiers

List one page of pipeline execution identifiers and statuses in a Harness project using entity and tag filters, optionally narrowed to a pipeline or Git branch.

List Execution Outlines

List one page of Harness pipeline execution outlines by pipeline identifier or execution IDs, optionally filtered by status and queued time.

List Pipeline Executions

List one page of pipeline executions in a Harness project, optionally filtered by pipeline, status, search text, or current-user ownership.

List Infrastructures

List one page of infrastructure definitions in a Harness environment.

List Input Set Metadata

List one page of regular input set metadata across Harness pipelines in a project, excluding overlay input sets.

List Input Sets

List one page of input sets for a Harness pipeline, optionally filtered by type, search text, and Git branch or repository.

List Organizations

List one page of Harness organizations accessible to the connected account, optionally filtered by identifier or search text.

List Pipelines

List one page of pipelines in a Harness project, optionally filtered by search text or Git branch.

List Pipeline Triggers

List one page of API-managed triggers for a Harness pipeline, including trigger health, webhook details, YAML, and last execution details.

List Projects

List one page of Harness projects accessible to the connected account, optionally within an organization or filtered by module and search text.

List Projects by Organizations

List one page of accessible Harness projects, optionally filtering by multiple organizations, modules, favorites, identifiers, or search text.

List Service Access

List one page of Harness service-access records in the connected account.

List Service Hook Actions

Retrieve the actions available for service hooks for a Harness service specification type.

List Services

List one page of services in a Harness project, optionally filtered by identifiers, deployment type, tags, storage, GitOps state, or search text.

List Templates

List one page of account-scoped Harness templates, optionally filtered by template state, entity or child type, identifier, name, description, or search text.

List Trigger Events

List one page of trigger event history for a Harness pipeline, including event outcomes, messages, and trigger metadata.

Merge Input Sets

Merge Harness input set references into runtime input YAML for a pipeline, optionally selecting stages and adding final override YAML.

Move environment to Git

Move a Harness environment's YAML configuration between inline storage and Git.

Move infrastructure to Git

Move a Harness infrastructure's YAML configuration between inline storage and Git.

Move Service Override Config

Move a Harness service override YAML configuration from inline storage to a remote repository, or from remote storage to inline.

Move service to Git

Move a Harness service's YAML configuration between inline storage and Git.

Refresh Input Set

Force-refresh the Git file cache for a remote Harness pipeline input set and return the freshly fetched YAML, identity, tags, and validity details.

Refresh Pipeline

Force-refresh the Git file cache for a remote Harness pipeline and return the freshly fetched pipeline YAML and validation, governance, and storage metadata.

Refresh Pipeline Template Inputs

Recursively refresh and update all template inputs in a Harness pipeline.

Resolve Manual Execution

Resume a manual execution node or mark it as failed in a Harness pipeline execution.

Retry Pipeline

Retry a previously executed Harness pipeline from selected stages in an organization and project.

Retry Pipeline With Expressions

Retry a previous Harness pipeline execution from selected stages with optional runtime input YAML and expression values.

Rollback Service

Trigger a Harness service rollback using its instance key and infrastructure mapping identifier.

Rollback Service to Environment

Trigger a Harness service rollback in a specific environment, optionally selecting infrastructure, artifact, and chart version.

Rollback Targets Batch

Trigger rollback for multiple service and environment targets in the connected Harness account, using the latest pipeline execution group per target.

Set Stable Template Version

Mark an existing Harness template version as stable at account scope.

Update Environment

Update an existing Harness environment's definition, type, name, tags, or YAML at account, organization, or project scope.

Update environment Git metadata

Update the Git metadata of an existing remote Harness environment and return its identifier.

Update Environment Group

Update an existing Harness environment group by identifier using its YAML definition.

Update Execution Notes

Update the notes for a Harness pipeline execution in a project.

Update Infrastructure

Update an existing Harness infrastructure definition by identifier using its complete YAML specification.

Update Infrastructure Git Metadata

Update Git metadata for an existing remote Harness infrastructure in an environment.

Update Input Set

Update an existing Harness pipeline input set using its complete replacement YAML definition.

Update Input Set Git Metadata

Update Git metadata for an existing remote Harness pipeline input set.

Update Organization

Update settings of an existing Harness organization in the connected account.

Update Overlay Input Set

Update an existing Harness pipeline overlay input set with its complete replacement YAML definition.

Update Pipeline

Update a Harness pipeline by identifier using its complete YAML definition.

Update Pipeline Git Metadata

Update Git metadata for a remote Harness pipeline in the specified organization and project.

Update Pipeline Trigger

Update an existing Harness pipeline trigger from replacement YAML in an organization and project, optionally setting its executor identity and a conditional entity tag.

Update Pipeline Trigger From YAML

Update an existing Harness pipeline trigger with a complete replacement YAML definition in an organization and project.

Update Project

Update a Harness project's details, including its name, description, color, enabled modules, and tags.

Update Service

Update an existing Harness service's name, description, tags, or YAML at account, organization, or project scope.

Update service Git metadata

Update the Git metadata of an existing remote Harness service and return its identifier.

Update Service Override

Update a Harness service override in the connected account using its environment reference and override type, optionally specifying its identifier, organization, project, service, infrastructure or cluster.

Update service override Git metadata

Update the Git connector, repository name or file path of an existing remote Harness service override.

Update template Git metadata

Update Git repository, file path, and connector metadata for an account-scoped Harness template across multiple versions.

Update template version

Update an existing template version at account scope, including YAML, metadata, and optional Git settings.

Upsert Environment

Create or update a Harness environment by identifier at account, organization, or project scope.

Upsert Environment Service Override

Create or update a service override for a Harness environment in the connected account.

Upsert Service

Create or update a Harness service by identifier at account, organization, or project scope.

Validate Pipeline Template Inputs

Validate template inputs in a stored Harness pipeline's YAML specification.

FAQ

Frequently asked questions

Start with Harness.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Harness tool your agent needs.Free to start.

Start building