TeamCity · Capability

TeamCity REST API — Cloud

TeamCity REST API — Cloud. 2 operations. Lead operation: Get All Cloud Instances. Self-contained Naftiko capability covering one Teamcity business surface.

Run with Naftiko TeamcityCloud

What You Can Do

GET
Getallcloudinstances — Get All Cloud Instances
/v1/cloud/instances
GET
Getallcloudprofiles — Get All Cloud Profiles
/v1/cloud/profiles

MCP Tools

get-all-cloud-instances

Get All Cloud Instances

read-only idempotent
get-all-cloud-profiles

Get All Cloud Profiles

read-only idempotent

Capability Spec

rest-cloud.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TeamCity REST API — Cloud
  description: 'TeamCity REST API — Cloud. 2 operations. Lead operation: Get All Cloud Instances. Self-contained Naftiko capability
    covering one Teamcity business surface.'
  tags:
  - Teamcity
  - Cloud
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TEAMCITY_API_KEY: TEAMCITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-cloud
    baseUri: https://{server}/app/rest
    description: TeamCity REST API — Cloud business capability. Self-contained, no shared references.
    resources:
    - name: cloud-instances
      path: /cloud/instances
      operations:
      - name: getallcloudinstances
        method: GET
        description: Get All Cloud Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: cloud-profiles
      path: /cloud/profiles
      operations:
      - name: getallcloudprofiles
        method: GET
        description: Get All Cloud Profiles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.TEAMCITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-cloud-rest
    port: 8080
    description: REST adapter for TeamCity REST API — Cloud. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/cloud/instances
      name: cloud-instances
      description: REST surface for cloud-instances.
      operations:
      - method: GET
        name: getallcloudinstances
        description: Get All Cloud Instances
        call: rest-cloud.getallcloudinstances
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cloud/profiles
      name: cloud-profiles
      description: REST surface for cloud-profiles.
      operations:
      - method: GET
        name: getallcloudprofiles
        description: Get All Cloud Profiles
        call: rest-cloud.getallcloudprofiles
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-cloud-mcp
    port: 9090
    transport: http
    description: MCP adapter for TeamCity REST API — Cloud. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-all-cloud-instances
      description: Get All Cloud Instances
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-cloud.getallcloudinstances
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-cloud-profiles
      description: Get All Cloud Profiles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-cloud.getallcloudprofiles
      outputParameters:
      - type: object
        mapping: $.