/ 目录 / 演练场 / Harness MCP
● 官方 harness ⚡ 即开即用

Harness MCP

作者 harness · harness/mcp-server

Harness platform MCP — 11 consolidated tools and 169 resource types for CI/CD and feature flags.

Harness MCP is an MCP server maintained by harness. Harness platform MCP — 11 consolidated tools and 169 resource types for CI/CD and feature flags. See README for installation and configuration: https://github.com/harness/mcp-server

为什么要用

核心特性

实时演示

实际使用效果

harness-mcp.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "harness-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "harness-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "harness-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "harness-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "harness-mcp",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "harness-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "mcp-server"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add harness-mcp -- npx -y mcp-server

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Harness MCP

Use Harness MCP for its primary workflow

👤 Claude/MCP client users ⏱ ~20 min intermediate

何时使用: See repo README for canonical use cases.

前置条件
  • Repo cloned or installed — See undefined
步骤
  1. Install
    Install Harness MCP per README.✓ 已复制
    → Tool registered with client
  2. Configure
    Provide credentials/config as instructed.✓ 已复制
    → Successful auth/init
  3. Use
    Run a sample task with Harness MCP.✓ 已复制
    → Expected output

结果: You can drive the documented workflow end-to-end.

注意事项
  • Skipping README — Read the repo README and CHANGELOG before shipping to prod.

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
primary see README Primary action free

成本与限制

运行它的成本

API 配额
None of its own; bounded by upstream provider quotas if any
每次调用 Token 数
Depends on usage
费用
Open source — check repo LICENSE
提示
Review upstream API costs (if any) before automating.

安全

权限、密钥、影响范围

最小权限: Whatever the upstream provider requires
凭据存储: Env vars or local config — never commit secrets
数据出站: Forwards data per its README
切勿授予: Full admin to untrusted prompts

故障排查

常见错误与修复

Auth fails

Verify credentials and required scopes match README.

验证: Re-read repo README auth section.
Tool not found by client

Ensure MCP client config points to correct command/path.

验证: Restart the client after editing config.

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills