naftiko: 1.0.0-alpha2 info: label: SpaceX API — Rockets description: 'SpaceX API — Rockets. 2 operations. Lead operation: List All Rockets. Self-contained Naftiko capability covering one Spacex Api business surface.' tags: - Spacex Api - Rockets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SPACEX_API_API_KEY: SPACEX_API_API_KEY capability: consumes: - type: http namespace: spacex-rockets baseUri: https://api.spacexdata.com/v5 description: SpaceX API — Rockets business capability. Self-contained, no shared references. resources: - name: rockets path: /rockets operations: - name: listrockets method: GET description: List All Rockets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: rockets-id path: /rockets/{id} operations: - name: getrocket method: GET description: Get Rocket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Unique rocket identifier required: true exposes: - type: rest namespace: spacex-rockets-rest port: 8080 description: REST adapter for SpaceX API — Rockets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/rockets name: rockets description: REST surface for rockets. operations: - method: GET name: listrockets description: List All Rockets call: spacex-rockets.listrockets outputParameters: - type: object mapping: $. - path: /v1/rockets/{id} name: rockets-id description: REST surface for rockets-id. operations: - method: GET name: getrocket description: Get Rocket call: spacex-rockets.getrocket with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: spacex-rockets-mcp port: 9090 transport: http description: MCP adapter for SpaceX API — Rockets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-rockets description: List All Rockets hints: readOnly: true destructive: false idempotent: true call: spacex-rockets.listrockets outputParameters: - type: object mapping: $. - name: get-rocket description: Get Rocket hints: readOnly: true destructive: false idempotent: true call: spacex-rockets.getrocket with: id: tools.id outputParameters: - type: object mapping: $.