naftiko: 1.0.0-alpha2 info: label: GitHub Setup API — Maintenance description: 'GitHub Setup API — Maintenance. 2 operations. Lead operation: GitHub Get the Maintenance Status. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Maintenance created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: setup-maintenance baseUri: '' description: GitHub Setup API — Maintenance business capability. Self-contained, no shared references. resources: - name: setup-api-maintenance path: /setup/api/maintenance operations: - name: getthemaintenancestatus method: GET description: GitHub Get the Maintenance Status outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enableordisablemaintenancemode method: POST description: GitHub Enable or Disable Maintenance Mode outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: setup-maintenance-rest port: 8080 description: REST adapter for GitHub Setup API — Maintenance. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/setup/api/maintenance name: setup-api-maintenance description: REST surface for setup-api-maintenance. operations: - method: GET name: getthemaintenancestatus description: GitHub Get the Maintenance Status call: setup-maintenance.getthemaintenancestatus outputParameters: - type: object mapping: $. - method: POST name: enableordisablemaintenancemode description: GitHub Enable or Disable Maintenance Mode call: setup-maintenance.enableordisablemaintenancemode with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: setup-maintenance-mcp port: 9090 transport: http description: MCP adapter for GitHub Setup API — Maintenance. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-maintenance-status description: GitHub Get the Maintenance Status hints: readOnly: true destructive: false idempotent: true call: setup-maintenance.getthemaintenancestatus outputParameters: - type: object mapping: $. - name: github-enable-disable-maintenance-mode description: GitHub Enable or Disable Maintenance Mode hints: readOnly: false destructive: false idempotent: false call: setup-maintenance.enableordisablemaintenancemode with: body: tools.body outputParameters: - type: object mapping: $.