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