naftiko: 1.0.0-alpha2 info: label: GitHub Setup API — Modes description: 'GitHub Setup API — Modes. 1 operations. Lead operation: GitHub Enable or Disable Maintenance Mode. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Modes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: setup-modes baseUri: '' description: GitHub Setup API — Modes business capability. Self-contained, no shared references. resources: - name: setup-api-maintenance path: /setup/api/maintenance operations: - 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-modes-rest port: 8080 description: REST adapter for GitHub Setup API — Modes. 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: POST name: enableordisablemaintenancemode description: GitHub Enable or Disable Maintenance Mode call: setup-modes.enableordisablemaintenancemode with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: setup-modes-mcp port: 9090 transport: http description: MCP adapter for GitHub Setup API — Modes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-enable-disable-maintenance-mode description: GitHub Enable or Disable Maintenance Mode hints: readOnly: false destructive: false idempotent: false call: setup-modes.enableordisablemaintenancemode with: body: tools.body outputParameters: - type: object mapping: $.