Skip to main content
Glama

TeamCity MCP Server

by Daghis

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer port3000
MCP_MODENoMCP mode (dev or full)dev
NODE_ENVNoNode environmentdevelopment
LOG_LEVELNoLog levelinfo
TEAMCITY_URLNoTeamCity server URL
TEAMCITY_TOKENNoTeamCity authentication token
TEAMCITY_TIMEOUTNoTeamCity connection timeout30000
TEAMCITY_API_TOKENNoTeamCity authentication token (alias for TEAMCITY_TOKEN)
TEAMCITY_PAGE_SIZENoDefault page size for pagination100
TEAMCITY_KEEP_ALIVENoKeep alive connectionstrue
TEAMCITY_SERVER_URLNoTeamCity server URL (alias for TEAMCITY_URL)
TEAMCITY_COMPRESSIONNoEnable compressiontrue
TEAMCITY_MAX_RETRIESNoMaximum number of retries3
TEAMCITY_RETRY_DELAYNoRetry delay in milliseconds1000
TEAMCITY_MAX_PAGE_SIZENoMaximum page size for pagination1000
TEAMCITY_RETRY_ENABLEDNoEnable retry mechanismtrue
TEAMCITY_AUTO_FETCH_ALLNoAuto fetch all pagesfalse
TEAMCITY_MAX_CONCURRENTNoMaximum concurrent connections10
TEAMCITY_CIRCUIT_BREAKERNoEnable circuit breakertrue
TEAMCITY_MAX_RETRY_DELAYNoMaximum retry delay in milliseconds30000
TEAMCITY_CB_RESET_TIMEOUTNoCircuit breaker reset timeout60000
TEAMCITY_CB_FAILURE_THRESHOLDNoCircuit breaker failure threshold5
TEAMCITY_CB_SUCCESS_THRESHOLDNoCircuit breaker success threshold2

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
ping

Test MCP server connectivity

list_projects

List TeamCity projects (supports pagination)

get_project

Get details of a specific project

list_builds

List TeamCity builds (supports pagination)

get_build

Get details of a specific build

trigger_build

Trigger a new build

cancel_queued_build

Cancel a queued build by ID

get_build_status

Get build status with optional test/problem and queue context details

fetch_build_log

Fetch build log with pagination (by lines)

list_build_configs

List build configurations (supports pagination)

get_build_config

Get details of a build configuration

list_test_failures

List test failures for a build (supports pagination)

list_vcs_roots

List VCS roots (supports pagination)

get_vcs_root

Get details of a VCS root (including properties)

list_queued_builds

List queued builds (supports TeamCity queue locator + pagination)

get_server_info

Get TeamCity server info (version, build number, state)

check_availability_guard

Evaluate server health; returns ok=false if critical health items found (severity ERROR)

get_compatible_build_types_for_agent

Get build types compatible with the specified agent

get_incompatible_build_types_for_agent

Get build types incompatible with the specified agent

get_agent_enabled_info

Get the enabled/disabled state for an agent, including comment and switch time

get_compatible_agents_for_build_type

List agents compatible with a build type (optionally filter enabled only)

count_compatible_agents_for_build_type

Return only the count of enabled compatible agents for a build type

get_compatible_agents_for_queued_build

List agents compatible with a queued/running build by buildId (optionally filter enabled only)

check_teamcity_connection

Check connectivity to TeamCity server and basic readiness

list_agents

List build agents (supports pagination)

list_agent_pools

List agent pools (supports pagination)

get_build_results

Get detailed results of a build including tests, artifacts, changes, and statistics

get_test_details

Get detailed information about test failures

analyze_build_problems

Analyze and report build problems and failures

list_changes

List VCS changes (supports pagination)

list_problems

List build problems (supports pagination)

list_problem_occurrences

List problem occurrences (supports pagination)

list_investigations

List open investigations (supports pagination)

list_muted_tests

List muted tests (supports pagination)

get_versioned_settings_status

Get Versioned Settings status for a locator

list_users

List TeamCity users (supports pagination)

list_roles

List defined roles and their permissions

list_branches

List branches for a project or build configuration

list_parameters

List parameters for a build configuration

list_project_hierarchy

List project hierarchy showing parent-child relationships

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Daghis/teamcity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server