naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Enterprise description: 'GitHub Repos API — Enterprise. 7 operations. Lead operation: Get Github Enterprise Server Pages Site. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Enterprise created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-enterprise baseUri: '' description: GitHub Repos API — Enterprise business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-pages path: /repos/{owner}/{repo}/pages operations: - name: getgithubenterpriseserverpagessite method: GET description: Get Github Enterprise Server Pages Site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: creategithubenterpriseserverpagessite method: POST description: Create Github Enterprise Server Pages Site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: body in: body type: object description: Request body (JSON). required: true - name: updateinformationaboutgithubenterpriseserverpagessite method: PUT description: Update Information About Github Enterprise Server Pages Site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: body in: body type: object description: Request body (JSON). required: true - name: deletegithubenterpriseserverpagessite method: DELETE description: Delete Github Enterprise Server Pages Site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-pages-builds path: /repos/{owner}/{repo}/pages/builds operations: - name: listgithubenterpriseserverpagesbuilds method: GET description: List Github Enterprise Server Pages Builds outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: requestgithubenterpriseserverpagesbuild method: POST description: Request Github Enterprise Server Pages Build outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-pages-builds-build_id path: /repos/{owner}/{repo}/pages/builds/{build_id} operations: - name: getgithubenterpriseserverpagesbuild method: GET description: Get Github Enterprise Server Pages Build outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: build_id in: path type: integer required: true - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: temp-enterprise-rest port: 8080 description: REST adapter for GitHub Repos API — Enterprise. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/pages name: repos-owner-repo-pages description: REST surface for repos-owner-repo-pages. operations: - method: GET name: getgithubenterpriseserverpagessite description: Get Github Enterprise Server Pages Site call: temp-enterprise.getgithubenterpriseserverpagessite with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: creategithubenterpriseserverpagessite description: Create Github Enterprise Server Pages Site call: temp-enterprise.creategithubenterpriseserverpagessite with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: updateinformationaboutgithubenterpriseserverpagessite description: Update Information About Github Enterprise Server Pages Site call: temp-enterprise.updateinformationaboutgithubenterpriseserverpagessite with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletegithubenterpriseserverpagessite description: Delete Github Enterprise Server Pages Site call: temp-enterprise.deletegithubenterpriseserverpagessite with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/pages/builds name: repos-owner-repo-pages-builds description: REST surface for repos-owner-repo-pages-builds. operations: - method: GET name: listgithubenterpriseserverpagesbuilds description: List Github Enterprise Server Pages Builds call: temp-enterprise.listgithubenterpriseserverpagesbuilds with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: requestgithubenterpriseserverpagesbuild description: Request Github Enterprise Server Pages Build call: temp-enterprise.requestgithubenterpriseserverpagesbuild with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/pages/builds/{build-id} name: repos-owner-repo-pages-builds-build-id description: REST surface for repos-owner-repo-pages-builds-build_id. operations: - method: GET name: getgithubenterpriseserverpagesbuild description: Get Github Enterprise Server Pages Build call: temp-enterprise.getgithubenterpriseserverpagesbuild with: build_id: rest.build_id Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: temp-enterprise-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Enterprise. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-github-enterprise-server-pages description: Get Github Enterprise Server Pages Site hints: readOnly: true destructive: false idempotent: true call: temp-enterprise.getgithubenterpriseserverpagessite with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: create-github-enterprise-server-pages description: Create Github Enterprise Server Pages Site hints: readOnly: false destructive: false idempotent: false call: temp-enterprise.creategithubenterpriseserverpagessite with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: update-information-about-github-enterprise description: Update Information About Github Enterprise Server Pages Site hints: readOnly: false destructive: false idempotent: true call: temp-enterprise.updateinformationaboutgithubenterpriseserverpagessite with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: delete-github-enterprise-server-pages description: Delete Github Enterprise Server Pages Site hints: readOnly: false destructive: true idempotent: true call: temp-enterprise.deletegithubenterpriseserverpagessite with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-github-enterprise-server-pages description: List Github Enterprise Server Pages Builds hints: readOnly: true destructive: false idempotent: true call: temp-enterprise.listgithubenterpriseserverpagesbuilds with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: request-github-enterprise-server-pages description: Request Github Enterprise Server Pages Build hints: readOnly: false destructive: false idempotent: false call: temp-enterprise.requestgithubenterpriseserverpagesbuild with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-github-enterprise-server-pages-2 description: Get Github Enterprise Server Pages Build hints: readOnly: true destructive: false idempotent: true call: temp-enterprise.getgithubenterpriseserverpagesbuild with: build_id: tools.build_id Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.