原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

TeamCity CI/CD

作者:desty2k版本 1.0.1i★ –i在你的电脑上运行
注册名称io.github.desty2k/teamcity

安装

概览

作者提供的说明(英文原文)

Read-only MCP server for JetBrains TeamCity — builds, configs, logs, tests, agents

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具
  • 你需要填写:TEAMCITY_BASE_URL, TEAMCITY_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: TEAMCITY_BASE_URL, TEAMCITY_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "your-value",
        "TEAMCITY_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add teamcity --env TEAMCITY_BASE_URL=your-value --env TEAMCITY_TOKEN=your-value -- uvx readonly-mcp-teamcity

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "your-value",
        "TEAMCITY_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "teamcity": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "your-value",
        "TEAMCITY_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • TEAMCITY_BASE_URL 必填 env
    TeamCity server base URL (e.g., https://teamcity.example.com)
  • TEAMCITY_TOKEN 机密 必填 env
    TeamCity REST API bearer token (scope it read-only)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 desty2k 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1396 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1396 个服务器的 91% 更新
  • 基础检查结果等于或优于此分类中其他 1396 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

TeamCity CI/CD 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:TEAMCITY_BASE_URL, TEAMCITY_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.1)于4天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

readonly-mcp-teamcity

A read-only Model Context Protocol (MCP) server that lets AI agents explore a JetBrains TeamCity server: projects, build configurations, builds, logs, test results, problems, the queue, agents, and VCS changes. 29 tools, all of them reads.

Quick start

With uv installed, there is nothing else to install:

claude mcp add teamcity \

-e TEAMCITY_BASE_URL=https://teamcity.example.com \ -e TEAMCITY_TOKEN=your-token \ -- uvx readonly-mcp-teamcity

uvx downloads the package into a cached, isolated environment and runs it. Python 3.11 or newer.

Read-only by design. This server only ever issues GET requests (a test

fails if the HTTP client gains any other method). It cannot trigger, cancel,

pin, tag, or modify anything in TeamCity, and every tool is annotated

readOnlyHint. Scope the token read-only on the TeamCity side as a second

line of defense: see Token. Read

the post about this server and

why I build read-only MCP servers.

Token

Create a token under Profile → Access Tokens. Set Permissions scope to Limit per project, pick the root project (or the projects the agent should see), and choose the Read-only preset. A token scoped that way cannot change anything even if a client misbehaves.

The Read-only preset selects the 14 VIEW_* permissions TeamCity marks as read-only, including global ones for agent details and server settings. A token never gets more than its owner has: with a token from a user who has only the Project viewer role, agent tools still work, and get_server_health reports metrics as unavailable but still returns health items. Checked against TeamCity 2026.2.1, where a preset token could not pin a build (HTTP 403).

Tools

Projects
ToolDescription
search_projectsSearch projects by name, ID, or parent; browse the hierarchy.
get_project_detailsFull project: child projects, build configs, parameters.
Build configurations
ToolDescription
search_build_configsStructured search by project ID, build type ID, or paused state.
find_build_configFuzzy search across config names and project paths; flags ambiguous matches and lists matching projects.
get_build_config_detailsSteps, triggers, parameters, VCS roots, settings, agent requirements.
get_build_config_branchesBranches a configuration can build, with default/active status.
Builds
ToolDescription
search_buildsSearch build history filtered by config, project, status, branch, date, etc.
get_build_detailsOne build: status, agent, revisions, parameters, dependencies, test summary, tags.
get_build_statisticsNumeric metrics: durations, test counts, coverage, artifact size.
get_build_chainSnapshot-dependency chain upstream (depends-on) and downstream (dependents).
Logs
ToolDescription
get_build_logPaginated log retrieval with tail and line-range support.
search_build_logFull-text search within a build log, with surrounding context.
Tests & problems
ToolDescription
diagnose_buildWhy a build failed, in one call: problems, failed tests (unmuted first) and the error lines of the log.
get_build_test_resultsTest occurrences for a build, filterable by status.
get_test_detailsOne test occurrence: failure reason, history brackets, mute/investigation state.
get_build_problemsStructured failure reasons (compilation, exit code, dependency).
search_investigationsActive investigations by project, build config, or assignee.
list_muted_testsCurrently muted tests with scope, who muted them, and why.
Infrastructure
ToolDescription
get_build_queueBuilds waiting for an agent, with wait reasons.
search_agentsBuild agents with connection/authorization/enabled state and current build.
list_agent_poolsAgent pools with agent and project counts.
get_agent_detailsOne agent's state with enabled/authorized comments, last activity, current build.
list_build_artifactsBrowse a build's artifact tree (one directory level).
get_build_artifact_contentRead a text artifact (size-capped, line-paginated).
search_changesVCS changes (commits) by build, config, project, committer, or since-commit.
get_change_detailsOne change with its full modified-file list.
resolve_teamcity_urlParse a TeamCity web URL into project / build-config / build / change IDs.
get_server_infoTeamCity version, build number, and uptime.
get_server_healthServer health items + runtime metrics (CPU, memory, queue).

Install

Run it without installing (recommended):

uvx readonly-mcp-teamcity

Or install it into an environment:

uv tool install readonly-mcp-teamcity   # or: pip install readonly-mcp-teamcity

