naftiko: 1.0.0-alpha2 info: label: Todoist API — Projects description: 'Todoist API — Projects. 7 operations. Lead operation: List Projects. Self-contained Naftiko capability covering one Todoist business surface.' tags: - Todoist - Projects created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TODOIST_API_KEY: TODOIST_API_KEY capability: consumes: - type: http namespace: todoist-projects baseUri: https://api.todoist.com/api/v1 description: Todoist 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-id path: /projects/{id} operations: - name: getproject method: GET description: Get Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: updateproject method: POST description: Update Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id 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: id in: path type: string required: true - name: projects-id-archive path: /projects/{id}/archive operations: - name: archiveproject method: POST description: Archive Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: projects-id-collaborators path: /projects/{id}/collaborators operations: - name: listprojectcollaborators method: GET description: List Project Collaborators outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true authentication: type: bearer token: '{{env.TODOIST_API_KEY}}' exposes: - type: rest namespace: todoist-projects-rest port: 8080 description: REST adapter for Todoist 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: todoist-projects.listprojects outputParameters: - type: object mapping: $. - method: POST name: createproject description: Create Project call: todoist-projects.createproject with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{id} name: projects-id description: REST surface for projects-id. operations: - method: GET name: getproject description: Get Project call: todoist-projects.getproject with: id: rest.id outputParameters: - type: object mapping: $. - method: POST name: updateproject description: Update Project call: todoist-projects.updateproject with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproject description: Delete Project call: todoist-projects.deleteproject with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/projects/{id}/archive name: projects-id-archive description: REST surface for projects-id-archive. operations: - method: POST name: archiveproject description: Archive Project call: todoist-projects.archiveproject with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/projects/{id}/collaborators name: projects-id-collaborators description: REST surface for projects-id-collaborators. operations: - method: GET name: listprojectcollaborators description: List Project Collaborators call: todoist-projects.listprojectcollaborators with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: todoist-projects-mcp port: 9090 transport: http description: MCP adapter for Todoist 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: todoist-projects.listprojects outputParameters: - type: object mapping: $. - name: create-project description: Create Project hints: readOnly: false destructive: false idempotent: false call: todoist-projects.createproject with: body: tools.body outputParameters: - type: object mapping: $. - name: get-project description: Get Project hints: readOnly: true destructive: false idempotent: true call: todoist-projects.getproject with: id: tools.id outputParameters: - type: object mapping: $. - name: update-project description: Update Project hints: readOnly: false destructive: false idempotent: false call: todoist-projects.updateproject with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-project description: Delete Project hints: readOnly: false destructive: true idempotent: true call: todoist-projects.deleteproject with: id: tools.id outputParameters: - type: object mapping: $. - name: archive-project description: Archive Project hints: readOnly: false destructive: false idempotent: false call: todoist-projects.archiveproject with: id: tools.id outputParameters: - type: object mapping: $. - name: list-project-collaborators description: List Project Collaborators hints: readOnly: true destructive: false idempotent: true call: todoist-projects.listprojectcollaborators with: id: tools.id outputParameters: - type: object mapping: $.