naftiko: 1.0.0-alpha2 info: label: JetBrains TeamCity REST API — Tests description: 'JetBrains TeamCity REST API — Tests. 1 operations. Lead operation: JetBrains List Test Occurrences. Self-contained Naftiko capability covering one Jetbrains business surface.' tags: - Jetbrains - Tests created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: JETBRAINS_API_KEY: JETBRAINS_API_KEY capability: consumes: - type: http namespace: teamcity-tests baseUri: https://{server}/app/rest description: JetBrains TeamCity REST API — Tests business capability. Self-contained, no shared references. resources: - name: testOccurrences path: /testOccurrences operations: - name: listtestoccurrences method: GET description: JetBrains List Test Occurrences outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: locator in: query type: string authentication: type: bearer token: '{{env.JETBRAINS_API_KEY}}' exposes: - type: rest namespace: teamcity-tests-rest port: 8080 description: REST adapter for JetBrains TeamCity REST API — Tests. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/testoccurrences name: testoccurrences description: REST surface for testOccurrences. operations: - method: GET name: listtestoccurrences description: JetBrains List Test Occurrences call: teamcity-tests.listtestoccurrences with: locator: rest.locator outputParameters: - type: object mapping: $. - type: mcp namespace: teamcity-tests-mcp port: 9090 transport: http description: MCP adapter for JetBrains TeamCity REST API — Tests. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: jetbrains-list-test-occurrences description: JetBrains List Test Occurrences hints: readOnly: true destructive: false idempotent: true call: teamcity-tests.listtestoccurrences with: locator: tools.locator outputParameters: - type: object mapping: $.