naftiko: 1.0.0-alpha2 info: label: Wrike API — Groups description: 'Wrike API — Groups. 5 operations. Lead operation: List Groups. Self-contained Naftiko capability covering one Wrike business surface.' tags: - Wrike - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WRIKE_API_KEY: WRIKE_API_KEY capability: consumes: - type: http namespace: wrike-groups baseUri: https://www.wrike.com/api/v4 description: Wrike API — Groups business capability. Self-contained, no shared references. resources: - name: groups path: /groups operations: - name: listgroups method: GET description: List Groups outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: metadata in: query type: string description: Metadata filter - name: fields in: query type: string description: JSON string array of optional fields - name: creategroup method: POST description: Create Group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: groups-groupId path: /groups/{groupId} operations: - name: getgroup method: GET description: Get Group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: groupId in: path type: string description: The group ID required: true - name: fields in: query type: string - name: updategroup method: PUT description: Update Group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: groupId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: deletegroup method: DELETE description: Delete Group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: groupId in: path type: string required: true authentication: type: bearer token: '{{env.WRIKE_API_KEY}}' exposes: - type: rest namespace: wrike-groups-rest port: 8080 description: REST adapter for Wrike API — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/groups name: groups description: REST surface for groups. operations: - method: GET name: listgroups description: List Groups call: wrike-groups.listgroups with: metadata: rest.metadata fields: rest.fields outputParameters: - type: object mapping: $. - method: POST name: creategroup description: Create Group call: wrike-groups.creategroup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/groups/{groupid} name: groups-groupid description: REST surface for groups-groupId. operations: - method: GET name: getgroup description: Get Group call: wrike-groups.getgroup with: groupId: rest.groupId fields: rest.fields outputParameters: - type: object mapping: $. - method: PUT name: updategroup description: Update Group call: wrike-groups.updategroup with: groupId: rest.groupId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletegroup description: Delete Group call: wrike-groups.deletegroup with: groupId: rest.groupId outputParameters: - type: object mapping: $. - type: mcp namespace: wrike-groups-mcp port: 9090 transport: http description: MCP adapter for Wrike API — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-groups description: List Groups hints: readOnly: true destructive: false idempotent: true call: wrike-groups.listgroups with: metadata: tools.metadata fields: tools.fields outputParameters: - type: object mapping: $. - name: create-group description: Create Group hints: readOnly: false destructive: false idempotent: false call: wrike-groups.creategroup with: body: tools.body outputParameters: - type: object mapping: $. - name: get-group description: Get Group hints: readOnly: true destructive: false idempotent: true call: wrike-groups.getgroup with: groupId: tools.groupId fields: tools.fields outputParameters: - type: object mapping: $. - name: update-group description: Update Group hints: readOnly: false destructive: false idempotent: true call: wrike-groups.updategroup with: groupId: tools.groupId body: tools.body outputParameters: - type: object mapping: $. - name: delete-group description: Delete Group hints: readOnly: false destructive: true idempotent: true call: wrike-groups.deletegroup with: groupId: tools.groupId outputParameters: - type: object mapping: $.