TeamCity · Capability

TeamCity REST API — Audit

TeamCity REST API — Audit. 1 operations. Lead operation: Get Audit Events. Self-contained Naftiko capability covering one Teamcity business surface.

Run with Naftiko TeamcityAudit

What You Can Do

GET
Getauditevents — Get Audit Events
/v1/audit

MCP Tools

get-audit-events

Get Audit Events

read-only idempotent

Capability Spec

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