naftiko: 1.0.0-alpha2 info: label: Basecamp API — Messages description: 'Basecamp API — Messages. 4 operations. Lead operation: List messages. Self-contained Naftiko capability covering one Basecamp business surface.' tags: - Basecamp - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BASECAMP_API_KEY: BASECAMP_API_KEY capability: consumes: - type: http namespace: basecamp-messages baseUri: https://3.basecampapi.com/{accountId} description: Basecamp API — Messages business capability. Self-contained, no shared references. resources: - name: message_boards-messageBoardId-messages.json path: /message_boards/{messageBoardId}/messages.json operations: - name: listmessages method: GET description: List messages outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sort in: query type: string description: Sort field. - name: direction in: query type: string description: Sort direction. - name: createmessage method: POST description: Create a message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: messages-messageId}.json path: /messages/{messageId}.json operations: - name: getmessage method: GET description: Get a message outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemessage method: PUT description: Update a message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.BASECAMP_API_KEY}}' exposes: - type: rest namespace: basecamp-messages-rest port: 8080 description: REST adapter for Basecamp API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/message-boards/{messageboardid}/messages-json name: message-boards-messageboardid-messages-json description: REST surface for message_boards-messageBoardId-messages.json. operations: - method: GET name: listmessages description: List messages call: basecamp-messages.listmessages with: sort: rest.sort direction: rest.direction outputParameters: - type: object mapping: $. - method: POST name: createmessage description: Create a message call: basecamp-messages.createmessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/messages/messageid-json name: messages-messageid-json description: REST surface for messages-messageId}.json. operations: - method: GET name: getmessage description: Get a message call: basecamp-messages.getmessage outputParameters: - type: object mapping: $. - method: PUT name: updatemessage description: Update a message call: basecamp-messages.updatemessage with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: basecamp-messages-mcp port: 9090 transport: http description: MCP adapter for Basecamp API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-messages description: List messages hints: readOnly: true destructive: false idempotent: true call: basecamp-messages.listmessages with: sort: tools.sort direction: tools.direction outputParameters: - type: object mapping: $. - name: create-message description: Create a message hints: readOnly: false destructive: false idempotent: false call: basecamp-messages.createmessage with: body: tools.body outputParameters: - type: object mapping: $. - name: get-message description: Get a message hints: readOnly: true destructive: false idempotent: true call: basecamp-messages.getmessage outputParameters: - type: object mapping: $. - name: update-message description: Update a message hints: readOnly: false destructive: false idempotent: true call: basecamp-messages.updatemessage with: body: tools.body outputParameters: - type: object mapping: $.