naftiko: 1.0.0-alpha2 info: label: Humanitec API — Group description: 'Humanitec API — Group. 3 operations. Lead operation: Create a group in an organization. Self-contained Naftiko capability covering one Humanitec business surface.' tags: - Humanitec - Group created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUMANITEC_API_KEY: HUMANITEC_API_KEY capability: consumes: - type: http namespace: humanitec-group baseUri: https://api.humanitec.io description: Humanitec API — Group business capability. Self-contained, no shared references. resources: - name: orgs-orgId-groups path: /orgs/{orgId}/groups operations: - name: creategroup method: POST description: Create a group in an organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-orgId-groups-groupId-users path: /orgs/{orgId}/groups/{groupId}/users operations: - name: listgroupusers method: GET description: List users in a group. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-orgId-users-userId-groups path: /orgs/{orgId}/users/{userId}/groups operations: - name: listusergroupsinorg method: GET description: Get the groups in an organization a user belongs to. outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: humanitec-group-rest port: 8080 description: REST adapter for Humanitec API — Group. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{orgid}/groups name: orgs-orgid-groups description: REST surface for orgs-orgId-groups. operations: - method: POST name: creategroup description: Create a group in an organization call: humanitec-group.creategroup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{orgid}/groups/{groupid}/users name: orgs-orgid-groups-groupid-users description: REST surface for orgs-orgId-groups-groupId-users. operations: - method: GET name: listgroupusers description: List users in a group. call: humanitec-group.listgroupusers outputParameters: - type: object mapping: $. - path: /v1/orgs/{orgid}/users/{userid}/groups name: orgs-orgid-users-userid-groups description: REST surface for orgs-orgId-users-userId-groups. operations: - method: GET name: listusergroupsinorg description: Get the groups in an organization a user belongs to. call: humanitec-group.listusergroupsinorg outputParameters: - type: object mapping: $. - type: mcp namespace: humanitec-group-mcp port: 9090 transport: http description: MCP adapter for Humanitec API — Group. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-group-organization description: Create a group in an organization hints: readOnly: false destructive: false idempotent: false call: humanitec-group.creategroup with: body: tools.body outputParameters: - type: object mapping: $. - name: list-users-group description: List users in a group. hints: readOnly: true destructive: false idempotent: true call: humanitec-group.listgroupusers outputParameters: - type: object mapping: $. - name: get-groups-organization-user-belongs description: Get the groups in an organization a user belongs to. hints: readOnly: true destructive: false idempotent: true call: humanitec-group.listusergroupsinorg outputParameters: - type: object mapping: $.