naftiko: 1.0.0-alpha2 info: label: Porter Bundle API — CredentialSets description: 'Porter Bundle API — CredentialSets. 5 operations. Lead operation: Porter List credential sets. Self-contained Naftiko capability covering one Porter business surface.' tags: - Porter - CredentialSets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORTER_API_KEY: PORTER_API_KEY capability: consumes: - type: http namespace: bundle-credentialsets baseUri: http://localhost:3000 description: Porter Bundle API — CredentialSets business capability. Self-contained, no shared references. resources: - name: v1-credentialsets path: /v1/credentialsets operations: - name: listcredentialsets method: GET description: Porter List credential sets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcredentialset method: POST description: Porter Create a credential set outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-credentialsets-namespace-name path: /v1/credentialsets/{namespace}/{name} operations: - name: getcredentialset method: GET description: Porter Get a credential set outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecredentialset method: PUT description: Porter Update a credential set outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecredentialset method: DELETE description: Porter Delete a credential set outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PORTER_API_KEY}}' exposes: - type: rest namespace: bundle-credentialsets-rest port: 8080 description: REST adapter for Porter Bundle API — CredentialSets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/credentialsets name: v1-credentialsets description: REST surface for v1-credentialsets. operations: - method: GET name: listcredentialsets description: Porter List credential sets call: bundle-credentialsets.listcredentialsets outputParameters: - type: object mapping: $. - method: POST name: createcredentialset description: Porter Create a credential set call: bundle-credentialsets.createcredentialset with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/credentialsets/{namespace}/{name} name: v1-credentialsets-namespace-name description: REST surface for v1-credentialsets-namespace-name. operations: - method: GET name: getcredentialset description: Porter Get a credential set call: bundle-credentialsets.getcredentialset outputParameters: - type: object mapping: $. - method: PUT name: updatecredentialset description: Porter Update a credential set call: bundle-credentialsets.updatecredentialset with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecredentialset description: Porter Delete a credential set call: bundle-credentialsets.deletecredentialset outputParameters: - type: object mapping: $. - type: mcp namespace: bundle-credentialsets-mcp port: 9090 transport: http description: MCP adapter for Porter Bundle API — CredentialSets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: porter-list-credential-sets description: Porter List credential sets hints: readOnly: true destructive: false idempotent: true call: bundle-credentialsets.listcredentialsets outputParameters: - type: object mapping: $. - name: porter-create-credential-set description: Porter Create a credential set hints: readOnly: false destructive: false idempotent: false call: bundle-credentialsets.createcredentialset with: body: tools.body outputParameters: - type: object mapping: $. - name: porter-get-credential-set description: Porter Get a credential set hints: readOnly: true destructive: false idempotent: true call: bundle-credentialsets.getcredentialset outputParameters: - type: object mapping: $. - name: porter-update-credential-set description: Porter Update a credential set hints: readOnly: false destructive: false idempotent: true call: bundle-credentialsets.updatecredentialset with: body: tools.body outputParameters: - type: object mapping: $. - name: porter-delete-credential-set description: Porter Delete a credential set hints: readOnly: false destructive: true idempotent: true call: bundle-credentialsets.deletecredentialset outputParameters: - type: object mapping: $.