How to connect Harness with ChatGPT

Connect ChatGPT 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

How to connect Harness MCP with ChatGPT

ChatGPT can take action across your apps and files, stay with a project for hours, and turn a goal into finished materials like sheets, slides, and docs, not just answers.

In this guide, I will explain the easiest and most secure way to connect your Harness account to ChatGPT via Composio Connect, so it can manage pipelines, trigger executions, inspect run logs, update input sets, and rollback deployments through natural language commands without ever putting your account credentials at risk.

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

Also integrate Harness with

Why use Composio over default connectors?

  • Apps with read and write access. Default connectors mostly can read your data. Composio's Harness integration lets ChatGPT take actions like creating drafts, sending updates, labeling records, and more.
  • 2,000+ SaaS toolkits out of the box. Composio gives you instant access to a vast catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand.
  • Cross-app automation. Chain actions across multiple apps in a single run - fetch a thread, summarize it in Notion, and post highlights to Slack without leaving the conversation.

Prerequisites

Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.

Step-by-step: Connect Harness to ChatGPT

1. Install the Composio plugin

Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.

Install in ChatGPT

Composio plugin page in ChatGPT with the Install plugin button

You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.

2. Authenticate

After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.

Composio login and Allow access screen for ChatGPT

3. Start using Composio

That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Harness messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Harness.

Option 2: Add Composio as an MCP server

If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.

1. Open the MCP settings

In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.

ChatGPT settings showing the Plugins page with the MCP tab selected

2. Add the server

Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
ChatGPT Add server dialog with the name Composio, type Streamable HTTP, and the Composio MCP URL

Then click Save. The Composio server now appears in your MCP plugins list.

ChatGPT Plugins page showing the Composio MCP server added to the list

3. Authenticate

Click Authenticate on the Composio entry, log in via Composio, and click Allow access. Composio tools are then available in ChatGPT the same way as with the plugin.

What you can do after connecting Harness

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

Security + privacy notes (important)

  • Use least-privilege access: Only grant permissions you actually need.
  • Review OAuth permissions before approving: Make sure requested scopes match what you expect Composio and ChatGPT to do.
  • Keep write actions human-reviewed: For actions like sending messages, creating labels, or editing drafts, keep manual confirmation enabled.
  • Be careful with sensitive data: Avoid using this setup with highly sensitive information unless allowed by your personal, company, or client policies.
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