naftiko: 1.0.0-alpha2 info: label: JetBrains TeamCity REST API — Agents description: 'JetBrains TeamCity REST API — Agents. 3 operations. Lead operation: JetBrains List Agents. Self-contained Naftiko capability covering one Jetbrains business surface.' tags: - Jetbrains - Agents created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: JETBRAINS_API_KEY: JETBRAINS_API_KEY capability: consumes: - type: http namespace: teamcity-agents baseUri: https://{server}/app/rest description: JetBrains TeamCity REST API — Agents business capability. Self-contained, no shared references. resources: - name: agents path: /agents operations: - name: listagents method: GET description: JetBrains List Agents outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: locator in: query type: string - name: fields in: query type: string - name: agents-agentLocator path: /agents/{agentLocator} operations: - name: getagent method: GET description: JetBrains Get Agent outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: agentLocator in: path type: string required: true - name: agents-agentLocator-enabledInfo path: /agents/{agentLocator}/enabledInfo operations: - name: setagentenabled method: PUT description: JetBrains Enable/Disable Agent outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: agentLocator in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.JETBRAINS_API_KEY}}' exposes: - type: rest namespace: teamcity-agents-rest port: 8080 description: REST adapter for JetBrains TeamCity REST API — Agents. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/agents name: agents description: REST surface for agents. operations: - method: GET name: listagents description: JetBrains List Agents call: teamcity-agents.listagents with: locator: rest.locator fields: rest.fields outputParameters: - type: object mapping: $. - path: /v1/agents/{agentlocator} name: agents-agentlocator description: REST surface for agents-agentLocator. operations: - method: GET name: getagent description: JetBrains Get Agent call: teamcity-agents.getagent with: agentLocator: rest.agentLocator outputParameters: - type: object mapping: $. - path: /v1/agents/{agentlocator}/enabledinfo name: agents-agentlocator-enabledinfo description: REST surface for agents-agentLocator-enabledInfo. operations: - method: PUT name: setagentenabled description: JetBrains Enable/Disable Agent call: teamcity-agents.setagentenabled with: agentLocator: rest.agentLocator body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: teamcity-agents-mcp port: 9090 transport: http description: MCP adapter for JetBrains TeamCity REST API — Agents. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: jetbrains-list-agents description: JetBrains List Agents hints: readOnly: true destructive: false idempotent: true call: teamcity-agents.listagents with: locator: tools.locator fields: tools.fields outputParameters: - type: object mapping: $. - name: jetbrains-get-agent description: JetBrains Get Agent hints: readOnly: true destructive: false idempotent: true call: teamcity-agents.getagent with: agentLocator: tools.agentLocator outputParameters: - type: object mapping: $. - name: jetbrains-enable-disable-agent description: JetBrains Enable/Disable Agent hints: readOnly: false destructive: false idempotent: true call: teamcity-agents.setagentenabled with: agentLocator: tools.agentLocator body: tools.body outputParameters: - type: object mapping: $.