manage-delegates

通过 MCP 监控和管理 Harness 代理:列出代理并检查健康状态,管理代理注册令牌(创建、撤销、删除),以及查找与特定令牌关联的代理。用于代理状态、连接性、令牌管理和故障排除场景。

仓库最近推送
GitHub Stars
138
Forks
30
Issues / PRs
4

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "manage-delegates":https://skillpi.com/zh/skills/deepskill-8591257214cbd49ec8885bfee218a5ea9eb6619dfce98e33f8df68cd5b3c8d95。安装前核对上游来源和版本:https://github.com/harness/harness-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过 MCP 监控和管理 Harness 代理:列出代理并检查健康状态,管理代理注册令牌(创建、撤销、删除),以及查找与特定令牌关联的代理。用于代理状态、连接性、令牌管理和故障排除场景。

0 下载

介绍来源: third_party · harness · 1.0.0 参考来源

SkillPi 解读

能完成的任务
来源文档未说明。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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

  1. Check the delegate's last heartbeat timestamp -- if stale, the delegate process may be down
  2. Verify the delegate token is ACTIVE (not REVOKED)
  3. Check network connectivity between the delegate host and Harness SaaS

Pipeline Fails with "No Delegates Available"

  1. List delegates to confirm at least one is connected and healthy
  2. Check if the pipeline uses a delegate selector that doesn't match any active delegate
  3. 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

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 直接解决 Harness 平台中代理监控和管理的核心任务痛点
  • 显著提升日常运维效率
  • 覆盖代理健康检查、令牌管理等高频刚需场景
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体
  • 边界清晰,不易误触或漏触
  • 包含中英文触发短语
结构规范90/100

亮点

  • Phase/步骤清晰,有出口条件
  • 含端到端示例,frontmatter完整
  • 单文件≤500行,结构良好
执行可靠90/100

亮点

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
  • 提供故障排除指南
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。