MCP server · Audited from source
harness-mcp-v2
by harness/mcp-serverMIT licenceAudited 12 Oct 2026 · source f5ffcf9c8f3d
Is it safe? No — BLOCK, grade D (69/100). It exposes 282 tools: 259 read, 21 write and 2 destructive. The audit recorded 25 findings (0 critical, 1 high, 6 medium, 13 low). Maintainer's description: Harness’ official MCP Server
Cite
Cite this page
ModelsAtlas. “harness-mcp-v2 (harness/mcp-server)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/harness/mcp-server
Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Code injection at src/audit/sinks/otel.ts:13. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
25 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared7 observations
- NetworkDeclared10 observations
- ShellDeclared6 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
Findings (25)
Sorted by severity
HIGHCode injectioncode.eval_exec · src/audit/sinks/otel.ts:13
return await (Function("m", "return import(m)")(moduleName) as Promise<unknown>);- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
MEDIUMNetwork egressnet.raw_ip · Dockerfile:71
CMD ["node", "-e", "const port=process.env.PORT||'3000';fetch(`http://127.0.0.1:${port}/health`).then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · src/registry/toolsets/gitops.ts:1689
" {list:{elements:[{cluster:'staging', url:'https://1.2.3.4'}, {cluster:'prod', url:'https://2.3.4.5'}]}}\n" +- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · src/registry/toolsets/gitops.ts:1704
" {matrix:{generators:[{list:{elements:[{cluster:'staging', url:'https://1.2.3.4'}]}}, {git:{repoURL:'...', revision:'HEAD', directories:[{path:'apps/*'}]}}]}}\n" +- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · tests/client/harness-client.test.ts:380
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · tests/client/harness-client.test.ts:384
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
harness_delete, pod-delete
- Why
- 2 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.credential_store · tests/registry/chaos-probe.test.ts:322
env: [{ name: "KUBECONFIG", value: "/root/.kube/config" }],- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.credential_store · tests/registry/chaos-probe.test.ts:336
env: [{ name: "KUBECONFIG", value: "/root/.kube/config" }],- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.traversal · src/audit/sinks/jsonl-file.ts:4
import { createLogger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/audit/sinks/otel.ts:2
import { createLogger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/audit/sinks/stderr.ts:2
import { createLogger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/audit/sinks/webhook.ts:2
import { createLogger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/registry/toolsets/alerts.ts:2
import { buildBodyNormalized } from "../../utils/body-normalizer.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:111
if curl --fail --silent --show-error http://127.0.0.1:3000/health; then
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:122
--request POST http://127.0.0.1:3000/mcp)"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@hono/node-server, @modelcontextprotocol/sdk, adm-zip, dotenv, express, hono, jsonwebtoken, yaml
- Why
- 20 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · README.md:121
| `/mcp` | `POST` | MCP JSON-RPC endpoint (initialize + session requests) |
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · README.md:1603
When packaging a directory, include the source, manifests, lockfiles, configuration, and intended uncommitted edits needed to build it. Exclude credentials, `.git`, installed dependencies, and generat
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOInventory / provenanceinv.oversize · src/data/schemas/v0/pipeline.ts
src/data/schemas/v0/pipeline.ts
- Why
- 4100249 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · src/data/schemas/v0/template.ts
src/data/schemas/v0/template.ts
- Why
- 5075173 bytes not read
- Fix
- —
INFOPrompt injectionprompt.authority_framing · README.md:5
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 11 consolidated tools and 261 resource types.
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.authority_framing · <listing:description>:1
Give AI agents full access to the Harness.io platform — manage pipelines, deployments, cloud costs, chaos engineering, feature flags, SEI, and 125+ resource types through 11 MCP tools
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.credential_read · docs/gemini.md:142
- Go to Harness Platform > Account Settings > Access Management > API Keys
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
282 declared in source · 2 destructive
2 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
harness_delete | No description in the source | destructive |
pod-delete | Pod delete chaos | destructive |
Deploy | Prod deploy | write |
applied_at_start | APPLIED-tab only: appliedAtStartTime epoch ms. Ignored for OPEN. Do not send the Open-tab calendar as days_back. | write |
date_start | Start date for metric calculation | write |
harness_create | No description in the source | write |
harness_execute | No description in the source | write |
harness_update | No description in the source | write |
import_request_id | Required. importRequestId from the import execute response. | write |
include_policy_set_count | Include count of policy sets referencing each policy | write |
is_custom | (get only) Whether the check is a custom check. Set to true for custom checks; defaults to false. | write |
metric_set_id | Filter by metric set UUID | write |
order | Sort order | write |
order_by_direction | Order direction | write |
order_by_field | Field to order by | write |
org_id | Optional — not supported; use fme_segment_definition execute actions for Harness-native segment key operations. | write |
phase_id | Optional authored phase id. When set, limits the list to the latest artifacts_reported attempt of that phase. | write |
policy_set_ref | OPA policy set reference | write |
project_id | Optional — not supported; use fme_segment_definition execute actions for Harness-native segment key operations. | write |
Acme | No description in the source | read |
Service | A service | read |
action | Filter audit logs by action type | read |
activity_type | Comma-separated activity types | read |
after | Only entries created at/after this timestamp (unix millis) | read |
agent_id | Scope-prefixed GitOps agent identifier (required). | read |
all | When true, include delegates in child org/project scopes under the requested scope. Omit for the current scope only. | read |
annotations | Filter by annotation key(s). Only types with at least one matching annotation are returned. | read |
annotator_type | human | automated | read |
anomaly_view | View type for anomaly grouping | read |
app_name | GitOps application name | read |
applied_at_end | APPLIED-tab only: appliedAtEndTime epoch ms. Ignored for OPEN. | read |
approval_status | Approval status filter | read |
approval_type | Approval type filter | read |
artifact_id | Artifact ID to list components for | read |
artifact_type | Filter by artifact type (e.g., CONTAINER, FILE) | read |
aspect | Which BA data to fetch | read |
audit_resource_type | Filter audit logs by resource type (renamed from resource_type to avoid conflict with MCP parameter) | read |
authentication | Provider authentication object {type, spec}. Use secret references only (e.g. spec.tokenRef= | read |
auto_upgrade | Filter by auto upgrade status | read |
before | Only entries created before this timestamp (unix millis) | read |
branch | Branch to filter executions | read |
budget_sort_type | Sort field | read |
categories | Security violation categories to include | read |
category | Connector category filter | read |
checkout-experiment | d | read |
cloud_filter | Filter by cloud provider | read |
commander | Filter by incident commander (multi-value). Validated against the project | read |
committer | Filter by committer | read |
comparisons | Optional filter to a subset of the experiment | read |
connectivity_statuses | Filter by connectivity status | read |
connector_connectivity_modes | Filter by connectivity mode | read |
connector_identifiers | Filter by connector identifiers (comma-separated) | read |
connector_names | Filter by connector names (comma-separated) | read |
cost_buckets | Cost bucket(s) within the cost category. Comma-separated for multiple (e.g. | read |
cost_category | Cost category name to filter by (must pair with cost_buckets). Use with cost_recommendation_filter to list teams/buckets. | read |
created_after | Only alerts created at or after this time (ISO-8601, e.g. 2026-05-01T00:00:00Z) | read |
created_before | Only alerts created at or before this time (ISO-8601) | read |
created_date_from | Filter evaluations created after this epoch-millis timestamp. ⚠️ IMPORTANT: when omitted, the upstream policy-mgmt API silently defaults to | read |
created_date_to | Filter evaluations created before this epoch-millis timestamp | read |
cursor | Cursor for the next page (from previous response pagination.next_cursor) | read |
dataset_id | Parent dataset UUID | read |
date_end | End date for metric calculation | read |
days_back | OPEN/IGNORED freshness window: lastProcessedAt within this many UTC days (CCM default 4). Do NOT map the UI date picker here — that picker is appliedAt for APPLIED recs. Omitted automatically when recommendation_states is APPLIED only. | read |
dbinstance_id | Instance identifier — required | read |
dbschema_id | Schema identifier — required to list instances | read |
delegate_group_identifier | Filter by delegate group identifier | read |
delegate_instance_filter | Filter by delegate instance | read |
delegate_name | Filter delegates by name | read |
delegate_type | Delegate type filter | read |
deleted | Include soft-deleted packages | read |
dependency_type | Filter by dependency type (DIRECT or TRANSITIVE) | read |
deplay-action-01 | optional desc | read |
deployed_after | Only deploys at or after this time (ISO-8601, e.g. 2026-05-01T00:00:00Z) | read |
deployed_before | Only deploys at or before this time (ISO-8601) | read |
deployment_type | Filter by deployment type (e.g. Kubernetes, ECS) | read |
description | Filter by connector description | read |
drift_id | Drift ID from scs_sbom_drift calculate response | read |
end_time | End time in ISO 8601 format (e.g. 2025-07-10T23:59:59Z). Default: now. | read |
enforcement_id | Enforcement ID (from artifact overview violations.enforcementId) | read |
entity | Filter by entity identifier | read |
entity_identifier | Entity identifier in | read |
entity_type | Filter global templates by entity type | read |
env_type | Environment type filter | read |
environment | Filter by environment (multi-value, OR-combined). Validated against the project | read |
environment_id | FME environment ID (get from fme_environment) | read |
epss | EPSS probability bucket (single select). | read |
epss_percentile | EPSS percentile bucket (single select). | read |
eval_id | Evaluation UUID | read |
event_groups | Event groups to include (multi-value, OR-combined). Omit for all named groups — which is not every event: | read |
event_type_ids | Filter by base event type IDs | read |
exception_id | Filter by exception ID | read |
exclude_rego | Exclude rego source from list response | read |
exclude_repo_patterns | Glob patterns matching target.name on repository targets (sto-core excludeRepoPatterns). | read |
execution_id | Filter by pipeline plan execution ID (e.g. | read |
exemption_statuses | Comma-separated statuses | read |
experiment_id | Experiment ID (get from fme_experiment). Required. | read |
exploitability | Exploitability filter. | read |
favorites | Only return entities the current user has favorited | read |
feature_flag_name | Feature flag name whose definitions to list. Required. | read |
feature_type | Productivity feature type | read |
filter_type | Which groups to include at this scope | read |
folder_id | Filter by CCM folder ID | read |
folder_name_pattern | Filter folders by name pattern (substring match) | read |
freeze_status | Filter by freeze status | read |
git_ref | Git reference (branch/tag) filter | read |
global | When true, accesses global templates (list: passes isGlobal=true; get: forces accountIdentifier to __GLOBAL_TEMPLATES_ACCOUNT_ID__) | read |
granularity | Time granularity | read |
group | Kubernetes API group filter (e.g. | read |
group_by | Group results by field. Use predefined fields (region, product, etc.) OR any label key name (env, team, app, environment, etc.) | read |
harness_describe | No description in the source | read |
harness_diagnose | No description in the source | read |
harness_get | No description in the source | read |
harness_list | No description in the source | read |
harness_schema | No description in the source | read |
harness_search | No description in the source | read |
harness_status | No description in the source | read |
has_module | Filter by module presence (hasModule) | read |
host_name | Filter by host name | read |
identifier_filter | Filter by policy identifier | read |
identifiers | Optional list of File Store identifiers to fetch details for (repeatable query param) | read |
ids | Filter to specific metric IDs | read |
impacted_service | Filter by impacted Harness service identifier (multi-value, OR-combined). Validated against the project | read |
include_child_scopes | Include evaluations from child scopes | read |
include_directories | If true, include directories in the listing as well as files. | read |
include_meta | Include list-envelope counts ( | read |
include_parent_scopes | Include settings that exist only at parent scopes | read |
inherited | Include rules inherited from parent spaces (true/false) | read |
inheriting_credentials_from_delegate | Filter connectors inheriting credentials from delegate | read |
integration_type | AI coding assistant type | read |
is_cluster_hourly_data | Whether to use cluster hourly data | read |
is_cluster_query | Whether this is a cluster query | read |
issue_types | Comma-separated issue types | read |
key | Metadata key whose values to enumerate (required) | read |
kind | Kubernetes resource kind filter | read |
kinds | Filter by object kind(s). Pass one or more OBJECT_KIND_* values. | read |
label | Filter by label | read |
lifecycle | Comma-separated list of lifecycles to filter on (e.g. | read |
limit | Result limit | read |
match_type | How name is matched. Ignored when name is omitted. | read |
metadata | Filter by metadata using key:value format | read |
metadata_only | When true, fetches only template metadata via list-metadata — faster than full list | read |
metric | DORA metric to fetch | read |
metric_ids | Optional display filter to a subset of metrics. Never affects multiple comparison correction, which is always computed from the metric | read |
metric_type | Metric to retrieve | read |
migration_type | Filter by migration type | read |
min_amount | Minimum actual amount threshold | read |
min_anomalous_spend | Minimum anomalous spend threshold | read |
min_saving | Minimum monthly savings. Default 1 (Open/Ignored tabs). Default 0 when recommendation_states is APPLIED only. Pass 0 to include sub-$1 recs. | read |
module | Filter audit logs by module | read |
module_type | Module type (e.g. CD, CI) | read |
my-name | desc | read |
my_deployments | Show only my deployments | read |
name | Filter delegate tokens by name | read |
namespace | Kubernetes namespace filter | read |
new-apm-probedvdv | No description in the source | read |
new-custom-script-action-8s3 | optional desc | read |
node_execution_id | Node execution ID to filter by step | read |
object_kind | Filter by type kind | read |
object_type | Type of object to list (e.g. Table) — required for list | read |
offset | Pagination offset | read |
only_favorites | Only favorited projects | read |
only_true_positive_issue_types | Issue types that must have a TRUE_POSITIVE triage verdict to stay in scope | read |
origin_statuses | Comma-separated origin statuses. | read |
origins | Comma-separated origin layers. | read |
oss_risk_filter | Filter by OSS risk category. Comma-separated values from: DEFINITE_EOL, DERIVED_EOL, CLOSE_TO_EOL, UNMAINTAINED, OUTDATED | read |
owned_by_me | Only return entities owned by the current user | read |
owner | Comma-separated list of owner references to filter on | read |
package_id | Package ID to scope the file search | read |
package_ids | Comma-separated package IDs | read |
package_kind | Package kind (huggingface model/dataset, terraform module/provider) | read |
package_name | Filter by package name | read |
package_type | Filter registries by package type | read |
page | Page number (0-based) | read |
page_token | Pagination token from a previous list response | read |
parent_name | Filter to this parent name (Feature Flag/AI Config/Config name matching parent_type). Unknown or mismatched name returns 404. | read |
parent_type | Parent kind to list. Required. FEATURE_FLAG and AI_CONFIG are implemented; CONFIG returns 404. | read |
path | File path filter | read |
perspective_id | Cost perspective identifier | read |
perspective_name | Filter by perspective name(s) (comma-separated) | read |
phase_identifier | Filter to activities in a specific phase | read |
pipeline_id | Pipeline identifier to filter executions | read |
pipeline_ids | Comma-separated pipeline IDs | read |
principal_type | Principal type filter | read |
priority | Filter by priority option id (multi-value, OR-combined) | read |
priyanshu-http-probe-1 | ops desc | read |
product_names | Comma-separated scanner product names (e.g. | read |
profile_id | Business alignment profile ID | read |
provider | LLM provider (required) | read |
purl | Package URL of the component (e.g. pkg:npm/[email protected]) — required | read |
query | The semantic search query (e.g. | read |
reachability | Reachability filter. | read |
recommendation_states | OPEN (default, matches Open tab), APPLIED, or IGNORED (expands to IGNORED+TEMPORARILY_IGNORED). Comma-separated. | read |
region | Optional provider region (e.g. for Bedrock/Vertex) | read |
registry_id | Registry ID to scope the file search | read |
registry_ids | Comma-separated registry IDs to filter within | read |
repo_creds_id | Filter by repository credentials ID | read |
reported_after | Only incidents reported after this time (ISO-8601) | read |
reported_before | Only incidents reported before this time (ISO-8601) | read |
resource_group_identifier | Resource group identifier filter | read |
resource_group_identifiers | Filter by resource group identifiers (comma-separated) | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
f5ffcf9c8f3d
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about harness-mcp-v2
What is the harness-mcp-v2 MCP server?
What tools does harness-mcp-v2 expose?
Is harness-mcp-v2 safe to connect to an agent?
What credentials does harness-mcp-v2 need?
How does harness-mcp-v2 run?
How current is this page?
I already installed harness-mcp-v2. What should I do?
Can the verdict change?
Sources
- harness/mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit f5ffcf9c8f3dObserved · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the harness-mcp-v2 MCP server?
- What tools does harness-mcp-v2 expose?
- Is harness-mcp-v2 safe to connect to an agent?