manage-delegates
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "manage-delegates" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8591257214cbd49ec8885bfee218a5ea9eb6619dfce98e33f8df68cd5b3c8d95. Verify the upstream source and version against https://github.com/harness/harness-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Monitor and manage Harness delegates via MCP: list delegates and check their health, manage delegate registration tokens (create, revoke, delete), and find delegates associated with a specific token. Use for delegate status, connectivity, token management, and troubleshooting.
Introduction source: third_party · harness · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Not specified in the source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: manage-delegates
description: >-
Monitor and manage Harness Delegates via MCP. List delegates and check health status, manage delegate
registration tokens (create, revoke, delete), and find which delegates are associated with a token.
Use when asked about delegate status, delegate health, delegate connectivity, delegate tokens, or
troubleshooting delegate issues. Trigger phrases: delegate status, delegate health, list delegates,
delegate token, delegate connectivity, delegate troubleshooting, delegate down.
metadata:
author: Harness
version: 1.0.0
mcp-server: harness-mcp-v2
license: Apache-2.0
compatibility: Requires Harness MCP v2 server (harness-mcp-v2)Manage Delegates
Monitor delegate health and manage registration tokens via MCP.
Instructions
Step 1: List Delegates
List all delegates in the account to check health and connectivity:
Call MCP tool: harness_list
Parameters:
resource_type: "delegate"
This returns all delegates with their status, version, connectivity, and last heartbeat. Delegates are account-scoped -- no org/project needed.
Step 2: List Delegate Tokens
Call MCP tool: harness_list
Parameters:
resource_type: "delegate_token"
org_id: "<organization>"
project_id: "<project>"
Filter by name or status:
Call MCP tool: harness_list
Parameters:
resource_type: "delegate_token"
name: "prod-token"
status: "ACTIVE"
Step 3: Get Token Details
Call MCP tool: harness_get
Parameters:
resource_type: "delegate_token"
resource_id: "<token_name>"
org_id: "<organization>"
project_id: "<project>"
Step 4: Create a Token
Call MCP tool: harness_create
Parameters:
resource_type: "delegate_token"
org_id: "<organization>"
project_id: "<project>"
body:
name: "prod-delegate-token"
Step 5: Find Delegates for a Token
Call MCP tool: harness_execute
Parameters:
resource_type: "delegate_token"
action: "get_delegates"
resource_id: "<token_name>"
org_id: "<organization>"
project_id: "<project>"
Step 6: Revoke a Token
Call MCP tool: harness_execute
Parameters:
resource_type: "delegate_token"
action: "revoke"
resource_id: "<token_name>"
org_id: "<organization>"
project_id: "<project>"
Step 7: Delete a Token
Call MCP tool: harness_delete
Parameters:
resource_type: "delegate_token"
resource_id: "<token_name>"
org_id: "<organization>"
project_id: "<project>"
Resource Types
| Resource Type | Scope | Operations | Description |
|---|---|---|---|
delegate |
Account | list | List delegates with health status |
delegate_token |
Project | list, get, create, delete + revoke, get_delegates actions | Manage registration tokens |
Examples
- "Are all delegates healthy?" -- List delegates, check status and last heartbeat
- "Create a new delegate token for the staging project" -- Create token with project scope
- "Which delegates are using the prod-token?" -- Execute get_delegates action on the token
- "Revoke the old registration token" -- Execute revoke action
- "Show me all active delegate tokens" -- List tokens filtered by status ACTIVE
Performance Notes
- When diagnosing delegate issues, check both the delegate list (for health/heartbeat) and the token status (for auth). A delegate showing as disconnected may have a revoked token.
- Always verify delegate connectivity before troubleshooting pipeline failures -- many execution errors stem from unavailable delegates.
Troubleshooting
Delegate Shows Disconnected
- Check the delegate's last heartbeat timestamp -- if stale, the delegate process may be down
- Verify the delegate token is ACTIVE (not REVOKED)
- Check network connectivity between the delegate host and Harness SaaS
Pipeline Fails with "No Delegates Available"
- List delegates to confirm at least one is connected and healthy
- Check if the pipeline uses a delegate selector that doesn't match any active delegate
- Verify the delegate has the required tools installed (kubectl, helm, docker, etc.)
Token Issues
- Tokens are project-scoped -- a token created in project A cannot register delegates for project B
- Revoking a token disconnects all delegates registered with it
- Deleted tokens cannot be recovered -- create a new one and re-register delegates
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 直接解决 Harness 平台中代理监控和管理的核心任务痛点
- 显著提升日常运维效率
- 覆盖代理健康检查、令牌管理等高频刚需场景
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触或漏触
- 包含中英文触发短语
Highlights
- Phase/步骤清晰,有出口条件
- 含端到端示例,frontmatter完整
- 单文件≤500行,结构良好
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
- 提供故障排除指南
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.