naftiko: 1.0.0-alpha2 info: label: Port API — Organization description: 'Port API — Organization. 8 operations. Lead operation: Get organization details. Self-contained Naftiko capability covering one Port business surface.' tags: - Port - Organization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORT_API_KEY: PORT_API_KEY capability: consumes: - type: http namespace: port-organization baseUri: '' description: Port API — Organization business capability. Self-contained, no shared references. resources: - name: v1-organization path: /v1/organization operations: - name: get method: GET description: Get organization details outputRawFormat: json outputParameters: - name: result type: object value: $. - name: put method: PUT description: Change organization details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: patch method: PATCH description: Update organization details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v1-organization-secrets path: /v1/organization/secrets operations: - name: get method: GET description: Get all organization secrets' metadata outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Create an organization secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-organization-secrets-secret_name path: /v1/organization/secrets/{secret_name} operations: - name: get method: GET description: Get an organization secret's metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secret_name in: path type: string description: The name of the secret you want to operate on. required: true - name: patch method: PATCH description: Update an organization secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secret_name in: path type: string description: The name of the secret you want to operate on. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete an organization secret outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secret_name in: path type: string description: The name of the secret you want to operate on. required: true authentication: type: apikey key: Authorization value: '{{env.PORT_API_KEY}}' placement: header exposes: - type: rest namespace: port-organization-rest port: 8080 description: REST adapter for Port API — Organization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/organization name: v1-organization description: REST surface for v1-organization. operations: - method: GET name: get description: Get organization details call: port-organization.get outputParameters: - type: object mapping: $. - method: PUT name: put description: Change organization details call: port-organization.put with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: patch description: Update organization details call: port-organization.patch with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/organization/secrets name: v1-organization-secrets description: REST surface for v1-organization-secrets. operations: - method: GET name: get description: Get all organization secrets' metadata call: port-organization.get outputParameters: - type: object mapping: $. - method: POST name: post description: Create an organization secret call: port-organization.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/organization/secrets/{secret-name} name: v1-organization-secrets-secret-name description: REST surface for v1-organization-secrets-secret_name. operations: - method: GET name: get description: Get an organization secret's metadata call: port-organization.get with: secret_name: rest.secret_name outputParameters: - type: object mapping: $. - method: PATCH name: patch description: Update an organization secret call: port-organization.patch with: secret_name: rest.secret_name body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete an organization secret call: port-organization.delete with: secret_name: rest.secret_name outputParameters: - type: object mapping: $. - type: mcp namespace: port-organization-mcp port: 9090 transport: http description: MCP adapter for Port API — Organization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-organization-details description: Get organization details hints: readOnly: true destructive: false idempotent: true call: port-organization.get outputParameters: - type: object mapping: $. - name: change-organization-details description: Change organization details hints: readOnly: false destructive: false idempotent: true call: port-organization.put with: body: tools.body outputParameters: - type: object mapping: $. - name: update-organization-details description: Update organization details hints: readOnly: false destructive: false idempotent: true call: port-organization.patch with: body: tools.body outputParameters: - type: object mapping: $. - name: get-all-organization-secrets-metadata description: Get all organization secrets' metadata hints: readOnly: true destructive: false idempotent: true call: port-organization.get outputParameters: - type: object mapping: $. - name: create-organization-secret description: Create an organization secret hints: readOnly: false destructive: false idempotent: false call: port-organization.post with: body: tools.body outputParameters: - type: object mapping: $. - name: get-organization-secret-s-metadata description: Get an organization secret's metadata hints: readOnly: true destructive: false idempotent: true call: port-organization.get with: secret_name: tools.secret_name outputParameters: - type: object mapping: $. - name: update-organization-secret description: Update an organization secret hints: readOnly: false destructive: false idempotent: true call: port-organization.patch with: secret_name: tools.secret_name body: tools.body outputParameters: - type: object mapping: $. - name: delete-organization-secret description: Delete an organization secret hints: readOnly: false destructive: true idempotent: true call: port-organization.delete with: secret_name: tools.secret_name outputParameters: - type: object mapping: $.