TeamCity · Capability

TeamCity REST API — Investigations

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

Run with Naftiko TeamcityInvestigations

What You Can Do

GET
Getallinvestigations — Get All Investigations
/v1/investigations

MCP Tools

get-all-investigations

Get All Investigations

read-only idempotent

Capability Spec

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