Docker

The image serves the streamable HTTP transport on port 8080. That transport has no authentication, so publish it on the host's loopback only:

docker run --rm \

-e TEAMCITY_BASE_URL=https://teamcity.example.com \ -e TEAMCITY_TOKEN=your-token \ -p 127.0.0.1:8080:8080 \ ghcr.io/desty2k/readonly-mcp-teamcity:latest

Configuration

All configuration comes from TEAMCITY_* environment variables.

VariableRequiredDefaultDescription
TEAMCITY_BASE_URLyes—TeamCity server base URL (e.g. https://teamcity.example.com).
TEAMCITY_TOKENyes—REST API bearer token. See Token.
TEAMCITY_TIMEOUTno30HTTP request timeout (seconds).
TEAMCITY_MAX_RETRIESno3Retries for transient network / 5xx errors.
TEAMCITY_POOL_MAX_CONNECTIONSno20httpx connection-pool size.
TEAMCITY_DEFAULT_LIMITno50Default page size for list tools.
TEAMCITY_MAX_LIMITno500Maximum page size.
TEAMCITY_INDEX_REFRESH_INTERVALno300Seconds between fuzzy-index refreshes. A failed load is retried sooner.
TEAMCITY_LOG_CACHE_MAX_BYTESno67108864Size cap of the build-log cache. Logs of running builds are never cached.
TEAMCITY_LOG_CACHE_TTLno300Seconds a finished build's log stays cached.
TEAMCITY_TRANSPORTnostdiostdio, http, or sse.
TEAMCITY_HTTP_HOSTno127.0.0.1Bind address for http/sse. These transports have no authentication; a non-loopback address logs a warning.
TEAMCITY_HTTP_PORTno8080Port for the http/sse transports.
TEAMCITY_LOG_FORMATnojsonjson (production) or text (local dev).
TEAMCITY_LOG_LEVELnoINFODEBUG, INFO, WARNING, or ERROR.

See .env.example for a copy-paste template.

OpenTelemetry tracing

Tracing is opt-in and a no-op when disabled. The base install carries no OTel SDK; install the extra and enable it to export spans for each upstream TeamCity call:

pip install 'readonly-mcp-teamcity[otel]'

export TEAMCITY_OTEL_ENABLED=true export TEAMCITY_OTEL_ENDPOINT=http://localhost:4317 # optional; falls back to OTEL_EXPORTER_OTLP_ENDPOINT

VariableDefaultDescription
TEAMCITY_OTEL_ENABLEDfalseMaster switch for tracing.
TEAMCITY_OTEL_SERVICE_NAMEreadonly-mcp-teamcityservice.name on every span.
TEAMCITY_OTEL_ENDPOINTunsetOTLP collector endpoint.
TEAMCITY_OTEL_PROTOCOLgrpcgrpc or http/protobuf.
TEAMCITY_OTEL_CONSOLE_EXPORTfalseAlso print spans to stderr.

MCP client configuration

Claude Desktop

Add to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{

"mcpServers": { "teamcity": { "command": "uvx", "args": ["readonly-mcp-teamcity"], "env": { "TEAMCITY_BASE_URL": "https://teamcity.example.com", "TEAMCITY_TOKEN": "your-token" } } } }

Claude Code

See Quick start.

How it compares

As of November 2026. Check the projects themselves before relying on this.

This serverJetBrains MCP (2026.1+)Daghis 2.12.12itcaat 1.0.8kate-horshchar 1.4.0
Writesnone, by constructionpersonal builds in the default safe mode; more with brave modetrigger and cancel by default; a full mode the agent can switch ontrigger, cancel, pin, tag; no off switchnone, GET only
Runs whereyour machinethe TeamCity server (/app/mcp)your machineyour machineyour machine
Find a config from a vague namefuzzy index over names and project pathsnot documentedlocator onlylocator partial matchno
Paste a TeamCity URLmodern, short and legacy URLsnot documentednonono

Sources: JetBrains AI agent integration, JetBrains/teamcity-mcp, Daghis/teamcity-mcp, itcaat/teamcity-mcp, kate-horshchar/teamcity-qa-mcp. The JetBrains plugin README and its help page disagree on whether brave mode is on by default; check your server's setting.

Use the built-in server if you want an agent to act on TeamCity. Use this one when the agent should only look.

Example questions

  • "Find the deploy pipeline for the auth service."
  • "Show me the last 10 builds for Proj_Build and which failed."
  • "Why did build 12345 fail?" (one diagnose_build call)
  • "What tests failed in that build, and what was the error?"
  • "Search the build log for OutOfMemoryError."
  • "Which agents are offline right now?"
  • "What's in the build queue and why is it waiting?"
  • "Who is investigating the failures in the Payments project?"
  • "What commits went into this build?"
  • "Resolve https://teamcity.example.com/buildConfiguration/Proj_Build/12345."

Development

git clone https://github.com/desty2k/readonly-mcp-teamcity

cd readonly-mcp-teamcity uv sync --all-extras uv run pytest --cov uv run ruff check . uv run ruff format --check .

A live smoke test against a real server (reads credentials from .env):

uv run python tests/smoke_test.py

License

MIT — see LICENSE.

问 PopNx