teamcity

v2.16.1
io.github.Daghis/teamcity Checked 7 hours ago Published 1 day ago

MCP server exposing JetBrains TeamCity CI/CD workflows to AI coding assistants

Values you need

VariableWhat it is
TEAMCITY_URLrequired Base URL of your TeamCity server
TEAMCITY_TOKENrequired secret TeamCity personal access token with required permissions
MCP_MODEoptional Operational mode: dev (default) or full for elevated administrative tools Default: dev
MCP_EXTRA_TOOLSoptional Comma-separated full-mode tools to also expose in dev mode, e.g. move_queued_build_to_top,reorder_queued_builds

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: TEAMCITY_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: ping, get_mcp_mode, set_mcp_mode, list_projects, get_project, list_builds, get_build, trigger_build, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json