TeamCity · Capability

TeamCity REST API — User Groups

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

Run with Naftiko TeamcityUser Groups

What You Can Do

GET
Getallusergroups — Get All User Groups
/v1/usergroups
POST
Createusergroup — Create User Group
/v1/usergroups

MCP Tools

get-all-user-groups

Get All User Groups

read-only idempotent
create-user-group

Create User Group

Capability Spec

rest-user-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TeamCity REST API — User Groups
  description: 'TeamCity REST API — User Groups. 2 operations. Lead operation: Get All User Groups. Self-contained Naftiko
    capability covering one Teamcity business surface.'
  tags:
  - Teamcity
  - User Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TEAMCITY_API_KEY: TEAMCITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-user-groups
    baseUri: https://{server}/app/rest
    description: TeamCity REST API — User Groups business capability. Self-contained, no shared references.
    resources:
    - name: userGroups
      path: /userGroups
      operations:
      - name: getallusergroups
        method: GET
        description: Get All User Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createusergroup
        method: POST
        description: Create User Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TEAMCITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-user-groups-rest
    port: 8080
    description: REST adapter for TeamCity REST API — User Groups. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/usergroups
      name: usergroups
      description: REST surface for userGroups.
      operations:
      - method: GET
        name: getallusergroups
        description: Get All User Groups
        call: rest-user-groups.getallusergroups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createusergroup
        description: Create User Group
        call: rest-user-groups.createusergroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-user-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for TeamCity REST API — User Groups. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-user-groups
      description: Get All User Groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-user-groups.getallusergroups
      outputParameters:
      - type: object
        mapping: $.
    - name: create-user-group
      description: Create User Group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-user-groups.createusergroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.