KosmoKrator

productivity

TeamCity CLI for AI Agents

Use the TeamCity CLI from KosmoKrator to call TeamCity tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

TeamCity CLI Setup

TeamCity can be configured headlessly with `kosmokrator integrations:configure teamcity`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure teamcity --set url="$TEAMCITY_URL" --set access_token="$TEAMCITY_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor teamcity --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
url TEAMCITY_URL Text text yes TeamCity URL
access_token TEAMCITY_ACCESS_TOKEN Secret secret yes Access Token

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call teamcity.teamcity_get_server_info '{}' --json
Provider shortcut
kosmo integrations:teamcity teamcity_get_server_info '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs teamcity --json
kosmo integrations:docs teamcity.teamcity_get_server_info --json
kosmo integrations:schema teamcity.teamcity_get_server_info --json
kosmo integrations:search "TeamCity" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

teamcity.teamcity_get_server_info

Get TeamCity server details.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_server_info '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_server_info '{}' --json

teamcity.teamcity_list_projects

List TeamCity projects.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_projects '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_projects '{}' --json

teamcity.teamcity_get_project

Get one project by locator.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_project '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_project '{}' --json

teamcity.teamcity_create_project

Create a TeamCity project.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_create_project '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_create_project '{}' --json

teamcity.teamcity_delete_project

Delete a TeamCity project.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_delete_project '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_delete_project '{}' --json

teamcity.teamcity_list_build_types

List build configurations.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_build_types '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_build_types '{}' --json

teamcity.teamcity_get_build_type

Get one build configuration.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_build_type '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_build_type '{}' --json

teamcity.teamcity_list_build_type_builds

List builds for one build configuration.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_build_type_builds '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_build_type_builds '{}' --json

teamcity.teamcity_list_builds

List builds by locator.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_builds '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_builds '{}' --json

teamcity.teamcity_get_build

Get one build by locator.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_build '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_build '{}' --json

teamcity.teamcity_queue_build

Add a build to the queue.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_queue_build '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_queue_build '{}' --json

teamcity.teamcity_cancel_queued_build

Cancel a queued build by locator.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_cancel_queued_build '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_cancel_queued_build '{}' --json

teamcity.teamcity_cancel_build

Cancel a started build by locator.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_cancel_build '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_cancel_build '{}' --json

teamcity.teamcity_delete_build

Delete build metadata by locator.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_delete_build '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_delete_build '{}' --json

teamcity.teamcity_list_build_artifacts

List artifact files for a build.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_build_artifacts '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_build_artifacts '{}' --json

teamcity.teamcity_get_build_statistics

Get statistical values for a build.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_build_statistics '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_build_statistics '{}' --json

teamcity.teamcity_get_build_tags

Get tags for a build.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_build_tags '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_build_tags '{}' --json

teamcity.teamcity_add_build_tags

Add tags to a build.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_add_build_tags '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_add_build_tags '{}' --json

teamcity.teamcity_set_build_pin_info

Pin or unpin a build.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_set_build_pin_info '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_set_build_pin_info '{}' --json

teamcity.teamcity_list_build_queue

List queued builds.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_build_queue '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_build_queue '{}' --json

teamcity.teamcity_set_queue_paused

Pause or resume the build queue.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_set_queue_paused '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_set_queue_paused '{}' --json

teamcity.teamcity_list_agents

List build agents.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_agents '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_agents '{}' --json

teamcity.teamcity_get_agent

Get one build agent by locator.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_agent '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_agent '{}' --json

teamcity.teamcity_list_users

List TeamCity users.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_users '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_users '{}' --json

teamcity.teamcity_get_user

Get one user by locator.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_get_user '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_get_user '{}' --json

teamcity.teamcity_list_groups

List user groups.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_groups '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_groups '{}' --json

teamcity.teamcity_list_investigations

List investigations.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_investigations '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_investigations '{}' --json

teamcity.teamcity_list_problems

List build problems.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_problems '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_problems '{}' --json

teamcity.teamcity_list_changes

List VCS changes.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_changes '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_changes '{}' --json

teamcity.teamcity_list_vcs_roots

List VCS roots.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_list_vcs_roots '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_list_vcs_roots '{}' --json

teamcity.teamcity_api_get

Call a safe relative TeamCity GET path.

Read read
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_api_get '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_api_get '{}' --json

teamcity.teamcity_api_post

Call a safe relative TeamCity POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_api_post '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_api_post '{}' --json

teamcity.teamcity_api_put

Call a safe relative TeamCity PUT path.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_api_put '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_api_put '{}' --json

teamcity.teamcity_api_patch

Call a safe relative TeamCity PATCH path.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_api_patch '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_api_patch '{}' --json

teamcity.teamcity_api_delete

Call a safe relative TeamCity DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call teamcity.teamcity_api_delete '{}' --json
Shortcut
kosmo integrations:teamcity teamcity_api_delete '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

teamcity.teamcity_get_server_info 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_server_info --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_projects 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_projects --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_project 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_project --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_create_project 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_create_project --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_delete_project 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_delete_project --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_build_types 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_build_types --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_build_type 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_build_type --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_build_type_builds 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_build_type_builds --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_builds 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_builds --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_build 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_build --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_queue_build 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_queue_build --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_cancel_queued_build 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_cancel_queued_build --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_cancel_build 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_cancel_build --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_delete_build 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_delete_build --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_build_artifacts 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_build_artifacts --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_build_statistics 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_build_statistics --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_build_tags 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_build_tags --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_add_build_tags 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_add_build_tags --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_set_build_pin_info 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_set_build_pin_info --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_build_queue 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_build_queue --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_set_queue_paused 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_set_queue_paused --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_agents 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_agents --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_agent 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_agent --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_users 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_users --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_get_user 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_get_user --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_groups 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_groups --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_investigations 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_investigations --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_problems 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_problems --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_changes 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_changes --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_list_vcs_roots 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_list_vcs_roots --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_api_get 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_api_get --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_api_post 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_api_post --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_api_put 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_api_put --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_api_patch 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_api_patch --json
ParameterTypeRequiredDescription
No parameters.
teamcity.teamcity_api_delete 0 parameters
Schema command
kosmo integrations:schema teamcity.teamcity_api_delete --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.