MCP Catalogs
首页

teamcity-mcp

by Daghis·25·综合分 46

JetBrains TeamCity 的 MCP 服务器,提供 87 个工具,允许从 AI 编码助手控制构建、测试、代理和配置。

developer-toolsops-infraai-llm
19
Forks
6
活跃 Issue
本月
最近提交
2 天前
收录于

概述

TeamCity MCP 服务器连接 AI 编码助手与 TeamCity CI/CD 服务器,将 TeamCity 操作作为 MCP 工具暴露。它提供两种操作模式:开发模式(31 个工具,用于安全的 CI/CD 操作)和完整模式(87 个工具,用于完整的基础设施管理)。该服务器支持基于令牌的身份验证,提供运行时模式切换,并采用清洁、高性能的架构,具有清晰的模块边界。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:直接从 AI 编码助手触发和监控构建
:以编程方式创建和管理构建配置
:分析测试失败和构建日志,无需离开开发环境
:开发模式和完整模式有什么区别?
:如何切换模式?

什么时候选它

如果您需要对 TeamCity 配置进行全面管理而不仅仅是基本的构建触发,或者您使用的是早于 2026.1 的 TeamCity 版本,请选择此服务器。

什么时候不要选它

如果您只需要在 TeamCity 2026.1+ 中进行基本的构建触发和日志读取,请不要选择此选项,因为内置的 MCP 端点已经足够且无需单独安装。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • TriggerBuild

    Queue a new build in TeamCity

  • GetBuildStatus

    Check the progress and status of a specific build

  • FetchBuildLog

    Retrieve the logs for a specific build

  • ListBuilds

    Search and list builds based on criteria

  • ListTestFailures

    Get a list of failing tests in a build

  • GetTestDetails

    Get detailed information about a specific test

  • AnalyzeBuildProblems

    Identify the root causes of build failures

  • create_build_config

    Create a new TeamCity build configuration

  • clone_build_config

    Duplicate an existing build configuration

  • update_build_config

    Modify an existing build configuration

  • get_mcp_mode

    Check the current operational mode of the MCP server

  • set_mcp_mode

    Change the operational mode of the MCP server

可对比工具

teamcitygithub-actions

安装

快速安装

# 使用 npx 和环境变量
TEAMCITY_URL="https://teamcity.example.com" \
TEAMCITY_TOKEN="<your_token>" \
MCP_MODE=dev \
npx -y @daghis/teamcity-mcp

Claude Desktop 配置

添加到您的 claude_desktop_config.json

{
  "mcpServers": {
    "teamcity": {
      "command": "npx",
      "args": [
        "-y",
        "@daghis/teamcity-mcp",
        "--url",
        "https://teamcity.example.com",
        "--token",
        "tc_<your_token>"
      ]
    }
  }
}

FAQ

开发模式和完整模式有什么区别?
开发模式(默认)提供 31 个工具用于安全的 CI/CD 操作,而完整模式提供 87 个工具用于完整的基础设施管理,包括配置创建、代理管理和服务器管理。
如何切换模式?
您可以将 MCP_MODE 环境变量设置为 'dev' 或 'full'。使用 v2.1.0+,您还可以使用 'get_mcp_mode' 和 'set_mcp_mode' 工具在运行时切换模式,无需重启。

teamcity-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。