naftiko: 1.0.0-alpha2 info: label: Treblle API — Projects description: 'Treblle API — Projects. 5 operations. Lead operation: List Projects. Self-contained Naftiko capability covering one Treblle business surface.' tags: - Treblle - Projects created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TREBLLE_API_KEY: TREBLLE_API_KEY capability: consumes: - type: http namespace: treblle-projects baseUri: https://app.treblle.com/api/v1 description: Treblle API — Projects business capability. Self-contained, no shared references. resources: - name: projects path: /projects operations: - name: listprojects method: GET description: List Projects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createproject method: POST description: Create Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-projectId path: /projects/{projectId} operations: - name: getproject method: GET description: Get Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string description: The unique identifier for the project required: true - name: updateproject method: PUT description: Update Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproject method: DELETE description: Delete Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true authentication: type: apikey key: Treblle-Api-Key value: '{{env.TREBLLE_API_KEY}}' placement: header exposes: - type: rest namespace: treblle-projects-rest port: 8080 description: REST adapter for Treblle API — Projects. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects name: projects description: REST surface for projects. operations: - method: GET name: listprojects description: List Projects call: treblle-projects.listprojects outputParameters: - type: object mapping: $. - method: POST name: createproject description: Create Project call: treblle-projects.createproject with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid} name: projects-projectid description: REST surface for projects-projectId. operations: - method: GET name: getproject description: Get Project call: treblle-projects.getproject with: projectId: rest.projectId outputParameters: - type: object mapping: $. - method: PUT name: updateproject description: Update Project call: treblle-projects.updateproject with: projectId: rest.projectId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproject description: Delete Project call: treblle-projects.deleteproject with: projectId: rest.projectId outputParameters: - type: object mapping: $. - type: mcp namespace: treblle-projects-mcp port: 9090 transport: http description: MCP adapter for Treblle API — Projects. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-projects description: List Projects hints: readOnly: true destructive: false idempotent: true call: treblle-projects.listprojects outputParameters: - type: object mapping: $. - name: create-project description: Create Project hints: readOnly: false destructive: false idempotent: false call: treblle-projects.createproject with: body: tools.body outputParameters: - type: object mapping: $. - name: get-project description: Get Project hints: readOnly: true destructive: false idempotent: true call: treblle-projects.getproject with: projectId: tools.projectId outputParameters: - type: object mapping: $. - name: update-project description: Update Project hints: readOnly: false destructive: false idempotent: true call: treblle-projects.updateproject with: projectId: tools.projectId body: tools.body outputParameters: - type: object mapping: $. - name: delete-project description: Delete Project hints: readOnly: false destructive: true idempotent: true call: treblle-projects.deleteproject with: projectId: tools.projectId outputParameters: - type: object mapping: $.