Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog verbosity: debug, info, warn, error.info
HARNESS_ORGNoOrganization ID. Used when org_id is not specified per tool call. If omitted, org_id must be provided explicitly. Agents can also discover orgs dynamically via harness_list(resource_type="organization").
HARNESS_API_KEYNoHarness personal access token or service account token. Required in single-user mode. Must NOT be set in multi-user mode.
HARNESS_PROJECTNoProject ID. Used when project_id is not specified per tool call. Agents can also discover projects dynamically via harness_list(resource_type="project").
HARNESS_BASE_URLNoHarness API/UI base URL for local stdio or self-hosted HTTP deployments. Set this to environments such as https://harness0.harness.io when running the server yourself. It does not affect the managed https://mcp.harness.io/mcp hosted endpoint.https://app.harness.io
HARNESS_MCP_MODENoDeployment mode: single-user (API key in config, used for all sessions) or multi-user (HTTP only, per-session credentials via x-harness-api-key and optional x-harness-account-id headers)single-user
HARNESS_TOOLSETSNoComma-separated toolset list. Empty loads default toolsets. Supports +name to explicitly include opt-in toolsets and -name to remove defaults.
HARNESS_READ_ONLYNoBlock all mutating operations (create, update, delete, execute). Only list and get are allowed.false
HARNESS_ACCOUNT_IDNoHarness account identifier. Auto-extracted from PAT/SAT tokens in single-user mode; multi-user sessions can provide their own via x-harness-account-id when the API key does not embed one.
HARNESS_ALLOW_HTTPNoAllow non-HTTPS HARNESS_BASE_URL. Set to true only for local development against a non-TLS Harness instance.false
HARNESS_AUDIT_FILENoAppend audit events to a newline-delimited JSON file in addition to stderr.
HARNESS_MAX_RETRIESNoRetry count for transient failures (429, 5xx).3
HARNESS_MCP_LOG_FILENoFile used for stdio disconnect/crash diagnostics when stderr may no longer be available.~/.claude/harness-mcp.log
HARNESS_API_TIMEOUT_MSNoHTTP request timeout in milliseconds.30000
HARNESS_MCP_AUTH_TOKENNoBearer token required on /mcp HTTP routes when set. Required by default when HTTP transport binds to a non-loopback host.
HARNESS_RATE_LIMIT_RPSNoClient-side request throttle (requests per second) to Harness APIs.10
HARNESS_MAX_BODY_SIZE_MBNoMax HTTP request body size in MB for http transport.10
HARNESS_PIPELINE_VERSIONNo(Alpha) Pipeline YAML version. 0 loads the pipeline resource type and excludes pipeline_v1; 1 loads pipeline_v1 and excludes pipeline.0
HARNESS_SKIP_ELICITATIONNoDeprecated — use HARNESS_AUTO_APPROVE_RISK=all instead. Kept for backward compatibility.false
HARNESS_AUDIT_WEBHOOK_URLNoHTTPS endpoint that receives batched audit events. HTTP URLs require HARNESS_ALLOW_HTTP=true for local development.
HARNESS_AUTO_APPROVE_RISKNoRisk-based auto-approve threshold for autonomous workflows. Values: none, low_write, medium_write, high_write, all.none
HARNESS_MCP_ALLOWED_HOSTSNoComma-separated hostnames allowed by HTTP transport Host-header validation. mcp.harness.io is allowed by default for localhost binds; add proxy/custom domains here.
HARNESS_AUDIT_WEBHOOK_TOKENNoOptional bearer token sent to the audit webhook.
OTEL_EXPORTER_OTLP_ENDPOINTNoEnables OpenTelemetry audit spans when the optional OpenTelemetry packages are installed.
HARNESS_AUDIT_WEBHOOK_FLUSH_MSNoMax time to hold audit events before webhook flush.5000
HARNESS_AUDIT_WEBHOOK_BATCH_SIZENoNumber of audit events to batch before webhook flush.10
HARNESS_MCP_ALLOW_UNAUTHENTICATED_HTTPNoExplicitly allow unauthenticated HTTP transport on non-loopback binds. Use only behind another authenticated control.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
harness_listA

List Harness resources with filtering and pagination. Accepts a Harness URL to auto-extract scope. For project-scoped types, pass org_id and project_id on the first call unless the field descriptions name a configured default.

