TeamCity CI/CD

v1.0.1
io.github.desty2k/teamcity Checked 1 day ago Published 1 month ago

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

Values you need

VariableWhat it is
TEAMCITY_BASE_URLrequired TeamCity server base URL (e.g., https://teamcity.example.com)
TEAMCITY_TOKENrequired secret TeamCity REST API bearer token (scope it read-only)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add teamcity -e 'TEAMCITY_BASE_URL=<TEAMCITY_BASE_URL>' -e 'TEAMCITY_TOKEN=<TEAMCITY_TOKEN>' -- uvx readonly-mcp-teamcity==1.0.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "teamcity": {
      "args": [
        "readonly-mcp-teamcity==1.0.1"
      ],
      "command": "uvx",
      "env": {
        "TEAMCITY_BASE_URL": "<TEAMCITY_BASE_URL>",
        "TEAMCITY_TOKEN": "<TEAMCITY_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "teamcity": {
      "args": [
        "readonly-mcp-teamcity==1.0.1"
      ],
      "command": "uvx",
      "env": {
        "TEAMCITY_BASE_URL": "<TEAMCITY_BASE_URL>",
        "TEAMCITY_TOKEN": "<TEAMCITY_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TEAMCITY_BASE_URL",
      "id": "teamcity-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "TEAMCITY_TOKEN",
      "id": "teamcity-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "teamcity": {
      "args": [
        "readonly-mcp-teamcity==1.0.1"
      ],
      "command": "uvx",
      "env": {
        "TEAMCITY_BASE_URL": "${input:teamcity-base-url}",
        "TEAMCITY_TOKEN": "${input:teamcity-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.teamcity]
command = "uvx"
args = ["readonly-mcp-teamcity==1.0.1"]
env = { "TEAMCITY_BASE_URL" = "<TEAMCITY_BASE_URL>", "TEAMCITY_TOKEN" = "<TEAMCITY_TOKEN>" }

For AI agents

  1. Ask the user for: TEAMCITY_BASE_URL, TEAMCITY_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_projects, get_project_details, search_build_configs, get_build_config_details, get_build_config_branches, search_builds, get_build_details, get_build_statistics, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json