Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-daghis-teamcity": {
"command": "npx",
"args": [
"-y",
"@daghis/teamcity-mcp"
],
"env": {
"TEAMCITY_URL": "https://teamcity.example.com/",
"TEAMCITY_TOKEN": "<YOUR_VALUE>",
"MCP_MODE": "dev",
"PORT": "3000",
"NODE_ENV": "development",
"LOG_LEVEL": "info",
"TEAMCITY_TIMEOUT": "30000",
"TEAMCITY_API_TOKEN": "<VALUE>",
"TEAMCITY_PAGE_SIZE": "100",
"TEAMCITY_KEEP_ALIVE": "true",
"TEAMCITY_SERVER_URL": "<VALUE>",
"TEAMCITY_COMPRESSION": "true",
"TEAMCITY_MAX_RETRIES": "3",
"TEAMCITY_RETRY_DELAY": "1000",
"TEAMCITY_MAX_PAGE_SIZE": "1000",
"TEAMCITY_RETRY_ENABLED": "true",
"TEAMCITY_AUTO_FETCH_ALL": "false",
"TEAMCITY_MAX_CONCURRENT": "10",
"TEAMCITY_CIRCUIT_BREAKER": "true",
"TEAMCITY_MAX_RETRY_DELAY": "30000",
"TEAMCITY_CB_RESET_TIMEOUT": "60000",
"TEAMCITY_CB_FAILURE_THRESHOLD": "5",
"TEAMCITY_CB_SUCCESS_THRESHOLD": "2"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| TEAMCITY_URL | Yes | TeamCity server URL |
| TEAMCITY_TOKEN secret | Yes | TeamCity authentication token |
| MCP_MODE | No | MCP mode (dev or full) Default: dev |
| PORT | No | Server port Default: 3000 |
| NODE_ENV | No | Node environment Default: development |
| LOG_LEVEL | No | Log level Default: info |
| TEAMCITY_TIMEOUT | No | TeamCity connection timeout Default: 30000 |
| TEAMCITY_API_TOKEN | No | TeamCity authentication token (alias for TEAMCITY_TOKEN) |
| TEAMCITY_PAGE_SIZE | No | Default page size for pagination Default: 100 |
| TEAMCITY_KEEP_ALIVE | No | Keep alive connections Default: true |
| TEAMCITY_SERVER_URL | No | TeamCity server URL (alias for TEAMCITY_URL) |
| TEAMCITY_COMPRESSION | No | Enable compression Default: true |
| TEAMCITY_MAX_RETRIES | No | Maximum number of retries Default: 3 |
| TEAMCITY_RETRY_DELAY | No | Retry delay in milliseconds Default: 1000 |
| TEAMCITY_MAX_PAGE_SIZE | No | Maximum page size for pagination Default: 1000 |
| TEAMCITY_RETRY_ENABLED | No | Enable retry mechanism Default: true |
| TEAMCITY_AUTO_FETCH_ALL | No | Auto fetch all pages Default: false |
| TEAMCITY_MAX_CONCURRENT | No | Maximum concurrent connections Default: 10 |
| TEAMCITY_CIRCUIT_BREAKER | No | Enable circuit breaker Default: true |
| TEAMCITY_MAX_RETRY_DELAY | No | Maximum retry delay in milliseconds Default: 30000 |
| TEAMCITY_CB_RESET_TIMEOUT | No | Circuit breaker reset timeout Default: 60000 |
| TEAMCITY_CB_FAILURE_THRESHOLD | No | Circuit breaker failure threshold Default: 5 |
| TEAMCITY_CB_SUCCESS_THRESHOLD | No | Circuit breaker success threshold Default: 2 |