harness_getA

Get a Harness resource by ID. Accepts a Harness URL to auto-extract identifiers. For failure analysis, prefer harness_diagnose.

harness_createA

Create a Harness resource. For pipelines/input sets: pass body as a YAML string directly (recommended for complex definitions), or use body.yamlPipeline (YAML string), or body.pipeline (JSON object). For remote pipelines, pass git details in params: external Git (store_type='REMOTE', connector_ref, repo_name, branch, file_path) or Harness Code (store_type='REMOTE', is_harness_code_repo=true, repo_name, branch, file_path). For others: call harness_describe for the body format.

harness_updateA

Update an existing Harness resource. For pipelines/input sets: pass body as a YAML string directly (recommended for complex definitions), or use body.yamlPipeline/body.pipeline. You can pass a Harness URL to auto-extract identifiers. Response includes openInHarness link to the updated resource when applicable.

harness_deleteA

Delete a Harness resource. You can pass a Harness URL to auto-extract identifiers. This is destructive and cannot be undone.

harness_executeA

Execute an action on a Harness resource: run/retry/interrupt pipelines, kill/restore FME feature flags, test connectors, sync GitOps apps, run chaos experiments. You can pass a Harness URL to auto-extract identifiers. Pass wait: true for pipeline run/retry to block until the execution reaches a terminal status — single tool call instead of an LLM polling loop. For HQL batch operations pass queries with resource_type='hql_query' and action='validate' or 'run'.

harness_diagnoseA

Diagnose a Harness resource — analyze failures, test connectivity, check health, or troubleshoot GitOps sync issues. Defaults to pipeline execution diagnosis. Accepts a Harness URL to auto-detect the resource type.

harness_searchA

Search across multiple Harness resource types. Returns results ranked by relevance. Accepts a Harness URL for scope.

harness_describeA

Describe available Harness resource types, their supported operations, and fields. No API call — returns local metadata only. Use this to discover what resource_types you can use with other harness_ tools.

harness_statusA

Get a live project health overview: recent failed executions, currently running executions, and recent deployment activity. You can pass a Harness URL to auto-extract org and project. Ideal first question: 'what's happening in my project right now?'

harness_schemaA

Fetch Harness YAML schema or examples for a resource type. Pipeline/template schemas are bundled from harness-schema; connector, environment, service, secret, and infrastructure schemas are fetched live from NG /yaml-schema (pass scope, org_id, project_id). release_process and release_activity schemas are fetched live from RMG /api/yamlSchema. Use without path for a summary of fields and available sections. Use with path to drill into a specific section. Use with example to fetch a named example YAML snippet. Use with example_search to find examples by keyword. Precedence: example > example_search > path > summary. Available schemas: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline, connector, environment, service, secret, infrastructure, release_process, release_activity.

Prompts

Interactive templates invoked by user choice

