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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call teamcity.teamcity_get_server_info '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_server_info '{}' --json kosmo integrations:teamcity teamcity_get_server_info '{}' --json teamcity.teamcity_list_projects
List TeamCity projects.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_projects '{}' --json kosmo integrations:teamcity teamcity_list_projects '{}' --json teamcity.teamcity_get_project
Get one project by locator.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_project '{}' --json kosmo integrations:teamcity teamcity_get_project '{}' --json teamcity.teamcity_create_project
Create a TeamCity project.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_create_project '{}' --json kosmo integrations:teamcity teamcity_create_project '{}' --json teamcity.teamcity_delete_project
Delete a TeamCity project.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_delete_project '{}' --json kosmo integrations:teamcity teamcity_delete_project '{}' --json teamcity.teamcity_list_build_types
List build configurations.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_build_types '{}' --json kosmo integrations:teamcity teamcity_list_build_types '{}' --json teamcity.teamcity_get_build_type
Get one build configuration.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_build_type '{}' --json kosmo integrations:teamcity teamcity_get_build_type '{}' --json teamcity.teamcity_list_build_type_builds
List builds for one build configuration.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_build_type_builds '{}' --json kosmo integrations:teamcity teamcity_list_build_type_builds '{}' --json teamcity.teamcity_list_builds
List builds by locator.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_builds '{}' --json kosmo integrations:teamcity teamcity_list_builds '{}' --json teamcity.teamcity_get_build
Get one build by locator.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_build '{}' --json kosmo integrations:teamcity teamcity_get_build '{}' --json teamcity.teamcity_queue_build
Add a build to the queue.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_queue_build '{}' --json kosmo integrations:teamcity teamcity_queue_build '{}' --json teamcity.teamcity_cancel_queued_build
Cancel a queued build by locator.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_cancel_queued_build '{}' --json kosmo integrations:teamcity teamcity_cancel_queued_build '{}' --json teamcity.teamcity_cancel_build
Cancel a started build by locator.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_cancel_build '{}' --json kosmo integrations:teamcity teamcity_cancel_build '{}' --json teamcity.teamcity_delete_build
Delete build metadata by locator.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_delete_build '{}' --json kosmo integrations:teamcity teamcity_delete_build '{}' --json teamcity.teamcity_list_build_artifacts
List artifact files for a build.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_build_artifacts '{}' --json kosmo integrations:teamcity teamcity_list_build_artifacts '{}' --json teamcity.teamcity_get_build_statistics
Get statistical values for a build.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_build_statistics '{}' --json kosmo integrations:teamcity teamcity_get_build_statistics '{}' --json teamcity.teamcity_get_build_tags
Get tags for a build.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_build_tags '{}' --json kosmo integrations:teamcity teamcity_get_build_tags '{}' --json teamcity.teamcity_add_build_tags
Add tags to a build.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_add_build_tags '{}' --json kosmo integrations:teamcity teamcity_add_build_tags '{}' --json teamcity.teamcity_set_build_pin_info
Pin or unpin a build.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_set_build_pin_info '{}' --json kosmo integrations:teamcity teamcity_set_build_pin_info '{}' --json teamcity.teamcity_list_build_queue
List queued builds.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_build_queue '{}' --json kosmo integrations:teamcity teamcity_list_build_queue '{}' --json teamcity.teamcity_set_queue_paused
Pause or resume the build queue.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_set_queue_paused '{}' --json kosmo integrations:teamcity teamcity_set_queue_paused '{}' --json teamcity.teamcity_list_agents
List build agents.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_agents '{}' --json kosmo integrations:teamcity teamcity_list_agents '{}' --json teamcity.teamcity_get_agent
Get one build agent by locator.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_agent '{}' --json kosmo integrations:teamcity teamcity_get_agent '{}' --json teamcity.teamcity_list_users
List TeamCity users.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_users '{}' --json kosmo integrations:teamcity teamcity_list_users '{}' --json teamcity.teamcity_get_user
Get one user by locator.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_get_user '{}' --json kosmo integrations:teamcity teamcity_get_user '{}' --json teamcity.teamcity_list_groups
List user groups.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_groups '{}' --json kosmo integrations:teamcity teamcity_list_groups '{}' --json teamcity.teamcity_list_investigations
List investigations.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_investigations '{}' --json kosmo integrations:teamcity teamcity_list_investigations '{}' --json teamcity.teamcity_list_problems
List build problems.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_problems '{}' --json kosmo integrations:teamcity teamcity_list_problems '{}' --json teamcity.teamcity_list_changes
List VCS changes.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_changes '{}' --json kosmo integrations:teamcity teamcity_list_changes '{}' --json teamcity.teamcity_list_vcs_roots
List VCS roots.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_list_vcs_roots '{}' --json kosmo integrations:teamcity teamcity_list_vcs_roots '{}' --json teamcity.teamcity_api_get
Call a safe relative TeamCity GET path.
read - Parameters
- none
kosmo integrations:call teamcity.teamcity_api_get '{}' --json kosmo integrations:teamcity teamcity_api_get '{}' --json teamcity.teamcity_api_post
Call a safe relative TeamCity POST path.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_api_post '{}' --json kosmo integrations:teamcity teamcity_api_post '{}' --json teamcity.teamcity_api_put
Call a safe relative TeamCity PUT path.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_api_put '{}' --json kosmo integrations:teamcity teamcity_api_put '{}' --json teamcity.teamcity_api_patch
Call a safe relative TeamCity PATCH path.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_api_patch '{}' --json kosmo integrations:teamcity teamcity_api_patch '{}' --json teamcity.teamcity_api_delete
Call a safe relative TeamCity DELETE path.
write - Parameters
- none
kosmo integrations:call teamcity.teamcity_api_delete '{}' --json 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
kosmo integrations:schema teamcity.teamcity_get_server_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_projects 0 parameters
kosmo integrations:schema teamcity.teamcity_list_projects --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_project 0 parameters
kosmo integrations:schema teamcity.teamcity_get_project --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_create_project 0 parameters
kosmo integrations:schema teamcity.teamcity_create_project --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_delete_project 0 parameters
kosmo integrations:schema teamcity.teamcity_delete_project --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_build_types 0 parameters
kosmo integrations:schema teamcity.teamcity_list_build_types --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_build_type 0 parameters
kosmo integrations:schema teamcity.teamcity_get_build_type --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_build_type_builds 0 parameters
kosmo integrations:schema teamcity.teamcity_list_build_type_builds --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_builds 0 parameters
kosmo integrations:schema teamcity.teamcity_list_builds --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_build 0 parameters
kosmo integrations:schema teamcity.teamcity_get_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_queue_build 0 parameters
kosmo integrations:schema teamcity.teamcity_queue_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_cancel_queued_build 0 parameters
kosmo integrations:schema teamcity.teamcity_cancel_queued_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_cancel_build 0 parameters
kosmo integrations:schema teamcity.teamcity_cancel_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_delete_build 0 parameters
kosmo integrations:schema teamcity.teamcity_delete_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_build_artifacts 0 parameters
kosmo integrations:schema teamcity.teamcity_list_build_artifacts --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_build_statistics 0 parameters
kosmo integrations:schema teamcity.teamcity_get_build_statistics --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_build_tags 0 parameters
kosmo integrations:schema teamcity.teamcity_get_build_tags --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_add_build_tags 0 parameters
kosmo integrations:schema teamcity.teamcity_add_build_tags --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_set_build_pin_info 0 parameters
kosmo integrations:schema teamcity.teamcity_set_build_pin_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_build_queue 0 parameters
kosmo integrations:schema teamcity.teamcity_list_build_queue --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_set_queue_paused 0 parameters
kosmo integrations:schema teamcity.teamcity_set_queue_paused --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_agents 0 parameters
kosmo integrations:schema teamcity.teamcity_list_agents --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_agent 0 parameters
kosmo integrations:schema teamcity.teamcity_get_agent --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_users 0 parameters
kosmo integrations:schema teamcity.teamcity_list_users --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_get_user 0 parameters
kosmo integrations:schema teamcity.teamcity_get_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_groups 0 parameters
kosmo integrations:schema teamcity.teamcity_list_groups --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_investigations 0 parameters
kosmo integrations:schema teamcity.teamcity_list_investigations --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_problems 0 parameters
kosmo integrations:schema teamcity.teamcity_list_problems --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_changes 0 parameters
kosmo integrations:schema teamcity.teamcity_list_changes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_list_vcs_roots 0 parameters
kosmo integrations:schema teamcity.teamcity_list_vcs_roots --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_api_get 0 parameters
kosmo integrations:schema teamcity.teamcity_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_api_post 0 parameters
kosmo integrations:schema teamcity.teamcity_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_api_put 0 parameters
kosmo integrations:schema teamcity.teamcity_api_put --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_api_patch 0 parameters
kosmo integrations:schema teamcity.teamcity_api_patch --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
teamcity.teamcity_api_delete 0 parameters
kosmo integrations:schema teamcity.teamcity_api_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.