naftiko: 1.0.0-alpha2 info: label: Incident.io API — Maintenance Windows description: 'Incident.io API — Maintenance Windows. 5 operations. Lead operation: Maintenance Windows. Self-contained Naftiko capability covering one Incident Io business surface.' tags: - Incident Io - Maintenance Windows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: INCIDENT_IO_API_KEY: INCIDENT_IO_API_KEY capability: consumes: - type: http namespace: incident-io-maintenance-windows baseUri: https://api.incident.io/v2 description: Incident.io API — Maintenance Windows business capability. Self-contained, no shared references. resources: - name: maintenance-windows path: /maintenance-windows operations: - name: listmaintenancewindows method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createmaintenancewindow method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: maintenance-windows-id path: /maintenance-windows/{id} operations: - name: getmaintenancewindow method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemaintenancewindow method: PUT description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletemaintenancewindow method: DELETE description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.INCIDENT_IO_API_KEY}}' exposes: - type: rest namespace: incident-io-maintenance-windows-rest port: 8080 description: REST adapter for Incident.io API — Maintenance Windows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/maintenance-windows name: maintenance-windows description: REST surface for maintenance-windows. operations: - method: GET name: listmaintenancewindows description: listmaintenancewindows call: incident-io-maintenance-windows.listmaintenancewindows outputParameters: - type: object mapping: $. - method: POST name: createmaintenancewindow description: createmaintenancewindow call: incident-io-maintenance-windows.createmaintenancewindow with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/maintenance-windows/{id} name: maintenance-windows-id description: REST surface for maintenance-windows-id. operations: - method: GET name: getmaintenancewindow description: getmaintenancewindow call: incident-io-maintenance-windows.getmaintenancewindow outputParameters: - type: object mapping: $. - method: PUT name: updatemaintenancewindow description: updatemaintenancewindow call: incident-io-maintenance-windows.updatemaintenancewindow with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemaintenancewindow description: deletemaintenancewindow call: incident-io-maintenance-windows.deletemaintenancewindow outputParameters: - type: object mapping: $. - type: mcp namespace: incident-io-maintenance-windows-mcp port: 9090 transport: http description: MCP adapter for Incident.io API — Maintenance Windows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: listmaintenancewindows description: listmaintenancewindows hints: readOnly: true destructive: false idempotent: true call: incident-io-maintenance-windows.listmaintenancewindows outputParameters: - type: object mapping: $. - name: createmaintenancewindow description: createmaintenancewindow hints: readOnly: false destructive: false idempotent: false call: incident-io-maintenance-windows.createmaintenancewindow with: body: tools.body outputParameters: - type: object mapping: $. - name: getmaintenancewindow description: getmaintenancewindow hints: readOnly: true destructive: false idempotent: true call: incident-io-maintenance-windows.getmaintenancewindow outputParameters: - type: object mapping: $. - name: updatemaintenancewindow description: updatemaintenancewindow hints: readOnly: false destructive: false idempotent: true call: incident-io-maintenance-windows.updatemaintenancewindow with: body: tools.body outputParameters: - type: object mapping: $. - name: deletemaintenancewindow description: deletemaintenancewindow hints: readOnly: false destructive: true idempotent: true call: incident-io-maintenance-windows.deletemaintenancewindow outputParameters: - type: object mapping: $.