NameDescription
debug-pipeline-failureAnalyze a failed pipeline execution and suggest fixes. Accepts an execution ID, pipeline ID, or Harness URL.
pipeline_error_analysisAlias of debug-pipeline-failure — analyze a failed pipeline execution and suggest fixes. Accepts an execution ID, pipeline ID, or Harness URL.
create-pipelineGenerate a new Harness pipeline YAML from requirements
create-agentCreate and update Harness AI agent instances - standalone templates used as building blocks in pipelines. Agents contain a single agent step with connector-driven architecture requiring llmConnector (LLM access) and optional mcpConnectors (GitHub, Slack, Harness platform). Supports runtime inputs and task/rules-based instruction.
optimize-costsAnalyze cloud cost data and recommend optimizations for a Harness project
security-reviewReview security issues across Harness resources and suggest remediations
onboard-serviceWalk through onboarding a new service into Harness with environments and a deployment pipeline
dora-metrics-reviewReview DORA metrics (deployment frequency, change failure rate, MTTR, lead time) and suggest improvements
setup-gitops-applicationGuide through onboarding a GitOps application — verify agent, cluster, repo, and create the application
chaos-resilience-testDesign and run a chaos experiment to test service resilience
feature-flag-rolloutPlan and execute a progressive FME feature flag rollout across environments
migrate-pipeline-to-templateAnalyze an existing pipeline and extract reusable stage/step templates from it
delegate-health-checkCheck delegate connectivity, health, and token status with troubleshooting guidance
developer-portal-scorecardReview IDP scorecards for services and identify gaps to improve developer experience
cloud-cost-breakdownDeep-dive into cloud costs by service, environment, or cluster with trend analysis
commitment-utilization-reviewAnalyze reserved instance and savings plan utilization to find waste and optimize commitments
cost-anomaly-investigationInvestigate cost anomalies — determine root cause, impacted resources, and remediation
rightsizing-recommendationsReview and prioritize rightsizing recommendations, optionally create Jira or ServiceNow tickets
business-value-reviewGenerate a Cloud FinOps Business Value Review (BVR / QBR / quarterly executive report) for a Harness CCM customer. Gathers cost, allocation, commitment, recommendation, and anomaly data across the account, scores FinOps maturity (Crawl/Walk/Run across 7 dimensions), and authors a structured markdown report with an executive summary, per-module deep dives, cross-cutting insights, and a prioritized recommendations matrix.
vulnerability-triageTriage security vulnerabilities across pipelines and artifacts, prioritize by severity and exploitability
sbom-compliance-checkAudit SBOM and compliance posture for artifacts — license risks, policy violations, component vulnerabilities
supply-chain-auditEnd-to-end software supply chain security audit — provenance, chain of custody, policy compliance
security-exemption-reviewReview pending security exemptions and make batch approval or rejection decisions
bulk-exemption-createCreate STO security exemptions in bulk from issue filters or explicit issue IDs. Optimized for repeated component-level exemptions.
exempt-opa-failed-issuesCreate STO security exemptions for the issues that caused an OPA Policy step to fail a pipeline execution. Reads policy_evaluation results for the execution, pulls the execution's Pipeline Security issues + scan steps, correlates the deny signals to specific issue_ids, asks for confirmation, then bulk-creates exemptions.
access-control-auditAudit user permissions, over-privileged accounts, and role assignments to enforce least-privilege
code-reviewReview a Harness Code pull request — analyze diff, commits, checks, and comments to provide structured feedback
pr-summaryAuto-generate a pull request title and description from the commit history and diff of a branch
branch-cleanupAnalyze branches in a repository and recommend stale or merged branches to delete
pending-approvalsFind pipeline executions waiting for approval and present them for action
build-deploy-appEnd-to-end workflow: scan a repo, generate CI/CD pipelines in Harness, build a Docker image, generate K8s manifests, and deploy
deploy-ai-agentEnd-to-end workflow: ship an AI agent from an IDE to a cloud agent runtime (Google Agent Runtime or AWS AgentCore) through Harness CD — get code into a repo, build & push the agent image, then create the AiAgent service, environment, infrastructure, and a build→deploy pipeline
pipeline_summarizerAnalyze a pipeline execution — provides root cause analysis for failures and output summaries for successful steps. Supports whole-pipeline and single-step analysis.
summarize-pipelineAnalyze a pipeline execution — provides root cause analysis for failures and output summaries for successful steps. Supports whole-pipeline and single-step analysis.
add-metricStep-by-step: add a new metric to the open-source harness-evals SDK and optionally register it in the ai-evals control plane
run-evaluationUse AI Evals MCP resources to discover or create datasets, targets, metrics, wire an evaluation, and trigger a run
create-eval-suiteBuild a multi-evaluation suite in AI Evals: create suite, add members, optional suite run

Resources

Contextual data attached and managed by the client

NameDescription
execution-summaryRecent pipeline execution summaries (last 10).
pipeline schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
template schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
trigger schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
pipeline_v1 schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
template_v1 schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
inputSet_v1 schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
overlayInputSet_v1 schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.
agent-pipeline schemaHarness JSON Schema definitions (bundled). Valid schema names: pipeline, template, trigger, pipeline_v1, template_v1, inputSet_v1, overlayInputSet_v1, agent-pipeline. For connector, environment, service, secret, and infrastructure schemas, use the harness_schema tool (live fetch from NG /yaml-schema). For release_process and release_activity, use harness_schema (live fetch from RMG /api/yamlSchema) — they are not available via schema:/// resources.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/harness/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server