naftiko: 1.0.0-alpha2 info: label: github-repos-api — Milestones description: 'github-repos-api — Milestones. 5 operations. Lead operation: GitHub List Milestones. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Milestones created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: repos-milestones baseUri: http://localhost:8080/rest/github-repos-api/1.1.4 description: github-repos-api — Milestones business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-milestones path: /repos/{owner}/{repo}/milestones operations: - name: listmilestones method: GET description: GitHub List Milestones outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: state in: query type: string description: The state of the milestone. Either `open`, `closed`, or `all`. - name: sort in: query type: string description: What to sort results by. Either `due_on` or `completeness`. - name: direction in: query type: string description: The direction of the sort. Either `asc` or `desc`. - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: createmilestone method: POST description: GitHub Create Milestone 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: repos-owner-repo-milestones-milestone_number path: /repos/{owner}/{repo}/milestones/{milestone_number} operations: - name: getmilestone method: GET description: GitHub Get Milestone 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: updatemilestone method: PATCH description: GitHub Update Milestone 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: false - name: deletemilestone method: DELETE description: GitHub Delete Milestone 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: repos-milestones-rest port: 8080 description: REST adapter for github-repos-api — Milestones. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/milestones name: repos-owner-repo-milestones description: REST surface for repos-owner-repo-milestones. operations: - method: GET name: listmilestones description: GitHub List Milestones call: repos-milestones.listmilestones with: state: rest.state sort: rest.sort direction: rest.direction Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createmilestone description: GitHub Create Milestone call: repos-milestones.createmilestone with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/milestones/{milestone-number} name: repos-owner-repo-milestones-milestone-number description: REST surface for repos-owner-repo-milestones-milestone_number. operations: - method: GET name: getmilestone description: GitHub Get Milestone call: repos-milestones.getmilestone with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PATCH name: updatemilestone description: GitHub Update Milestone call: repos-milestones.updatemilestone 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: deletemilestone description: GitHub Delete Milestone call: repos-milestones.deletemilestone with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repos-milestones-mcp port: 9090 transport: http description: MCP adapter for github-repos-api — Milestones. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-milestones description: GitHub List Milestones hints: readOnly: true destructive: false idempotent: true call: repos-milestones.listmilestones with: state: tools.state sort: tools.sort direction: tools.direction Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-milestone description: GitHub Create Milestone hints: readOnly: false destructive: false idempotent: false call: repos-milestones.createmilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-get-milestone description: GitHub Get Milestone hints: readOnly: true destructive: false idempotent: true call: repos-milestones.getmilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-update-milestone description: GitHub Update Milestone hints: readOnly: false destructive: false idempotent: true call: repos-milestones.updatemilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-milestone description: GitHub Delete Milestone hints: readOnly: false destructive: true idempotent: true call: repos-milestones.deletemilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.