harness-mcp-v2 3.2.21 → 3.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -9
- package/build/data/schemas/v0/pipeline.d.ts.map +1 -1
- package/build/data/schemas/v0/pipeline.js +975 -211
- package/build/data/schemas/v0/pipeline.js.map +1 -1
- package/build/data/schemas/v0/template.d.ts.map +1 -1
- package/build/data/schemas/v0/template.js +1020 -239
- package/build/data/schemas/v0/template.js.map +1 -1
- package/build/data/schemas/v1/pipeline.d.ts.map +1 -1
- package/build/data/schemas/v1/pipeline.js +8 -1
- package/build/data/schemas/v1/pipeline.js.map +1 -1
- package/build/data/schemas/v1/template.d.ts.map +1 -1
- package/build/data/schemas/v1/template.js +8 -1
- package/build/data/schemas/v1/template.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/registry/extractors.d.ts +28 -1
- package/build/registry/extractors.d.ts.map +1 -1
- package/build/registry/extractors.js +167 -10
- package/build/registry/extractors.js.map +1 -1
- package/build/registry/index.d.ts.map +1 -1
- package/build/registry/index.js +9 -1
- package/build/registry/index.js.map +1 -1
- package/build/registry/toolsets/access-control.js +1 -1
- package/build/registry/toolsets/access-control.js.map +1 -1
- package/build/registry/toolsets/agents.js +6 -6
- package/build/registry/toolsets/agents.js.map +1 -1
- package/build/registry/toolsets/alerts.d.ts +3 -0
- package/build/registry/toolsets/alerts.d.ts.map +1 -0
- package/build/registry/toolsets/alerts.js +239 -0
- package/build/registry/toolsets/alerts.js.map +1 -0
- package/build/registry/toolsets/connectors.js +1 -1
- package/build/registry/toolsets/connectors.js.map +1 -1
- package/build/registry/toolsets/deploys.d.ts.map +1 -1
- package/build/registry/toolsets/deploys.js +21 -8
- package/build/registry/toolsets/deploys.js.map +1 -1
- package/build/registry/toolsets/environments.js +1 -1
- package/build/registry/toolsets/environments.js.map +1 -1
- package/build/registry/toolsets/incidents.d.ts.map +1 -1
- package/build/registry/toolsets/incidents.js +43 -16
- package/build/registry/toolsets/incidents.js.map +1 -1
- package/build/registry/toolsets/infrastructure.js +1 -1
- package/build/registry/toolsets/infrastructure.js.map +1 -1
- package/build/registry/toolsets/pipelines.d.ts.map +1 -1
- package/build/registry/toolsets/pipelines.js +142 -18
- package/build/registry/toolsets/pipelines.js.map +1 -1
- package/build/registry/toolsets/related-activities.d.ts +29 -0
- package/build/registry/toolsets/related-activities.d.ts.map +1 -0
- package/build/registry/toolsets/related-activities.js +59 -0
- package/build/registry/toolsets/related-activities.js.map +1 -0
- package/build/registry/toolsets/scopes.d.ts +1 -1
- package/build/registry/toolsets/scopes.js +1 -1
- package/build/registry/toolsets/secrets.js +1 -1
- package/build/registry/toolsets/secrets.js.map +1 -1
- package/build/registry/toolsets/services.js +1 -1
- package/build/registry/toolsets/services.js.map +1 -1
- package/build/registry/types.d.ts +1 -1
- package/build/registry/types.d.ts.map +1 -1
- package/build/tools/harness-create.js +3 -3
- package/build/tools/harness-create.js.map +1 -1
- package/build/tools/harness-delete.js +3 -3
- package/build/tools/harness-delete.js.map +1 -1
- package/build/tools/harness-describe.d.ts.map +1 -1
- package/build/tools/harness-describe.js +6 -3
- package/build/tools/harness-describe.js.map +1 -1
- package/build/tools/harness-diagnose.d.ts.map +1 -1
- package/build/tools/harness-diagnose.js +3 -2
- package/build/tools/harness-diagnose.js.map +1 -1
- package/build/tools/harness-execute.d.ts.map +1 -1
- package/build/tools/harness-execute.js +10 -4
- package/build/tools/harness-execute.js.map +1 -1
- package/build/tools/harness-get.js +4 -4
- package/build/tools/harness-get.js.map +1 -1
- package/build/tools/harness-list.js +5 -5
- package/build/tools/harness-list.js.map +1 -1
- package/build/tools/harness-search.d.ts.map +1 -1
- package/build/tools/harness-search.js +4 -3
- package/build/tools/harness-search.js.map +1 -1
- package/build/tools/harness-status.d.ts.map +1 -1
- package/build/tools/harness-status.js +3 -2
- package/build/tools/harness-status.js.map +1 -1
- package/build/tools/harness-update.js +3 -3
- package/build/tools/harness-update.js.map +1 -1
- package/build/tools/input-schemas.d.ts +17 -1
- package/build/tools/input-schemas.d.ts.map +1 -1
- package/build/tools/input-schemas.js +46 -2
- package/build/tools/input-schemas.js.map +1 -1
- package/build/utils/deep-links.d.ts +5 -0
- package/build/utils/deep-links.d.ts.map +1 -1
- package/build/utils/deep-links.js +12 -0
- package/build/utils/deep-links.js.map +1 -1
- package/build/utils/pipeline-v1-runtime-inputs.d.ts +3 -0
- package/build/utils/pipeline-v1-runtime-inputs.d.ts.map +1 -0
- package/build/utils/pipeline-v1-runtime-inputs.js +56 -0
- package/build/utils/pipeline-v1-runtime-inputs.js.map +1 -0
- package/build/utils/runtime-input-metadata.d.ts +18 -0
- package/build/utils/runtime-input-metadata.d.ts.map +1 -0
- package/build/utils/runtime-input-metadata.js +213 -0
- package/build/utils/runtime-input-metadata.js.map +1 -0
- package/build/utils/url-parser.d.ts.map +1 -1
- package/build/utils/url-parser.js +3 -1
- package/build/utils/url-parser.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://mcptoplist.com/server/glama%2Fharness%2Fmcp-server)
|
|
4
4
|
|
|
5
|
-
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 11 consolidated tools and
|
|
5
|
+
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 11 consolidated tools and 243 resource types.
|
|
6
6
|
|
|
7
7
|
## Why Use This MCP Server
|
|
8
8
|
|
|
@@ -10,8 +10,8 @@ Most MCP servers map one tool per API endpoint. For a platform as broad as Harne
|
|
|
10
10
|
|
|
11
11
|
This server is built differently:
|
|
12
12
|
|
|
13
|
-
- **11 tools,
|
|
14
|
-
- **Full platform coverage.**
|
|
13
|
+
- **11 tools, 243 resource types.** A registry-based dispatch system routes `harness_list`, `harness_get`, `harness_create`, etc. to any Harness resource — pipelines, services, environments, orgs, projects, feature flags, cost data, and more. The LLM picks from 11 tools instead of hundreds.
|
|
14
|
+
- **Full platform coverage.** 40 default toolsets spanning CI/CD, GitOps, Feature Flags, Cloud Cost Management, Security Testing, Chaos Engineering, Database DevOps, Internal Developer Portal, Software Supply Chain, Infrastructure as Code Management, Release Management, Governance, Service Overrides, Knowledge Graph, and more. Opt-in Ansible coverage is available when you need inventory and playbook data.
|
|
15
15
|
- **Multi-project workflows out of the box.** Agents discover organizations and projects dynamically — no hardcoded env vars needed. Ask "show failed executions across all projects" and the agent can navigate the full account hierarchy.
|
|
16
16
|
- **35 prompt templates.** Pre-built prompts for common workflows: build & deploy apps end-to-end, debug failed pipelines, review DORA metrics, triage vulnerabilities, optimize cloud costs, audit access control, plan feature flag rollouts, review pull requests, approve pending pipelines, and more.
|
|
17
17
|
- **Works everywhere.** Stdio transport for local clients (Claude Desktop, Cursor, Devin Desktop), HTTP transport for remote/shared deployments, Docker and Kubernetes ready.
|
|
@@ -870,7 +870,7 @@ Maintainers can refresh the vendored entity snapshots with `pnpm sync-entity-sch
|
|
|
870
870
|
|
|
871
871
|
### Pipeline Run Workflow (Recommended)
|
|
872
872
|
|
|
873
|
-
|
|
873
|
+
For v0 pipelines, use this sequence to reduce execution-time input errors:
|
|
874
874
|
|
|
875
875
|
1. **Discover required runtime inputs**
|
|
876
876
|
- `harness_get(resource_type="runtime_input_template", resource_id="<pipeline_id>")`
|
|
@@ -905,6 +905,14 @@ Use this sequence to reduce execution-time input errors:
|
|
|
905
905
|
4. **Optional: combine both**
|
|
906
906
|
- Use `input_set_ids` for the base shape and `inputs` for simple overrides.
|
|
907
907
|
|
|
908
|
+
For v1 pipelines:
|
|
909
|
+
|
|
910
|
+
1. Fetch `harness_get(resource_type="runtime_input_template_v1", resource_id="<pipeline_id>")`.
|
|
911
|
+
For Git-backed pipelines, pass `branch_name`, `connector_ref`, and `repo_name` through `params`.
|
|
912
|
+
2. Use each returned `inputs[].details.name` as a top-level key in `harness_execute.inputs`.
|
|
913
|
+
3. Run `harness_execute(resource_type="pipeline_v1", action="run", resource_id="<pipeline_id>", inputs={...})`.
|
|
914
|
+
The server wraps these values under an `inputs:` YAML root and sends the API's `inputs_yaml` body.
|
|
915
|
+
|
|
908
916
|
If required fields are unresolved, the tool returns a pre-flight error with expected keys and suggested input sets. You can inspect available shorthand mappings with `harness_describe(resource_type="pipeline")` (`executeActions.run.inputShorthands`).
|
|
909
917
|
|
|
910
918
|
### Dynamic Pipeline Execution
|
|
@@ -1205,7 +1213,7 @@ Harness pipelines can be stored in three ways:
|
|
|
1205
1213
|
|
|
1206
1214
|
## Resource Types
|
|
1207
1215
|
|
|
1208
|
-
|
|
1216
|
+
243 resource types organized across 40 toolsets. Each resource type supports a subset of CRUD operations and optional execute actions.
|
|
1209
1217
|
|
|
1210
1218
|
### Platform
|
|
1211
1219
|
|
|
@@ -1230,10 +1238,12 @@ Harness pipelines can be stored in three ways:
|
|
|
1230
1238
|
| `pipeline_summary` | | x | | | | |
|
|
1231
1239
|
| `input_set` | x | x | x | x | x | |
|
|
1232
1240
|
| `runtime_input_template` | | x | | | | |
|
|
1241
|
+
| `runtime_input_template_v1` | | x | | | | |
|
|
1242
|
+
| `pipeline_resolved_yaml` | | x | | | | |
|
|
1233
1243
|
| `approval_instance` | x | | | | | `approve`, `reject` |
|
|
1234
1244
|
|
|
1235
1245
|
|
|
1236
|
-
|
|
1246
|
+
Both pipeline YAML resource types are available when the pipelines toolset is enabled. `HARNESS_PIPELINE_VERSION` and the HTTP `x-harness-pipeline-version` initialization header select the default version preference; they do not hide the other version.
|
|
1237
1247
|
|
|
1238
1248
|
### AI Agents
|
|
1239
1249
|
|
|
@@ -1829,7 +1839,7 @@ Security exemption execute workflow:
|
|
|
1829
1839
|
|
|
1830
1840
|
## Toolset Filtering
|
|
1831
1841
|
|
|
1832
|
-
By default,
|
|
1842
|
+
By default, 40 of 41 toolsets are enabled. One toolset is opt-in and excluded from the defaults:
|
|
1833
1843
|
|
|
1834
1844
|
- **`ansible`** — Harness Ansible (inventories, playbooks, hosts, activity). Opt-in because it is project-scoped and adds concepts many users do not need.
|
|
1835
1845
|
|
|
@@ -1927,8 +1937,8 @@ Available toolset names:
|
|
|
1927
1937
|
|
|
|
1928
1938
|
+--------v---------+
|
|
1929
1939
|
| Registry | <-- Declarative resource definitions
|
|
1930
|
-
|
|
|
1931
|
-
|
|
|
1940
|
+
| 40 Toolsets | (data files, not code)
|
|
1941
|
+
| 243 Resource Types|
|
|
1932
1942
|
+--------+---------+
|
|
1933
1943
|
|
|
|
1934
1944
|
+--------v---------+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v0/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v0/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAkgzH/B,CAAC;AACF,eAAe,MAAM,CAAC"}
|