Skip to main content
Glama

TeamCity MCP Server

by Daghis

fetch_build_log

Retrieve paginated build logs from TeamCity to analyze CI/CD pipeline execution details and troubleshoot issues efficiently.

Instructions

Fetch build log with pagination (by lines)

Input Schema

NameRequiredDescriptionDefault
buildIdNoBuild ID (TeamCity internal id)
buildNumberNoHuman build number (e.g., 54). If provided, optionally include buildTypeId to disambiguate.
buildTypeIdNoOptional build type ID to disambiguate buildNumber
lineCountNoMax lines to return (overrides pageSize)
pageNo1-based page number
pageSizeNoLines per page (default 500)
startLineNo0-based start line (overrides page)
tailNoTail mode: return last N lines

Input Schema (JSON Schema)

{ "properties": { "buildId": { "description": "Build ID (TeamCity internal id)", "type": "string" }, "buildNumber": { "description": "Human build number (e.g., 54). If provided, optionally include buildTypeId to disambiguate.", "type": "string" }, "buildTypeId": { "description": "Optional build type ID to disambiguate buildNumber", "type": "string" }, "lineCount": { "description": "Max lines to return (overrides pageSize)", "type": "number" }, "page": { "description": "1-based page number", "type": "number" }, "pageSize": { "description": "Lines per page (default 500)", "type": "number" }, "startLine": { "description": "0-based start line (overrides page)", "type": "number" }, "tail": { "description": "Tail mode: return last N lines", "type": "boolean" } }, "required": [], "type": "object" }

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